[FFmpeg-devel] [PATCH] flvdec: Remove AVFMTCTX_NOHEADER when there is only 1 stream
michaelni at gmx.at
Wed Sep 7 17:33:00 CEST 2011
On Wed, Sep 07, 2011 at 07:58:24AM -0400, compn wrote:
> On Wed, 7 Sep 2011 11:07:56 +0100, Asad Mehmood wrote:
> >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 ?
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The real ebay dictionary, page 3
"Rare item" - "Common item with rare defect or maybe just a lie"
"Professional" - "'Toy' made in china, not functional except as doorstop"
"Experts will know" - "The seller hopes you are not an expert"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel