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

Baptiste Coudurier baptiste.coudurier
Tue Nov 28 14:46:48 CET 2006


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 ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: opt_stream_copy.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061128/5ef6b64a/attachment.asc>



More information about the ffmpeg-devel mailing list