rtp with fixed source/port ipv6

This forum is about all development around libVLC.
parmito
New Cone
New Cone
Posts: 2
Joined: 12 Dec 2023 11:38
Operating System: Linux

rtp with fixed source/port ipv6

Postby parmito » 12 Dec 2023 13:08

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15271
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: rtp with fixed source/port ipv6

Postby Rémi Denis-Courmont » 12 Dec 2023 16:41

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

parmito
New Cone
New Cone
Posts: 2
Joined: 12 Dec 2023 11:38
Operating System: Linux

Re: rtp with fixed source/port ipv6

Postby parmito » 12 Dec 2023 19:29

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests