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
shawntempesta  
#1 Posted : Friday, August 21, 2020 9:30:43 AM(UTC)
shawntempesta

Rank: Advanced Member

Groups: Registered
Joined: 7/15/2018(UTC)
Posts: 90
United States
Location: Las Vegas, NV

Thanks: 13 times
Was thanked: 6 time(s) in 5 post(s)
I do a daily Facebook Live talk show, and I have moments that I ABSOLUTELY want to put in the recap video. But I forget where they are and have to hunt for them. I'd write them down if I didn't have to host the show on top of switch it.

What would be AWESOME is to have a hotkey we can set that, when you hit it, puts the time of recording in a TXT file. So when I go to edit, I can check the times I marked and find the clips I want.

Let it be done, vMix Gods.
doggy  
#2 Posted : Friday, August 21, 2020 3:54:03 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,647
Belgium
Location: Belgium

Thanks: 151 times
Was thanked: 484 time(s) in 394 post(s)
Something like WriteDurationToRecordingLog function ? If only there was
elgarf  
#3 Posted : Friday, August 21, 2020 4:57:19 PM(UTC)
elgarf

Rank: Advanced Member

Groups: Registered
Joined: 10/23/2015(UTC)
Posts: 452
Man
Russian Federation

Thanks: 20 times
Was thanked: 198 time(s) in 123 post(s)
You can use script if you have 4K or Pro version.

Code:
'Text file for time marks
dim FILENAME = "D:\out.txt"

'Get recording duration
dim xml = API.XML()
dim x as new system.xml.xmldocument
x.loadxml(xml)
dim Duration = integer.parse((x.SelectSingleNode("//recording/@duration").Value))

dim Second = math.floor(Duration mod 60)
dim Minute = math.floor((Duration / 60) mod 60)
dim Hour = math.floor((Duration / (60 * 60)) mod 60)

'Write recording duration to file
System.IO.File.AppendAllText(filename, string.format("{0:00}:{1:00}:{2:00}"&Environment.NewLine, Hour, Minute, Second))
thanks 1 user thanked elgarf for this useful post.
doggy on 8/21/2020(UTC)
doggy  
#4 Posted : Friday, August 21, 2020 5:07:49 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,647
Belgium
Location: Belgium

Thanks: 151 times
Was thanked: 484 time(s) in 394 post(s)
Originally Posted by: elgarf Go to Quoted Post
You can use script if you have 4K or Pro version.



Hi elgarf
Mind adding it to the Dummies posts ?
elgarf  
#5 Posted : Friday, August 21, 2020 6:04:18 PM(UTC)
elgarf

Rank: Advanced Member

Groups: Registered
Joined: 10/23/2015(UTC)
Posts: 452
Man
Russian Federation

Thanks: 20 times
Was thanked: 198 time(s) in 123 post(s)
Hi,

No problem
thanks 1 user thanked elgarf for this useful post.
doggy on 8/21/2020(UTC)
shawntempesta  
#6 Posted : Sunday, August 23, 2020 7:29:07 PM(UTC)
shawntempesta

Rank: Advanced Member

Groups: Registered
Joined: 7/15/2018(UTC)
Posts: 90
United States
Location: Las Vegas, NV

Thanks: 13 times
Was thanked: 6 time(s) in 5 post(s)
WHOA! If this is actually accomplishable now - I am beyond thrilled. And thank you @elgarf!

Threw it in - and wouldn't you freaking know it. WOW. You're a genius. THANK YOU SO MUCH.
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.