[vlc-devel] [PATCH] Dynamic rtp configurable payload type

Alessandro bietresato alessandro.bietresato at telefin.it
Mon Jan 13 18:20:37 CET 2020

Il 13/01/2020 17:18, Rémi Denis-Courmont ha scritto:
> Le maanantaina 13. tammikuuta 2020, 15.52.07 EET Alessandro bietresato a écrit
> :
>> Il 13/01/2020 12:08, Rémi Denis-Courmont ha scritto:
>>> This looks like completely pointless code complexity. No thanks.
>> Hi,
>> In my company we needed to set payload type to 120 to stream to a custom
>> hardware device, without SDP excange.
>> I made this patch since I did not found any other mean to force it (it
>> seems hard-coded to 96, for dynamic types).
> This does not fix any VLC bug and yet brings a number of problems:
> - can break RTCP mux.
> - assumes a single PT per ES, preventing any future support for journaling
> (e.g. MIDI), FEC, etc.
> - assumes that a fixed set of parameters for any given input ES format (since
> the SDP is not being parsed),
> - prevents defining any new static formats in the future if necessary.
> If a spec has assigned PT 120 for something, then refer to the spec and
> implement that correctly. This should not be a CLI variable IMO.
So, what's the correct way to implenent?
The actual mrl is (with the added parameter):

I can have the same result with the following gstreamer pipeline:
gst-launch-1.0 filesrc location=file.wav ! decodebin ! audioconvert ! 
audio/x-raw,channels=1 ! opusenc ! rtpopuspay pt=120 ! udpsink 
host= port=5050

Thanks for your time



_Ai sensi del Regolamento UE 679/2016  si precisa che le informazioni 
contenute in questo messaggio sono riservate e  ad uso esclusivo del 
destinatario. Qualora il messaggio in parola Le fosse  pervenuto per 
errore, La preghiamo di eliminarlo senza copiarlo e di non  inoltrarlo a 
terzi, dandocene gentilmente comunicazione alla mail info at telefin.it 
<mailto:info at telefin.it>. _
This message, for the Regulation UE 679/2016, 
may contain confidential  and/or privileged information. If you are not the 
addressee or authorized to  receive this for the addressee, you must not 
use, copy, disclose or take any  action based on this message or any 
information herein. If you have received  this message in error, please 
notify the sender immediately at the following e-mail address 
info at telefin.it <mailto:info at telefin.it> and  delete this message._

More information about the vlc-devel mailing list