Page 1 of 1

rtp with fixed source/port ipv6

Posted: 12 Dec 2023 13:08
by parmito
how can I make rtp being bound to a specific ipv6 source/port address?
I need to make a multicast transmission over VLAN forcing a pre-determined source/port address.

This is what I have today:

libvlc_vlm_add_broadcast(vlcinstance, "mybroadcast", \
"/home/danilo-franco/Downloads/fpk.m2v",\
"#transcode{vb=\"1600\",vcodec=h264,venc=ffmpeg}:rtp{proto=udp,mux=ts,dst=ff14::2:4,port=42800} --loop --ttl 1",\
0,\
NULL,\
true,\
0);

Any help would be appreciated.

Danilo Franco

Re: rtp with fixed source/port ipv6

Posted: 12 Dec 2023 16:41
by RĂ©mi Denis-Courmont
It should be possible to pick it with dst=[SRC_IP]:SRC_PORT@[DST_IP]:DST_PORT. But IMO, the default source address should be fixed with the ad-hoc parameter in the routing table configuration, not VLC.

Re: rtp with fixed source/port ipv6

Posted: 12 Dec 2023 19:29
by parmito
Thank you for your prompt reply.
Do you mean something like this:

libvlc_vlm_add_broadcast(vlcinstance, "mybroadcast", \
"/home/danilo-franco/Downloads/fpk.mpeg",\
"#transcode{vb=\"1600\",vcodec=h264,venc=x264}\
:rtp{proto=udp,mux=ts,dst=[fd53:7cb8:383:5::73]:42989@[ff14::2:4]:42800}\
--ttl 1",\
0,\
NULL,\
true,\
0);

It didn't work and I don't think this is something something related to routing table configuration once when I make use of QT to send periodic multicast message I can bind it exactly to pre-determined source ip/port.