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
nemesis1203  
#1 Posted : Friday, May 5, 2017 12:05:29 AM(UTC)
nemesis1203

Rank: Newbie

Groups: Registered
Joined: 5/4/2017(UTC)
Posts: 3
Location: Bangkok

Thanks: 1 times
I would like to add a stream input to vMix using API.

It works well with local files:
- http://localhost:8088/API/?Function=AddInput&Value=Video|C:\Users\Nemesis\Desktop\small.mp4

However impossible to make it work with my RTSPTCP stream. I Tried:
- http://localhost:8088/API/?Function=AddInput&Value=Video|rtsp://localhost:1935/vod/sample -> File Not Found
- http://localhost:8088/API/?Function=AddInput&Value=Stream|rtsp://localhost:1935/vod/sample -> Function completed successfully. (But not working)
- http://localhost:8088/API/?Function=AddInput&Value=RTSPTCP|rtsp://localhost:1935/vod/sample -> Function completed successfully. (But not working)

I can add this input stream using UI, but really interested about adding it with API

Any idea on this ?
Thank you
stigaard  
#2 Posted : Friday, May 5, 2017 3:36:04 AM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 389 times
Was thanked: 100 time(s) in 79 post(s)
Is it a stream or a video file? .MP4 is a video file, and not a stream.. so it's very ambigious what you are trying to add as an input.
nemesis1203  
#3 Posted : Friday, May 5, 2017 3:41:28 AM(UTC)
nemesis1203

Rank: Newbie

Groups: Registered
Joined: 5/4/2017(UTC)
Posts: 3
Location: Bangkok

Thanks: 1 times
stigaard wrote:
Is it a stream or a video file? .MP4 is a video file, and not a stream.. so it's very ambigious what you are trying to add as an input.

Sorry it is misleading, I updated the question.
DWAM  
#4 Posted : Friday, May 5, 2017 5:02:34 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Hi

with a RTMP Stream, it works
?Function=AddInput&Value=Flash|rtmp://192.168.0.67:1935/play/dwamx

with RTSP the correct syntax should be (as reported by the API after manual input)
?Function=AddInput&Value=Stream|RTSPTCP rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov
but it doesn't work, I guess because of the space between the protocol and the address

I tried with
?Function=AddInput&Value=Stream|RTSPTCP%20rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov
and
?Function=AddInput&Value=Stream|RTSPTCP|rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov
but not good either

Any idea for replacing this space in the querystring? Or shall it be reported as a bug?

Guillaume
thanks 1 user thanked DWAM for this useful post.
nemesis1203 on 5/5/2017(UTC)
nemesis1203  
#5 Posted : Friday, May 5, 2017 5:48:54 AM(UTC)
nemesis1203

Rank: Newbie

Groups: Registered
Joined: 5/4/2017(UTC)
Posts: 3
Location: Bangkok

Thanks: 1 times
DWAM wrote:
Hi

with a RTMP Stream, it works
?Function=AddInput&Value=Flash|rtmp://192.168.0.67:1935/play/dwamx



Awesome, I will use RTMP as a fallback if needed :) Merci Guillaume
Kaf  
#6 Posted : Thursday, June 8, 2017 5:12:44 PM(UTC)
Kaf

Rank: Member

Groups: Registered
Joined: 2/24/2016(UTC)
Posts: 23
Location: France

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
With the new VLC stream we definitely need the API script support.
Any News for a correct syntax ?


keep up the good work !
Kaf  
#7 Posted : Tuesday, August 1, 2017 2:18:02 PM(UTC)
Kaf

Rank: Member

Groups: Registered
Joined: 2/24/2016(UTC)
Posts: 23
Location: France

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
I search everything but I can't add a RTMP VLC source via WebAPI.
Message to the dev team please make the "AddInput&Value=VLC|RTMPURL" possible.

Best regards.
Users browsing this topic
Guest (4)
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.