logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
fgolman  
#1 Posted : Tuesday, October 10, 2023 7:40:40 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 85
United States
Location: Chicago

Thanks: 8 times
Was thanked: 3 time(s) in 2 post(s)
Is there a way via scripting to read UDP messages? Basically I'd want to cut to a specific input on receiving a UDP message and then switch to another on receiving another UDP message.

The reason for this is the system generating the commands can't do HTTP or TCP, just UDP. However, we can format those UDP messages as we like.

I'd been searching and can't find any information on this concept.

Thanks in advance.

Fritz Golman
iHeartMedia
ryxyz  
#2 Posted : Wednesday, October 11, 2023 4:52:08 AM(UTC)
ryxyz

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2023(UTC)
Posts: 42
United States

Thanks: 8 times
Was thanked: 10 time(s) in 3 post(s)
There is nothing built into vMix that supports this. However, a custom application could be written that proxies incoming UDP messages and then sends HTTP (or raw TCP) messages on to vMix.

Feel free to send me a private message, as I am available to hire if you would like this program written!
doggy  
#3 Posted : Wednesday, October 11, 2023 6:01:17 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,246
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 961 time(s) in 795 post(s)
Originally Posted by: ryxyz Go to Quoted Post
There is nothing built into vMix that supports this.


Tried "System.Net.Sockets.UdpClient" instead of the usual Imports System.Net.Sockets?
doggy  
#4 Posted : Thursday, October 12, 2023 8:27:43 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,246
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 961 time(s) in 795 post(s)
Originally Posted by: ryxyz Go to Quoted Post
There is nothing built into vMix that supports this.


a working try

vMixUDP.jpg (59kb) downloaded 12 time(s).
thanks 1 user thanked doggy for this useful post.
fgolman on 1/5/2024(UTC)
fgolman  
#5 Posted : Thursday, October 12, 2023 9:30:26 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 85
United States
Location: Chicago

Thanks: 8 times
Was thanked: 3 time(s) in 2 post(s)
Impressive!

This may just do the trick.

Now to set some actions!

Thanks!

Fritz
fgolman  
#6 Posted : Friday, January 5, 2024 7:36:16 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 85
United States
Location: Chicago

Thanks: 8 times
Was thanked: 3 time(s) in 2 post(s)
OK this has been working great!

One further question, I set up an action that is trapped to shut down the script. All is well BUT it needs to close the UDP connection so it's free for the next time it's run (otherwise port stays open and throws an error). No matter what I've tried I've not been able to get the UDP connection to close. Would anyone have the script commands to do this?

Thanks!

Fritz Golman
iHeartMedia
fgolman  
#7 Posted : Friday, January 5, 2024 3:18:59 PM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 85
United States
Location: Chicago

Thanks: 8 times
Was thanked: 3 time(s) in 2 post(s)
Never mind, figured it out.

receivingudpclient.close()
fgolman  
#8 Posted : Thursday, September 12, 2024 2:06:50 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 85
United States
Location: Chicago

Thanks: 8 times
Was thanked: 3 time(s) in 2 post(s)
Hey,

Adding to this thread.

Firstly, the UDP receiver script has been working great. It's been allowing interface between an automation system and vMix. Using it on several, high profile network programs broadcast in the USA.

NOW, a slightly different need has arisen for use within this script.

Although keeping the UDP receiver running, I'd also like to send out on a UDP command another UDP command to a different IP/Port when the script gets a specific input.

Anyone have any experience with this?

We would open UDP transmit port at beginning of script.

Then when specific UDP command intercepted, send a string out on that port.

Anyone? I don't know the specifics of VB Script enough to make this work. I've been lucky in that I've been able to cobble together the rest and it's been solid.

Thanks for any input on this!

UPDATE

A search revealed a script snip using TCP (which will be fine) that can work with modifications:

https://forums.vmix.com/...g-for-Dummies#post114636


Fritz Golman
iHeartMedia
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.