Changing MTU for sout through Python bindings python-vlc

About encoding, codec settings, muxers and filter usage
Kayzh3r
New Cone
New Cone
Posts: 1
Joined: 03 Nov 2020 08:38

Changing MTU for sout through Python bindings python-vlc

Postby Kayzh3r » 03 Nov 2020 08:53

Hi all,

First of all thanks for that awesome library and your support. I am trying to create a stream out limiting the MTU, but I can't achieve the goal.

If I use this sentence through CMD the package are clipped to 1370 as expected (variable mtu is set to 1370):
start %VLC_path%\vlc.exe -vvv %video_path% --mtu="%mtu%" %VLC_Params% :sout=#duplicate{dst=rtp{dst=%ip_dest%,port=%port_dest%},dst=display}"
with VLC_params: --sout-keep --loop

In my code, in python, I use the following:
self.media = self.vlc_instance.media_new(filename[0], r':sout=#duplicate{dst=rtp{dst=%s,port=%d},dst=display}' % (dst_ip, dst_port))
For the media creation (this works and streaming starts with destination dst_ip to port dst_port) and for limiting the MTU I tryed with a lot of sentences:
  1. self.media.add_option_flag('--mtu=', 1370)
  2. self.media.add_option_flag('mtu', 1370)
  3. self.media.add_option_flag('--mtu', 1370)
and none of the above options modifies the output MTU. Does anyone know what I'm doing wrong?

Thanks in advance

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests