[Ffmpeg-devel] [PATCH] reduce MAX_SCAN_PACKETS in mpegts.c

Michael Niedermayer michaelni
Sat Aug 26 19:23:03 CEST 2006


On Sat, Aug 26, 2006 at 06:08:19PM +0200, Nico Sabbi wrote:
> Hi,
> the current mpegts demuxer is unbearably slow because it wants to scan the
> first 32000 packets (corresponding to almost 6MB) to find usable programs,
> making this demuxer unusable for non local streams (lan, dvb, etc).
> This patch reduces MAX_SCAN_PACKETS to 512 (96KB) that should be enough
> for any decently interleaved stream (out of all my samples not one couldn't
> be played with this patch applied).

iam not mpeg-ts demuxer maintainer but IMHO this is unacceptable, make it
user selectable or use timestamps or even time()

such change the packet num / byte amount threshold patches just lead to a
neverending game of delay vs. support highbitrate file x

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is

More information about the ffmpeg-devel mailing list