[Libav-user] remuxing MKV/H.264 to MPEG2 Elemntary Stream

Pavel Sokolov pavel at sokolov.me
Sun Feb 19 10:22:42 CET 2012


17.02.2012 23:14, Alex Cohn пишет:
>
> Elementary stream does not work for h264. With h264, we speak about a 
> raw video in Appex B byte stream format, see 
> http://wiki.multimedia.cx/index.php?title=H.264.
>
> Ffmpeg suppliers conversion to appex B without transcoding.
>
My hardware decoder on the embeded device can play MPEG2 PES (packetized 
elementary stream).
Finally I need to remux H.264 to MPEG2 PES

I manually adding PES header to data returned by "av_read_frame".
I'm using function "mpegts_write_pes" from libavformat/mpegtsenc.c
This works fine for MPEG2 video.

Is there some way to remux H264 to PES?



More information about the Libav-user mailing list