[FFmpeg-user] Feeding DVR to ffmpeg server, part 2

Alex Povolotsky tarkhil at corp.infotel.ru
Sat Mar 12 13:26:00 CET 2016


Hello

I've managed to feed video with

/usr/local/bin/tanidvr -m 1 -c 1 -m 1 -t dvr-host -u user -w password | 
ffmpeg -r 25 -i - -strict -2 http://localhost:8090/feed1.ffm

but the picture is of poor quality, with lots of artifacts.

How do I determine proper parameters for processing it?

=== ffserver.conf ===
HTTPPort 8090

HTTPBindAddress 0.0.0.0

MaxHTTPConnections 2000

MaxClients 1000

MaxBandwidth 1000

# '-' is the standard output.
CustomLog -
<Feed feed1.ffm>
# ffmpeg http://localhost:8090/feed1.ffm
File /tmp/feed1.ffm
FileMaxSize 200K
# Specify launch in order to start ffmpeg automatically.
# First ffmpeg must be defined with an appropriate path if needed,
# after that options can follow, but avoid adding the http:// field
#Launch ffmpeg
ACL allow 127.0.0.1
</Feed>


<Stream cam1-2.mpg>
Feed feed1.ffm

# Format of the stream : you can choose among:
# mpeg       : MPEG-1 multiplexed video and audio
# mpegvideo  : only MPEG-1 video
# mp2        : MPEG-2 audio (use AudioCodec to select layer 2 and 3 codec)
# ogg        : Ogg format (Vorbis audio codec)
# rm         : RealNetworks-compatible stream. Multiplexed audio and video.
# ra         : RealNetworks-compatible stream. Audio only.
# mpjpeg     : Multipart JPEG (works with Netscape without any plugin)
# jpeg       : Generate a single JPEG image.
# mjpeg      : Generate a M-JPEG stream.
# asf        : ASF compatible streaming (Windows Media Player format).
# swf        : Macromedia Flash compatible stream
# avi        : AVI format (MPEG-4 video, MPEG audio sound)
Format mpeg

NoAudio

VideoBitRate 128

VideoBufferSize 40

VideoFrameRate 25
VideoSize 352x288
VideoGopSize 12
</Stream>

=== ffserver.conf ===

Alex



More information about the ffmpeg-user mailing list