[Ffmpeg-devel] Livestreaming FLV with ffserver is buggy

Timon Reinhard timon
Mon Jul 17 19:07:37 CEST 2006


Am Montag, den 17.07.2006, 08:25 -0500 schrieb Chris Dolan:

> On Jul 16, 2006, at 9:26 AM, Timon Reinhard wrote:
> > streaming flv with ffserver doesn't work fine: The videostream plays
> > quite exactly *half the speed* it should (and sometimes stops
> > completely) in swf-based flv-players.
>
> From my (limited) experience hacking FLV, this sounds like the  
> stream that's being served has broken audio.  The time reference for  
> FLV seems to be driven by audio in Macromedia's player, so any glitch  
> will affect playback.  I see below that you have specified an audio  
> rate of 22 kHz.  Are you sure that's right?  DV is usually higher,  
> and I don't see any resampling arguments in your ffmpeg cmdline.

I think ffmpeg resamples it's input to the sample rate given in
ffserver.conf. Your hint regarding the audio-driven time reference made
me playing around with different sample rates. Using 11050 Hz there, the
audio worked continuously without cluttering, but the video played jerky
and stopped after a few seconds.

To make sure these problems don't have to do anything with my DV-input,
I tested these steps with a Video4Linux (seems to be natively supported
by ffmpeg). Nevertheless I had exactly the same problems :-(

I really don't understand why ffmpeg produces perfectly playable
flv-files while ffserver can't stream than. ;)

> Perhaps you could post a sample FLV and/or and URL for your
> streaming server?

Currently I'm working on localhost, but I'm going to set up a test
scenario on a public server.

Thank you very much for your help! It's really appreciated.

Timon







More information about the ffmpeg-devel mailing list