[Ffmpeg-devel] read_header() and AVFMTCTX_NOHEADER

Michael Niedermayer michaelni
Mon Nov 20 18:01:15 CET 2006


Hi

On Thu, Nov 16, 2006 at 04:36:09PM -0800, Allan Hsu wrote:
> 	Hello all. I've been hacking on the ffmpeg FLV decoder a bit; I'm  
> working on getting it so that decoding can start before the entire  
> file is available. I've written an onMetaData parser to pull header  
> information out of streams that contain the FLV META tag. I'm new to  
> ffmpeg development though, so I have a few questions that might have  
> simple answers:
> 
> 1. How much information is required for a read_header implementation  
> to *not* set AVFMTCTX_NOHEADER? In my use, I've been able to get away  
> with creating empty streams (with no codec information set) and  
> setting duration from the information in the metadata headers. Is  
> this enough? (It sure doesn't feel like it...)

it probably is, though creating streams when there are none in the file
is not ok ...


> 
> 2. Is it always necessary to call av_find_stream_info() after  
> av_open_input_stream()?

yes (=if you dont then dont complain if anything breaks, it may or may not
work)

[...]
-- 
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