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
MikeBenke  
#1 Posted : Friday, May 25, 2018 11:19:26 AM(UTC)
MikeBenke

Rank: Advanced Member

Groups: Registered
Joined: 2/7/2018(UTC)
Posts: 45
Location: Saint Louis

Thanks: 4 times
Was thanked: 4 time(s) in 3 post(s)
Hi All,
I'm learning HTTP Commands, can't seem to figure out how to add an NDI input?

What am I doing wrong here?

http://192.168.0.4:8088/api/?Function=AddInput&NDI|= "NDI SOURCE"

Thanks in advance!
Mike
MikeBenke  
#2 Posted : Friday, May 25, 2018 5:17:32 PM(UTC)
MikeBenke

Rank: Advanced Member

Groups: Registered
Joined: 2/7/2018(UTC)
Posts: 45
Location: Saint Louis

Thanks: 4 times
Was thanked: 4 time(s) in 3 post(s)
Also, I'd like to pause/play a youtube clip with HTTP API? Am I looking at the browser section of the shortcuts for this?
livepad  
#3 Posted : Sunday, June 10, 2018 12:44:34 PM(UTC)
livepad

Rank: Advanced Member

Groups: Registered
Joined: 3/31/2016(UTC)
Posts: 126
Location: london

Thanks: 2 times
Was thanked: 46 time(s) in 32 post(s)
MikeBenke wrote:
Hi All,
I'm learning HTTP Commands, can't seem to figure out how to add an NDI input?

What am I doing wrong here?

http://192.168.0.4:8088/api/?Function=AddInput&NDI|= "NDI SOURCE"

Thanks in advance!
Mike


You probably need to URL encode the string. raw quotes are likely a problem
URL Encoding
MikeBenke  
#4 Posted : Sunday, June 10, 2018 6:23:54 PM(UTC)
MikeBenke

Rank: Advanced Member

Groups: Registered
Joined: 2/7/2018(UTC)
Posts: 45
Location: Saint Louis

Thanks: 4 times
Was thanked: 4 time(s) in 3 post(s)
Thanks for the Link to W3 livepad!

I am still at a loss though... I was hoping someone could give me an example string of what to type in. Specifically to add an NDI source via HTTP API. I could probably figure out what to replace on my end in terms of name of NDI source, etc.

That reminds me... Is there a way to specify or reserve the input number the new source creates? Perhaps there is a better way of doing this that I am unaware of but..

I'd like to keep my API string that triggers an overlay on/off from Panamation's workspace the same every time I run vMix regardless of what sources I may have added or active. Is this possible? To me, this means that either I must A) load a saved project file that keeps Panam in the same input location or B) create an API command that Add's Panam as an input (via NDI) and dictates that it always be the same input number (let's say 997)

If possible, what would that string look like? This?

127.0.0.1:8088/api/?Function=AddInput997&NDI=GlobeCaster_Panamation

Then I could write my api command to run the overlay1 with input 997 and it would always work because those inputs would be reserved

like this:
http://127.0.0.1:8088/api?Function=OverlayInput1&Input=997

While we are at it, what do I type in if I want to jog frame back and forth on a clip using regular vMix?

127.0.0.1:8088/api/?Function=SetPosition.....

Thanks again, I promise you'll only have to show me once :)

kane  
#5 Posted : Sunday, June 10, 2018 11:19:35 PM(UTC)
kane

Rank: Advanced Member

Groups: Registered
Joined: 3/24/2016(UTC)
Posts: 331
Location: Chicago, IL

Was thanked: 143 time(s) in 94 post(s)
I don't know the vMix API, so perhaps this will not help at all, but NDI sources are named
"Device Name (Channel Name)"

In your example, if Panamation is running on a computer called "WinPC" and Panamation uses the channel name of "GlobeCaster_Panamation", the full NDI name would be
"WinPC (GlobeCaster_Panamation)"

Perhaps vMix doesn't do it this way, but this is how TriCaster sees NDI sources (I'm guessing that pretty much all applications will be similar since they all use the same NDI DLL).

Kane Peterson
NewTek
ask  
#6 Posted : Monday, June 11, 2018 8:17:21 AM(UTC)
ask

Rank: Advanced Member

Groups: Registered
Joined: 10/13/2012(UTC)
Posts: 1,161
Australia
Location: Melbourne

Thanks: 220 times
Was thanked: 199 time(s) in 181 post(s)
From the help files:

NDI





NDICommand

Send specified command to NDI source



Value = Command

Value,Input

NDISelectSourceByIndex

Value = Index 0-100

Value,Input

NDISelectSourceByName

Value = Name

Value,Input

NDIStartRecording



Input

NDIStopRecording



Input
livepad  
#7 Posted : Monday, June 11, 2018 1:35:07 PM(UTC)
livepad

Rank: Advanced Member

Groups: Registered
Joined: 3/31/2016(UTC)
Posts: 126
Location: london

Thanks: 2 times
Was thanked: 46 time(s) in 32 post(s)
You might want to move this question to the API section of this forum
3rd Party Software and Development
desmar  
#8 Posted : Monday, June 11, 2018 8:22:36 PM(UTC)
desmar

Rank: Advanced Member

Groups: Registered
Joined: 8/21/2015(UTC)
Posts: 324
Man
Canada
Location: Cornwall, Ontario, Canada

Thanks: 18 times
Was thanked: 80 time(s) in 60 post(s)
There is no API command to add an NDI source at this time..

only Source Types available to add are

Video
Image
Photos
Xaml
VideoList
Colour
AudioFile
Flash
PowerPoint

If NDI was there, the command would look like.

http://xxx.xxx.xxx.xxx:8088/api/?Function=AddInput&Value=Type|ComputerName%20InputName
http://xxx.xxx.xxx.xxx:8088/api/?Function=AddInput&Value=NDI|ComputerName%20Display1

or

http://xxx.xxx.xxx.xxx:8088/api/?Function=AddInput&Value=NDI|ComputerName%20(Display1)

or

http://xxx.xxx.xxx.xxx:8088/api/?Function=AddInput&Value=NDI|ComputerName%20%28Display1%29



%20 is for the hex value for space character...
%28 is for the hex value for ( character...
%29 is for the hex value for ) character...

If I get a chance in the next months or so or I will try and write an HTTP API converter app for each command in vMix which will output the correct HTTP API command
thanks 1 user thanked desmar for this useful post.
MikeBenke on 6/12/2018(UTC)
MikeBenke  
#9 Posted : Tuesday, June 12, 2018 12:59:22 PM(UTC)
MikeBenke

Rank: Advanced Member

Groups: Registered
Joined: 2/7/2018(UTC)
Posts: 45
Location: Saint Louis

Thanks: 4 times
Was thanked: 4 time(s) in 3 post(s)
Thank You Desmar. I think a converter would be brilliant for guys like me who just can't seem to wrap their heads around the lingo.
Users browsing this topic
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.