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: 109
United States
Location: Las Vegas, NV

Thanks: 14 times
Was thanked: 8 time(s) in 7 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: 5,072
Belgium
Location: Belgium

Thanks: 283 times
Was thanked: 920 time(s) in 759 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: 458
Man
Russian Federation

Thanks: 20 times
Was thanked: 225 time(s) in 129 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 3 users thanked elgarf for this useful post.
doggy on 8/21/2020(UTC), AgentPete on 6/28/2022(UTC), Pothala on 11/24/2023(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: 5,072
Belgium
Location: Belgium

Thanks: 283 times
Was thanked: 920 time(s) in 759 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: 458
Man
Russian Federation

Thanks: 20 times
Was thanked: 225 time(s) in 129 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: 109
United States
Location: Las Vegas, NV

Thanks: 14 times
Was thanked: 8 time(s) in 7 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.
NicholasBates  
#7 Posted : Thursday, April 7, 2022 3:51:26 PM(UTC)
NicholasBates

Rank: Newbie

Groups: Registered
Joined: 4/7/2022(UTC)
Posts: 5
Australia
Location: Woodwark

I cant see where to go from here?

Hey man,

Cant get the code to work, can i get your assistance?


Starting Script "Timestamp"
Script 'Timestamp' Error Line 8: Object reference not set to an instance of an object.
Stopping Script "Timestamp"




Originally Posted by: elgarf Go to Quoted Post
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))


doggy  
#8 Posted : Thursday, April 7, 2022 4:26:55 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,072
Belgium
Location: Belgium

Thanks: 283 times
Was thanked: 920 time(s) in 759 post(s)
Originally Posted by: NicholasBates Go to Quoted Post
I cant see where to go from here?

Hey man,

Cant get the code to work, can i get your assistance?


Starting Script "Timestamp"
Script 'Timestamp' Error Line 8: Object reference not set to an instance of an object.
Stopping Script "Timestamp"





Script wil be error free when actually recording ! (does not include a check for it)
usaiegh  
#9 Posted : Monday, April 3, 2023 11:54:05 PM(UTC)
usaiegh

Rank: Newbie

Groups ready for retrieval: Registered
Joined: 4/3/2023(UTC)
Posts: 2
Argentina
Location: Buenos Aires

Originally Posted by: elgarf Go to Quoted Post
You can use script if you have 4K or Pro version.


Hi! Can i make it work with the multicorder instead of the normal recording option? Thx

doggy  
#10 Posted : Tuesday, April 4, 2023 12:33:46 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,072
Belgium
Location: Belgium

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


Hi! Can i make it work with the multicorder instead of the normal recording option? Thx



With a different approach one could by checking on the multiCorder status to start a clock reference and such or something like that
usaiegh  
#11 Posted : Tuesday, April 4, 2023 12:57:49 AM(UTC)
usaiegh

Rank: Newbie

Groups ready for retrieval: Registered
Joined: 4/3/2023(UTC)
Posts: 2
Argentina
Location: Buenos Aires

Originally Posted by: doggy Go to Quoted Post
Originally Posted by: usaiegh Go to Quoted Post
Originally Posted by: elgarf Go to Quoted Post
You can use script if you have 4K or Pro version.


Hi! Can i make it work with the multicorder instead of the normal recording option? Thx



With a different approach one could by checking on the multiCorder status to start a clock reference and such or something like that



Do you know how can I get the multi corder values/status?
doggy  
#12 Posted : Tuesday, April 4, 2023 1:22:22 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,072
Belgium
Location: Belgium

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


Hi! Can i make it work with the multicorder instead of the normal recording option? Thx



With a different approach one could by checking on the multiCorder status to start a clock reference and such or something like that



Do you know how can I get the multi corder values/status?


https://forums.vmix.com/...ng-for-Dummies#post71124

with multiCorder instead
Pothala  
#13 Posted : Friday, November 24, 2023 8:48:13 PM(UTC)
Pothala

Rank: Newbie

Groups: Registered
Joined: 11/23/2019(UTC)
Posts: 3
Spain
Location: Jerez de la Frontera

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: elgarf Go to Quoted Post
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))


Hello, I need a script that when executed takes the value of a counter located Time.Text in a title called timer.gtzip, and writes it to c:\time.txt, it's possible?

doggy  
#14 Posted : Friday, November 24, 2023 9:35:11 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,072
Belgium
Location: Belgium

Thanks: 283 times
Was thanked: 920 time(s) in 759 post(s)
Originally Posted by: Pothala Go to Quoted Post
Originally Posted by: elgarf Go to Quoted Post
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))


Hello, I need a script that when executed takes the value of a counter located Time.Text in a title called timer.gtzip, and writes it to c:\time.txt, it's possible?



Your question is NOT related to this thread!

It is possible
Check the "scripting for dummies" post were one can find examples of how to read from a title and how to write to a file
Second part of your question is shown s example in your post
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.