Rank: Advanced Member
Groups: Registered
Joined: 7/15/2018(UTC) Posts: 109 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Something like WriteDurationToRecordingLog function ? If only there was
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/23/2015(UTC) Posts: 458 Thanks: 20 times Was thanked: 227 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))
|
3 users thanked elgarf for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: elgarf You can use script if you have 4K or Pro version.
Hi elgarf Mind adding it to the Dummies posts ?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/23/2015(UTC) Posts: 458 Thanks: 20 times Was thanked: 227 time(s) in 129 post(s)
|
|
1 user thanked elgarf for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/15/2018(UTC) Posts: 109 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.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/7/2022(UTC) Posts: 5 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 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))
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: NicholasBates 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)
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/3/2023(UTC) Posts: 2 Location: Buenos Aires
|
Originally Posted by: elgarf 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: usaiegh Originally Posted by: elgarf 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
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/3/2023(UTC) Posts: 2 Location: Buenos Aires
|
Originally Posted by: doggy Originally Posted by: usaiegh Originally Posted by: elgarf 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?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: usaiegh Originally Posted by: doggy Originally Posted by: usaiegh Originally Posted by: elgarf 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#post71124with multiCorder instead
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/23/2019(UTC) Posts: 3 Location: Jerez de la Frontera Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: elgarf 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?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Pothala Originally Posted by: elgarf 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
|
|
|
|
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