question

Claire Krupp avatar image
1 Like"
Claire Krupp asked Claire Krupp commented

How do I cancel a video recording in the middle of a run?

I am creating a video of a large model, where it has to run for a long time before reaching the recording start time. One time I set the video recorder going and while it was FF forward to get to the video start, which I knew was going to take 4 hours, I realized I needed to change something. I could not figure out how to stop the recording mid-flow and cancel out of it. You can stop the model, or the fly-path, but the recorder still thinks it's on and then it just hangs. I had to close the whole model using the Task Manager in order to get out.

Is there a way to cancel? If not, please add a cancel button to the Video Recorder.

Thanks!

FlexSim 23.0.1
video recorder
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Claire Krupp, was one of Jason Lightfoot's or Sri_vikas K's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Claire Krupp commented

You can try using this script (attach it to a toolbar button if needed):

stop();
getvarnode(Model.find("Tools/VideoRecorder"), "active").subnodes[1].destroy();
runprogram("Taskkill /IM ffmpeg.exe /F");
Array activePersps=views().find("active>Documents/Perspective").subnodes.toArray();
treenode viewNode;
while (activePersps.length){
    viewNode=ownerobject((activePersps.shift()).value);
    if (viewNode.name=="recview")
        closeview(viewNode.up);
}
resetmodel();
· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Claire Krupp avatar image Claire Krupp commented ·
Thanks @Jason Lightfoot I will give that a try. Presumably I can run it from the Script Console?
0 Likes 0 ·
Claire Krupp avatar image Claire Krupp commented ·
Not sure if it worked! I could not figure out how to make/attach a toolbar button so I put the code in the Script Console. When I tried to click on the Script Console (or anywhere else other than the active video view) during the video recording mode, the model went in to "not responding" mode. It did eventually stop the test video, but it hung for so long that I can't be sure it didn't just finish up normally! (The test video was pretty short since I didn't want to be stuck for hours!)


Definite maybe!

Currently I have finished creating videos, so this is not a high priority concern right now!

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Claire Krupp commented ·
That's strange I tested it a few times with a small model and it worked perfectly. I did that before I added the call to resetmodel() which was just in case it was left in a 'funky' state.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Claire Krupp commented ·

Hello @Claire Krupp,

Are you using RTX mode? When I test out Jason's script it work well with the standard graphics. When I record a video while in RTX mode it goes into Not Responding with any click but recovers. I had to execute Jason's code twice to get it to work. I'm not really sure why. I'll attach the test model. @Jason Lightfoot can you see if you get the same thing when you use RTX mode?

Stop Video Recording.fsm

0 Likes 0 ·
Claire Krupp avatar image Claire Krupp Jeanette F ♦♦ commented ·
No idea if I'm in RTX mode! How do I find out?

I was using a flypath though, which I've noticed makes things a lot more sensitive and a bit flaky! Maybe that was it.

I can email you the model tomorrow if that would help.

0 Likes 0 ·
Show more comments
Sri_vikas K avatar image
0 Likes"
Sri_vikas K answered Claire Krupp commented

Hi @Claire Krupp

On clicking the cancel button in the video recorder window. It stops the recording.

videorec.png

Once I was recording a video and supposed to stop the recording in the process due to some issue. On clicking on the cancel button in the above window. I was able to stop the recording.


videorec.png (22.4 KiB)
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

That sounds like a happy coincidence - the only 'Cancel' button action is to close that window and in my tests the recording continues.

0 Likes 0 ·
Sri_vikas K avatar image Sri_vikas K Jason Lightfoot ♦♦ commented ·
Hi @Jason Lightfoot

I was Unable to replicate that again may be that is a coincidence.

By following the steps below, we can stop the recording.

1.Click on toolbox.

2.Right click on Video recorder and delete the recording, then the recording stops and reopen the previously saved model.

0 Likes 0 ·
Claire Krupp avatar image Claire Krupp commented ·
Thanks for the suggestion @Sri_vikas K , but as @Jason Lightfoot said, when I cancel on the menu, the menu closes, but the recording continues.


And there is no way I want to delete the whole recording setup - with multiple tabs - and have to recreate all the details! If I have to re-open the model, I might as well use Task Manager to stop it running.

0 Likes 0 ·