[Ffmpeg-devel] [RFC] stream copy, -flags, global_header

Michael Niedermayer michaelni
Thu Nov 30 10:25:41 CET 2006


Hi

On Tue, Nov 28, 2006 at 02:46:48PM +0100, Baptiste Coudurier wrote:
> Hi
> 
> Michael Niedermayer wrote:
> > Hi
> > 
> > On Fri, Nov 10, 2006 at 03:09:44PM +0100, Baptiste Coudurier wrote:
> >> Hi
> >>
> >> I noticed a problem when stream copy, you cannot set -flags. It appears
> >> unneeded at first sight, but some flags interfere also with stream copy
> >> : -global_header and -local_header.
> >>
> >> It does not work basically cause the set is only done when not stream
> >> copying, also because -global_header flag is not A|V|E, latter is
> >> trivial to fix.
> >>
> > [...]
> > 
> >> I see 2 ways, either change codec flags set to both case (stream copy
> >> and encoding) in ffmpeg.c, 
> > 
> > i think idependant of this that changing stuff in AVCodecContext during 
> > stream copy would be usefull (think of aspect ratio, sample rate and so on)
> > 
> 
> Like attached patch ?

yes, if it works and has no unexpected sideeffects

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