[Libav-user] remuxing MKV/H.264 to MPEG2 Elemntary Stream
Kalileo
kalileo at universalx.net
Sun Feb 19 06:03:59 CET 2012
On Feb 18, 2012, at 03:00 , Andrey Utkin wrote:
> 2012/2/17 Pavel Sokolov <pavel at sokolov.me>:
>> May be I need to add some extra header to the packets?
>
> You can do it by duplicating AVCodecContext.extradata.
> avcodec_copy_context() can do that for you.
When I read from a file (video.ts) in mpegts format, avcodec_copy_context() does not help me, because there is no extradata in the "in"-AVCodecContext.extradata.
How can i manually fill extradata with the correct values in such a case? Which format must the data be in extradata?
More information about the Libav-user
mailing list