On Feb 18, 2012, at 03:00 , Andrey Utkin wrote: > 2012/2/17 Pavel Sokolov <pa...@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? _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user