[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


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:


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

Please review and provide feedback,
-------------- 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