Log in

View Full Version : Trim frames from video end in batch mode


dnaxx
23rd July 2014, 15:30
Hi,

I have a bunch of videos which are processed in Virtualdub 1.10 using the job list. The input videos are in mp4 format.

The final videos are encoded in avi/x264.

Now I want to remove some frames at the end of each video. This can either be done in Virtualdub during processing or with an external software after processing in Virtualdub.

The problem is that in Virtualdub I can only set a fixed end time but the video clips have different durations which makes this unsuitable for batch processing. How can I remove frames from a batch of files, either in Virtualdub, or with another tool?

Regards,

raffriff42
23rd July 2014, 22:34
Create your jobs list.
Close VirtualDub, without processing the jobs list yet.
Open "VirtualDub.jobs" in your text editor.
Search for
VirtualDub.video.SetRange();
Replace with
VirtualDub.video.SetRange(0,XXXX);
Where XXXX=number of milliseconds to delete from end of video.
Save "VirtualDub.jobs"
Open VirtualDub, start batch processing.
EDIT this is the equivalent of selecting the Video menu, Select Range,
and entering a number in the End Offset (ms) box.
https://www.dropbox.com/s/jtqgz0grgnie9hp/vdub-select-range-end-ms.png?raw=1
See VirtualDub help on the Video range dialog box for more info.
See virtualdub\docs\vdscript.txt for information on the script/jobs language.