[Live-devel] question regarding recieving & unpacking TS over RTP, generated from testH264VideoToTransportStream

Ross Finlayson finlayson at live555.com
Mon Dec 19 19:35:59 PST 2011


> I've used the example "testH264VideoToTransportStream" as a basis for generating a H264-TS-over-RTP stream of packets.
> I have used Wireshark to view the stream of RTP packets, and they appear to be correctly filled with an integer number of 188 byte Transport-Stream packets.
> 
> I am trying to further validate this stream, and have used "testMPEG1or2VideoReceiver.cpp", and modified it to use the MP2T format (33) in the call to:
> 
>       sessionState.source = MPEG1or2VideoRTPSource::createNew( *env, &rtpGroupsock, 33, 90000 );

That's incorrect, because "MPEG1or2VideoRTPSource" is used for receiving MPEG *Elementary Stream* video over RTP.

To receive a MPEG *Transport Stream* over RTP, you should instead be calling:
	SimpleRTPSource::createNew(*env, &rtpGroupsock, 33, 90000, "video/MP2T", 0, False);


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/20111219/8cc1106e/attachment.html>


More information about the live-devel mailing list