vMix Forums
»
General
»
General Discussion
»
Is there anyway to 'Change' an input in the API?
Rank: Advanced Member
Groups: Registered
Joined: 6/16/2015(UTC) Posts: 193 Location: Milton Keynes, UK Thanks: 10 times Was thanked: 53 time(s) in 27 post(s)
|
Hi
Quick question : Is there anyway to change an input in the API? I can see you can add an input but cant see an option to change an input, something like ChanegeInput, Input, Value (Where value is broadly the same convention as AddInput.
Thanks in Advance.
Keith
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/7/2012(UTC) Posts: 2,642 Location: Canada Thanks: 33 times Was thanked: 506 time(s) in 475 post(s)
|
@ kgoodyer
What specifically are you attempting to accomplish?
There is a 'MoveInput' Function that may be what you are looking for.
Ice
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/16/2015(UTC) Posts: 193 Location: Milton Keynes, UK Thanks: 10 times Was thanked: 53 time(s) in 27 post(s)
|
OK ill try and make this simple
I have 10,000 JPG images numbered 0000.jpg to 9999.jpg, each image is exactly the same size, orientation, and resolution. An external piece of software calls the API to decide which one of the 10,000 images is displayed. As you can imagine I cant have each of the 10,000 images all loaded as separate inputs.
I was just going to do a Title XAML and then use the SetImage API function to change the image... However...
My client has also asked me to provide the same system, but this time using video clips i.e. 0000.avi to 9999.avi each video clip playing in an endless loop until a new video is requested.
That's stumped me for work around's - any help gratefully received.
BTW there are three different images/videos used on screen at a time. My external software selects (through the API) which 3 images/videos are displayed.
All The Best
Keith
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/16/2015(UTC) Posts: 193 Location: Milton Keynes, UK Thanks: 10 times Was thanked: 53 time(s) in 27 post(s)
|
OK ill try and make this simple
I have 10,000 JPG images numbered 0000.jpg to 9999.jpg, each image is exactly the same size, orientation, and resolution. An external piece of software calls the API to decide which one of the 10,000 images is displayed. As you can imagine I cant have each of the 10,000 images all loaded as separate inputs.
I was just going to do a Title XAML and then use the SetImage API function to change the image... However...
My client has also asked me to provide the same system, but this time using video clips i.e. 0000.avi to 9999.avi each video clip playing in an endless loop until a new video is requested.
That's stumped me for work around's - any help gratefully received.
BTW there are three different images/videos used on screen at a time. My external software selects (through the API) which 3 images/videos are displayed.
All The Best
Keith
|
|
|
|
Rank: Advanced Member
Groups: Guests
Joined: 9/15/2013(UTC) Posts: 168 Location: Barbados Thanks: 14 times Was thanked: 14 time(s) in 13 post(s)
|
Make a 'LIST' for the input, and load all the images there....go to 'Settings', search for 'Shortcuts', and set up the keys you want to use, (I used the arrow keys to make it simple) and for advancing, or moving foward, select 'Next Item'...for moving backwards 'Previous Item'...set the speed of anything, and select 'Preview'...close.....now when you are ready to select an image, bring that 'List' to the preview window, and use the short cut keys to toggle foward or backward to find the image you want, then send to output.....
I use this method without any issues.....
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/18/2014(UTC) Posts: 1,838 Location: Stockholm
Thanks: 144 times Was thanked: 297 time(s) in 250 post(s)
|
Keith, AFAIK there is no ChangeInput API call, but I have sort of wished for that myself a few times. Maybe time for a Feature Request?
Guess Bardos' workaround with Playlist would work with a slight variation, you can give it a try. IF so, generate the necessary m3u from your application, and then use API SelectIndex to decide which video to use.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/7/2012(UTC) Posts: 2,642 Location: Canada Thanks: 33 times Was thanked: 506 time(s) in 475 post(s)
|
Bardos wrote:Make a 'LIST' for the input, and load all the images there....go to 'Settings', search for 'Shortcuts', and set up the keys you want to use, (I used the arrow keys to make it simple) and for advancing, or moving foward, select 'Next Item'...for moving backwards 'Previous Item'...set the speed of anything, and select 'Preview'...close.....now when you are ready to select an image, bring that 'List' to the preview window, and use the short cut keys to toggle foward or backward to find the image you want, then send to output.....
I use this method without any issues..... @ Bardos That works great for a manageable sized folder of content, but 10,000 is probably too many to 'leaf' through! @ richardgatarski I was going to suggest the "SelectIndex" function as well, but I am having trouble figuring out the best way of 'quickly' altering or inputting the "Value" parameter. (I am not all that familiar with the API through other devices, so it might be a simple process, but rather I'm trying with "Shortcuts" and there just doesn't seem to be a way without drilling down and editing in the 'Shortcuts' window). If I understand correctly, what Keith is after, is the ability to type the "Value" corresponding to one of 10,000 video clips (or photos) and have it instantly available. This, of course, is possible with "SelectIndex", it's just not convenient having to open several windows to edit the 'parameter' every time. Does anyone have any ideas of how to "edit" that value easily? Perhaps some sort of 'SetParameter' or 'ChangeValue' pop-up shortcut should be requested? Ice
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/18/2014(UTC) Posts: 1,838 Location: Stockholm
Thanks: 144 times Was thanked: 297 time(s) in 250 post(s)
|
I am talking about SelectIndex to via an API call select which item to use in a List Input (that has been loaded/created with an m3u file containing all the (1.000) videos.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/16/2015(UTC) Posts: 193 Location: Milton Keynes, UK Thanks: 10 times Was thanked: 53 time(s) in 27 post(s)
|
I don't quiet understand how I build an playlist, but I get the idea, gona be one hell of a big playlist. So do I load this playlist up as a Video?
|
|
|
|
Rank: Advanced Member
Groups: Guests
Joined: 9/15/2013(UTC) Posts: 168 Location: Barbados Thanks: 14 times Was thanked: 14 time(s) in 13 post(s)
|
kgoodyer wrote:I don't quiet understand how I build an playlist, but I get the idea, gona be one hell of a big playlist. So do I load this playlist up as a Video? When you select 'ADD INPUT', Select 'LIST', a window will open....Select 'ADD', navigate to the folder/s that has whatever you want to add, and select them, and thst all there is to it....it is always good to place all your clips you want to use in one folder, audio files in another one, so you can locate them easily.....
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/18/2014(UTC) Posts: 1,838 Location: Stockholm
Thanks: 144 times Was thanked: 297 time(s) in 250 post(s)
|
just google, eg "m3u playlist format" (and hope that vMix can handle reeeally long lists ;)
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Is there anyway to 'Change' an input in the API?
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close