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

Ross Finlayson finlayson at live555.com
Mon Apr 9 22:50:38 PDT 2012


> 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

You need to implement the (pure) virtual function:
	virtual void doGetNextFrame();

The code has several examples of "FramedFilter" subclass that you could refer to.  (I suggest "uLawAudioFilter.cpp".)


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120409/fbe10e21/attachment-0001.html>


More information about the live-devel mailing list