udp - multicast doesn't work

Paule2020

New Member
Hello,

I would like to stream from 192.168.0.1 to two PCs in the same LAN, ip 192.168.0.11 and 192.168.0.12.

When I select the Output file to udp://192.168.0.11:9999 and I open this URL on x.11, the stream starts.

When I enter the multicast adresse udp://224.0.0.1:9999 on x.1 and I would like to start the stream on x.11 or x.12 with udp://@:9999, nothing happens

Any ideas?
 

Yeahish

New Member
I know it's a little bit late to answer. But will answer for the next person that might have the same issue.

To stream multicast you have to stream to a specific IP range. Somewhere in the 239.0.0.0 255.0.0.0 range (There is more but for the sake of simplicity I'm writing this range - See here )
And on your receiving devices you have to go to that multicast IP you set as the destination on the streaming device to be able to capture that feed.

So for example, on OBS you would set the output to udp://239.225.100.5:9999 and on all the other computers you would use udp://@239.225.100.5:9999 to capture the stream.


You can see here a guide that utilizes multicast to achieve what you are trying to - https://obsproject.com/forum/resources/obs-studio-send-an-udp-stream-to-a-second-pc-using-obs.455/
 

ivanbrab

New Member
I also faced the same problem. The casting works when i use the destination ip address but when I use the multicast address udp://224.0.0.1:9999 in obs the video does not play on any different pc
 

Statick

New Member
I know this is an old thread, but after some trial and error, these are the settings that worked for me (when using a multicast ip)

I'm stubborn and I didn't want to use the NDI plugin, I wanted to be able to connect to this using VLC, etc.

Prerequisites:

Make sure you're not streaming or recording.
Also if you have the NDI plugin installed for OBS, make sure to disable it by unchecking the boxes under Tools > NDI™ Output Settings

In OBS:​

Settings > Output
Output Mode - Select "Advanced" from the dropdown
Click the "Recording" tab
Type - Custom Output (FFmpeg)

FFmpeg Settings​

SettingValue
FFmpeg Output TypeOutput to URL
File path or URLudp://224.0.0.55:1234?pkt_size=1316
Container Formatmpegts
Muxer Settings (if any)(leave blank)
Video Bitrate15000 Kbps
Keyframe interval (frames)250
Rescale OutputLeave unchecked
Show all codecs (even if potentially incompatible)Check the box
Video Encoderh264_nvenc (libx264)
Video Encoder Settings (if any)(leave blank)
Audio Bitrate160 Kbps
Audio TrackCheck box 1
Audio Encoderaac
Audio Encoder Settings (if any)(leave blank)


In VLC​

Media > Network Stream
URL: udp://@224.0.0.55:1234?pkt_size=1316
 

Attachments

  • OBS-Settings.png
    OBS-Settings.png
    50.9 KB · Views: 846
  • VLC-Settings.png
    VLC-Settings.png
    14.3 KB · Views: 853
Last edited:
Top