Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Can I Automate Ctrl-g (jump-to-frame)?, can I automate ctrl-g (jump-to-frame)?
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
JohnC
Posted: Jun 13 2014, 09:37 PM


Newbie


Group: Members
Posts: 1
Member No.: 38074
Joined: 13-June 14



Dear all,

I am a newbie but has already benefited from virtualdub! Thanks Avery Lee!

I have a list of frames e.g.

1049
1532
1679
2001
3344
etc

Is there a way to have virtualdub step thru them one by one automatically for me to check the clip at these frames locations?

I am doing it the manual way now: ctrl-g and type in the frame number, check video and ctrl-g again and type in the next frame number etc etc.

Thanks a lot!!

John
 
     Top
raffriff42
Posted: Jun 13 2014, 11:16 PM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



After looking at the scripting docs, it turns out this is possible:
CODE
VirtualDub.Open("D:\\VideoProjects\\work\\myvideo.mp4");
//  NOTE DOUBLE BACK-SLASHES IN PATH
VirtualDub.audio.SetSource(1);
VirtualDub.audio.SetMode(0);
VirtualDub.video.SetInputFormat(0);
VirtualDub.video.SetOutputFormat(7);
VirtualDub.video.SetMode(0);
VirtualDub.subset.Clear();
VirtualDub.subset.AddFrame(1049, 1);
VirtualDub.subset.AddFrame(1532, 1);
VirtualDub.subset.AddFrame(1679, 1);
Save as plain text with .vdf file extension.
VirtualDub File menu, Run Script.

EDIT - there's at least one other way to do this, by sending keystrokes to the application using AutoHotkey, AutoIt, etc.

This post has been edited by raffriff42 on Jun 15 2014, 10:44 AM
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
1 replies since Jun 13 2014, 09:37 PM Track this topic | Email this topic | Print this topic

<< Back to General Discussion