[FFmpeg-user] Cannot stream live in FLV format. SWF works. Why?

Jerome Martens jeromemartens at yahoo.com
Mon Oct 15 19:49:41 CEST 2012





>>  I would like to generate a live videostream using ffmpeg/ffserver under 
> linux. The stream originates from a sequence of images which are rendered in 
> realtime by processing several sensor data. The images are written as jpegs to 
> the named pipe "jpgpipe" (created by mkfifo) at a rate of 5 fps by a 
> separate process. My problem is that I don't know which is the best format 
> for live streaming with as little latency as possible?
>> 
>>  The image sequence is encoded to flv and sent to ffserver on port 8090:
>>  ffmpeg -y -r 5 -f mjpeg -i jpgpipe -vcodec flv -flags +global_header 
> http://localhost:8090/feed1.ffm
> 
> You'd think that with straight images there wouldn't be much latency,
> though I'm not sure how ffserver deals with latency.
> My previous thoughts on it I wrote up here:
> http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide#Latency

Thank you, Roger. This link will be definitely helpful in tuning the latency to the optimum later. But I think I have a problem at a more basic level.

Would you say that encoding the image sequence using the flv vcodec and streaming as swf/flv stream is correct in principle? If yes, why would a browser (Chrome and Firefox tested) not start playing the flv stream before the full stream has been transmitted?

Thanks
Jerome



More information about the ffmpeg-user mailing list