vMix Forums
»
General
»
General Discussion
»
VideoList input total duration or per item durations
Rank: Member
Groups: Registered
Joined: 6/29/2020(UTC) Posts: 16 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,246 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
|
|
|
|
Rank: Member
Groups: Registered
Joined: 6/29/2020(UTC) Posts: 16 Location: Moscow Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: doggy 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?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/5/2017(UTC) Posts: 570 Location: Manitoba Thanks: 118 times Was thanked: 313 time(s) in 178 post(s)
|
Originally Posted by: caspy Originally Posted by: doggy 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>
|
|
|
|
Rank: Member
Groups: Registered
Joined: 6/29/2020(UTC) Posts: 16 Location: Moscow Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: raugert
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?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,246 Location: Belgium Thanks: 294 times Was thanked: 961 time(s) in 795 post(s)
|
Originally Posted by: caspy Originally Posted by: raugert
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
|
|
|
|
Rank: Member
Groups: Registered
Joined: 6/29/2020(UTC) Posts: 16 Location: Moscow Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: doggy 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?
|
1 user thanked caspy for this useful post.
|
|
|
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
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/17/2023(UTC) Posts: 12 Location: Rio de Janeiro
|
+1
Did anyone find out how to add list remaining time to an input?
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
VideoList input total duration or per item durations
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