Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
thejaquio
New Cone
New Cone
Posts: 4
Joined: 26 Mar 2018 20:16

Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Postby thejaquio » 26 Mar 2018 20:59

I am using OBS Studio to output a UDP multicast stream to my building, and viewing with VLC. I can view the stream just fine with VLC version 2.2.6, but the stream won't play (or it plays with audio only) in version 3.0.1.

The stream settings are as follows:
Container: mpegts
Video encoder: libx264 at 512kbps
Audio encoder: aac at 128kbps
Output resolution: 852x480

I've seen a few others on this forum with the same problem. Any help about how to fix this or what to change would be greatly appreciated.

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Postby chubinou » 27 Mar 2018 10:33

Hello,

UDP mtu is limited in VLC 3.0 to 1316, you can set the packet size on OBS side by setting the address to "udp://1.2.3.4:4242?pkt_size=1316"

Though, I rather advise you, to use "rtp_mpegts" as a container on OBS side, and on VLC side to use rtp://@1.2.3.4:4242 rather than using raw UDP. Be sure to use an even port number.

thejaquio
New Cone
New Cone
Posts: 4
Joined: 26 Mar 2018 20:16

Re: Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Postby thejaquio » 30 Apr 2018 20:42

Thank you. This solved my issue. This solution works on both the old and new versions of VLC, so it eliminates the rush to upgrade. Thanks again.

Aeium
New Cone
New Cone
Posts: 1
Joined: 18 Jul 2018 22:31

Re: Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Postby Aeium » 18 Jul 2018 22:44

Hello,

UDP mtu is limited in VLC 3.0 to 1316, you can set the packet size on OBS side by setting the address to "udp://1.2.3.4:4242?pkt_size=1316"

Though, I rather advise you, to use "rtp_mpegts" as a container on OBS side, and on VLC side to use rtp://@1.2.3.4:4242 rather than using raw UDP. Be sure to use an even port number.
Thank you!

Not only did you solve the problem I had, you pointed me to the problem I should have had and solved that too!

Amazing. Made my day.

User avatar
Fosfor
New Cone
New Cone
Posts: 3
Joined: 24 Jul 2018 22:00

Re: Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Postby Fosfor » 16 Aug 2018 16:22

UDP mtu is limited in VLC 3.0 to 1316
Is there any possibility to change the MTU limit on the VLC side? Or any other workaround other than changing the stream source? I'm trying to figure our why receiving of UDP multicast is not working here neither in latest 3.x, nor in dev 4.x, but works in 2.x. I'm not getting any UDP MTU errors, but it seems, that actual packets are above the limit (1514 according to Wireshark).

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Postby chubinou » 21 Aug 2018 09:44

@Fosfor: you can try to set the mtu using the --mtu option or in advanced pref > Input/Codec > Network Settings > MTU of the network interface

User avatar
Fosfor
New Cone
New Cone
Posts: 3
Joined: 24 Jul 2018 22:00

Re: Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Postby Fosfor » 23 Aug 2018 10:48

Thanks chubinou, but neither helped. I tried to set MTU=1600 (as I have in version 2.2.8 ), but nothing changed. I already have some debug info, so I'll try to put it together and open a new topic.

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

Re: Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Postby Rémi Denis-Courmont » 24 Aug 2018 16:48

The MTU must be adjusted on the sending side. The receiver is powerless to change packet size.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

User avatar
Fosfor
New Cone
New Cone
Posts: 3
Joined: 24 Jul 2018 22:00

Re: Viewing UDP stream in v3.0.1 doesn't work. In v2.2.6 it works fine.

Postby Fosfor » 24 Aug 2018 19:45

So the settings suggested by chubinou have no effect?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 36 guests