[Ffmpeg-devel] Ffplay: TS streams take long time to start

Klaas-Pieter Vlieg vlieg
Wed Jul 5 15:18:41 CEST 2006

Klaas-Pieter Vlieg wrote: 
> I noticed TS streams via http take a very long time to start 
> in ffplay.
> If the same stream is contained in ASF or OGG it starts much quicker.
> Why is that and how can I speed up playback start of TS 
> streams in ffplay?

In libavformat/mpegts.c there is this:
	/* 1.0 second at 24Mbit/s */
	#define MAX_SCAN_PACKETS 32000

I reduced MAX_SCAN_PACKETS to 900 (since I'm streaming @700kbs) and ffplay starts playback much quicker now.

Klaas-Pieter Vlieg

More information about the ffmpeg-devel mailing list