[Live-devel] Converting H.264 RTP Video to MPEG-2 Transport Stream

陈跃辉 timercrack at gmail.com
Mon Apr 9 22:40:47 PDT 2012


Thanks very much for your assistance!

I do the "H264VideoRTPSource -> H264VideoFileSink ->
testH264VideoToTransportStream" test and yes, VLC can play the generated
file successful.

This *should* work, with one modification: You will need to add a 'start
code' (i.e., 0x00 0x00 0x00 0x01) before each NAL unit that comes out of
the  "H264VideoRTPSource".  You will need to do this - using a separate
filter class (that you would write) - before you feed the output into a "
MPEG2TransportStreamFromESSource".


when I try to follow your suggestion, I found it's too hard for me to write
such a filter class. I tried to implement a new subclass of "FramedFilter",
but don't know what virtual functions should I overridden to insert the
start code at each NALU's head just as
"H264VideoFileSink::afterGettingFrame1()" does.

Is there any example or test program I can refer to? Could you give me any
suggestion on this matter?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120410/85bb5a26/attachment.html>


More information about the live-devel mailing list