[FFmpeg-devel] [PATCH] lavf: Add an XMV demuxer

compn tempn at twmi.rr.com
Tue Aug 16 15:44:21 CEST 2011


On Tue, 16 Aug 2011 15:08:50 +0200, Sven Hesse wrote:
>On 2011-08-16 08:51:48 +0000, Carl Eugen Hoyos wrote:
>> Please do not re-indent these lines in this patch: It makes reading the actual
>> changes much more difficult.
>> (Whoever commits the patch can do the re-indentation afterwards.)
>
>Hmm, okay...
>
>> > +    vst->codec->codec_id   = CODEC_ID_WMV2;
>> > +    vst->codec->codec_tag  = MKBETAG('W', 'M', 'V', '2');
>> 
>> Does remuxing work?
>
>As in
>$ ffmpeg -i FOO.xmv -acodec copy -vcodec copy BAR.wmv
>?
>
>It doesn't, suprisingly. Trying to play the output with ffplay doesn't
>open a window with the video contents. And the console shows
>| A-V:-1313499763.768
>so I guess the're something wrong with the timestamps?

try with -an to ignore audio sync problems.

>Hmm, also, unless ffmpeg rewrites the extradata, thanks to the hack
>in WMV2's decode_ect_header, the output would not be a standard WMV
>file. Maybe it would be better to manually unravel and rewrite the
>extradata according to normal WMV2 extradata in the XMV demuxer?

can you tweak the xmv demuxer (or add a bsf) to output something the
wmv2 decoder handles without hacks? 

i'm just guessing, better wait for an expert opinion.

-compn


More information about the ffmpeg-devel mailing list