[FFserver-user] Streaming through ffserver

Bret Clark bclark at spectraaccess.com
Fri Oct 7 13:39:13 CEST 2011


I use the following in ffserver.conf

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 3M
</Feed>


<Stream cameraone.swf>
Feed feed1.ffm
Format swf
VideoCodec flv
VideoFrameRate 15
VideoBufferSize 80000
VideoBitRate 500
VideoQMin 1
VideoQMax 15
VideoSize 400x320
#VideoSize 640x480
AudioCodec libmp3lame
# Bitrate for the audio stream. Codecs usually support only a few
# different bitrates.
AudioBitRate 32

# Number of audio channels: 1 = mono, 2 = stereo
AudioChannels 2

# Sampling frequency for audio. When using low bitrates, you should
# lower this frequency to 22050 or 11025. The supported frequencies
# depend on the selected audio codec.
AudioSampleRate 44100

PreRoll 5
#Noaudio
</Stream>


And my ffmpeg command line is:

ffmpeg -s 400x320 -f video4linux2 -vc 1  -i /dev/video0 -f alsa -ac 2  
-i hw:0,0 -acodec libmp3lame -ab 32k http://127.0.0.1:8090/feed1.ffm




On 10/07/2011 04:33 AM, Ioannis Maistros wrote:
> Hello Amar and thanks for your quick reply
>
> I tried codec mpeg and still do not have motion in VLC,  I only get a 
> picture and some times some motion for some seconds.
> What would be the appropriate settings in the ffserver.conf or do I 
> have to leave them as it is?
>
> Thanks again
>
> ------------------------------------------------------------------------
> Date: Fri, 7 Oct 2011 12:37:41 +0530
> From: nandan.amar at gmail.com
> To: ffserver-user at ffmpeg.org
> Subject: Re: [FFserver-user] Streaming through ffserver
>
>
> Dear Ioannis Maistros,
> Mjpeg or  jpeg is very poor compression format for video.
> Please try codedc like mpeg or h264 for encoding.
> like-
> ffmpeg -i 
> "http://user:pass@192.168.1.112/axis-cgi/mjpg/video.cgi?resolution=320x240&.mjpeg 
> <http://192.168.1.112/axis-cgi/mjpg/video.cgi?resolution=320x240&.mjpeg>" 
> -vcodec mpeg or h264 "http://192.168.1.118:8090/feed1.ffm"
>
> 2011/10/7 Ioannis Maistros <patrida at hotmail.com 
> <mailto:patrida at hotmail.com>>
>
>     Hello FFMpeg users.
>
>     I am new in FFMpeg user forum and I would like to ask your help in
>     the following issue.
>     I would like to stream from an Axis camera(mjpeg format) through
>     FFmpeg to the FFserver and watch the stream from another machine
>     by using VLC.
>     I have tried a lot of combinations in  the ffserver.conf file and
>     ffmpeg commands line but without any luck.
>     The only I get is an image jpeg(without any motion) in the other
>     end through VLC.
>     My last attempt was the default ffserver configuration file and an
>     extra option of AVOptions flags +global_header(because ffserver
>     was complaint about global headers all the time) and the ffmpeg
>     command line was like the following one:
>
>     ffmpeg -i
>     "http://user:pass@192.168.1.112/axis-cgi/mjpg/video.cgi?resolution=320x240&.mjpeg
>     <http://192.168.1.112/axis-cgi/mjpg/video.cgi?resolution=320x240&.mjpeg>"
>     -vcodec copy "http://192.168.1.118:8090/feed1.ffm"
>
>     Any help will be appreciated.
>
>     Thanks in advance
>     Best Regards
>     Ioannis
>
>     _______________________________________________
>     ffserver-user mailing list
>     ffserver-user at ffmpeg.org <mailto:ffserver-user at ffmpeg.org>
>     http://ffmpeg.org/mailman/listinfo/ffserver-user
>
>
>
>
> -- 
>
> Amar Kumar Nandan
> Karnataka, India, 560100
> ☎:+91-9019054471
> ✉:nandan.amar at gmail.com <mailto:nandan.amar at gmail.com>
> http://aknandan.co.nr
>
> _______________________________________________ ffserver-user mailing 
> list ffserver-user at ffmpeg.org 
> http://ffmpeg.org/mailman/listinfo/ffserver-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/ffserver-user/attachments/20111007/db34fddf/attachment.html>


More information about the ffserver-user mailing list