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
caspy  
#1 Posted : Monday, May 10, 2021 7:09:11 AM(UTC)
caspy

Rank: Member

Groups: Registered
Joined: 6/29/2020(UTC)
Posts: 16
Russian Federation
Location: Moscow

Was thanked: 1 time(s) in 1 post(s)
Greetings!

Is there any programmable way to get total duration of VideoList Input, or durations of all items from this VideoList?
In XML there is only a duration of currently selected item from List.

Thanks in advance.

Upd: it’s available in gui, in List editor. But can’t find same in any API.
doggy  
#2 Posted : Monday, May 10, 2021 7:20:58 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)
You could check the API XML for the list items and total the duration of each video file with a script
caspy  
#3 Posted : Monday, May 10, 2021 7:27:50 AM(UTC)
caspy

Rank: Member

Groups: Registered
Joined: 6/29/2020(UTC)
Posts: 16
Russian Federation
Location: Moscow

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post
You could check the API XML for the list items and total the duration of each video file with a script


Thanks for your answer.
But i do not see item’s duration in API XML. Where am i wrong?
raugert  
#4 Posted : Monday, May 10, 2021 12:26:40 PM(UTC)
raugert

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 570
Canada
Location: Manitoba

Thanks: 118 times
Was thanked: 313 time(s) in 178 post(s)
Originally Posted by: caspy Go to Quoted Post
Originally Posted by: doggy Go to Quoted Post
You could check the API XML for the list items and total the duration of each video file with a script


Thanks for your answer.
But i do not see item’s duration in API XML. Where am i wrong?


The duration (in milliseconds) of the currently selected item is shown in the List Input.

<input key="59b76d0d-442d-4766-ae8c-2bd5a2579576" number="16" type="VideoList" title="List1 - 3 Lord Selkirk.mov" shortTitle="List1" state="Paused" position="0" duration="226688" loop="False" muted="True" volume="40.96" balance="0" solo="False" audiobusses="M" meterF1="0" meterF2="0" gainDb="0" selectedIndex="5">List1 - 3 Lord Selkirk.mov<list>
<item>E:\FVM 2019\Videos\5 Mont-Joli.mp4</item>
<item>E:\FVM 2019\Videos\1 Precieux Sang.mov</item>
<item>E:\FVM 2019\Videos\4 Miles MacDonell.mp4</item>
<item>E:\FVM 2019\Videos\6 St Paul Collegiate.mov</item>
<item selected="true">E:\FVM 2019\Videos\3 Lord Selkirk.mov</item>
<item>E:\FVM 2019\Videos\best of FVM 2019 - 01.mp4</item>
caspy  
#5 Posted : Monday, May 10, 2021 4:34:00 PM(UTC)
caspy

Rank: Member

Groups: Registered
Joined: 6/29/2020(UTC)
Posts: 16
Russian Federation
Location: Moscow

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: raugert Go to Quoted Post


The duration (in milliseconds) of the currently selected item is shown in the List Input.


Thats was in my original post.
In XML i see only duration of selected. But in GUI i see all.

Is there a way to get all item’s (or total) durations via API?
doggy  
#6 Posted : Monday, May 10, 2021 7:49:25 PM(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: caspy Go to Quoted Post
Originally Posted by: raugert Go to Quoted Post


The duration (in milliseconds) of the currently selected item is shown in the List Input.


Thats was in my original post.
In XML i see only duration of selected. But in GUI i see all.

Is there a way to get all item’s (or total) durations via API?


while not obvious there is a shortcut to allow to "scroll" through the list inputs. means you can loop through all the items and read their duration to add to a total

NextPicture/PreviousPicture function

the wonders of a quick search ;-) https://forums.vmix.com/...deo-list--input#post5286
caspy  
#7 Posted : Monday, May 10, 2021 8:35:38 PM(UTC)
caspy

Rank: Member

Groups: Registered
Joined: 6/29/2020(UTC)
Posts: 16
Russian Federation
Location: Moscow

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post

while not obvious there is a shortcut to allow to "scroll" through the list inputs. means you can loop through all the items and read their duration to add to a total

NextPicture/PreviousPicture function


I understand this way, but in a common case i can not touch list, cause it may be online when i need durations.

another way - i can add and remove as a new input each file from list one by one and grab its duration, but is seems to be a strange way, when vMix already knows this information.

vMix team, is it possible to add item’s duration to XML?
thanks 1 user thanked caspy for this useful post.
studiodelta on 9/15/2021(UTC)
scanscan  
#8 Posted : Tuesday, September 28, 2021 2:39:15 AM(UTC)
scanscan

Rank: Member

Groups: Registered
Joined: 2/2/2020(UTC)
Posts: 12

Thanks: 3 times
Was thanked: 2 time(s) in 2 post(s)
vMix team, is it possible to add item’s duration to XML

Please )))) Up this topic
fva  
#9 Posted : Friday, August 18, 2023 1:28:19 PM(UTC)
fva

Rank: Member

Groups: Registered
Joined: 8/17/2023(UTC)
Posts: 12
Brazil
Location: Rio de Janeiro

+1

Did anyone find out how to add list remaining time to an input?
Users browsing this topic
Guest (3)
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.