[vlc-devel] Patch to specify audio/video payload type for RTP streaming

Andreas Granig agranig at sipwise.com
Sun Apr 13 14:15:38 CEST 2014


Hi,

I've seen this question popping up quite frequently on VLC forums and I
happened to need this feature too, so attached is a patch which allows
you to specify the audio and video ptype for RTP streaming via cmd
options, like this:

rtp{dst=127.0.0.1,port-audio=1234,ptype-audio=105,port-video=1236,ptype-video=102,sdp=file:///path/to/sdp}

Why is this needed?

If you do plain RTP streaming with codecs using the dynamic payload type
range (96 and up), VLC usually uses ptype 96. That's the case for opus,
VP8, H264 etc.

Now if you do SDP offer/answer instead, the requesting client is sending
an SDP offer with the codecs it supports, plus the payload type it
wishes to use for those codecs. If you for example use a VoIP server
controlling VLC via the telnet interface to stream media back to the
VoIP client, then you need to take the payload type from the client's
offer and tell VLC to use those ptypes in the corresponsing outbound RTP
streams.

Please review and provide feedback,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vlc-ptype.patch
Type: text/x-patch
Size: 3219 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140413/2866ea80/attachment.bin>


More information about the vlc-devel mailing list