[FFmpeg-devel] [PATCH] flvdec: Remove AVFMTCTX_NOHEADER when there is only 1 stream

compn tempn at twmi.rr.com
Wed Sep 7 19:24:39 CEST 2011

On Wed, 7 Sep 2011 17:33:00 +0200, Michael Niedermayer wrote:
>On Wed, Sep 07, 2011 at 07:58:24AM -0400, compn wrote:
>> On Wed, 7 Sep 2011 11:07:56 +0100, Asad Mehmood wrote:
>> >Hi
>> >
>> >I've written a patch which will unset the NOHEADER flag when a flv's metadata
>> >contains hasAudio false or hasVideo false. This allows an flv with only 1 stream
>> >to be played without waiting for av_find_stream_info to read upto probesize
>> >which is very slow when playing flv's over the network.
>> >
>> does this work with files that are concacted together?
>> cat 1.flv 2.flv > 3.flv 
>> the flv specs say this is allowed i think.
>if 1.flv has only an audio stream and 2.flv has only a video stream
>then you will have problems before and afterwards
>if 1.flv is short it might work before and fail afterwards
>is this a really occuring use case out in the wild that 2 files that
>have different stream types are concatenated ?

no, i dont have any samples. just saying i think it goes against
spec. even if the spec is stupid.


More information about the ffmpeg-devel mailing list