User User name Password  
   
Sunday 3.8.2025 / 12:15
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > digital video > video - everything else > batch editing videos help
Show topics
 
Forums
Forums
batch editing videos help
  Jump to:
 
Posted Message
sume5h
Newbie
_
24. July 2011 @ 17:57 _ Link to this message    Send private message to this user   
i have more than 100 videos to edit, how can i batch remove 10 sec from the beginning & 10 sec from the end from all these videos
Advertisement
_
__
AfterDawn Addict
_
24. July 2011 @ 21:28 _ Link to this message    Send private message to this user   
For AVI files, if the source files are identical length and codec, it should be possible with VirtualDub.
sume5h
Newbie
_
30. July 2011 @ 13:05 _ Link to this message    Send private message to this user   
no source file length/duration is different, i tried many programs all of them works with same length videos

sum
AfterDawn Addict
_
30. July 2011 @ 17:07 _ Link to this message    Send private message to this user   
Here's the notes I made when doing this with a bunch of AVI files.
It assumes that AviSynth and the XviD codec are installed.

All the source files are in one folder and an empty target folder is created for the output.

A vcf file is created in VirtualDub to ensure that the output files are encoded using XviD.

The avisource.avs file reverses the video (back is now front) and clips 10 seconds (based on 25fps) off.
The video is reversed again and 10 seconds removed from the front.
Scriptwriter uses the avisource.avs file to create a new .avs file for each video in the source folder.
When finished, the new .jobs file is used by VirtualDub to process the files to the target folder.



Quote:
Cropping a fixed range (time or frames) from front and end of multiple files that have different running times.

Place the source files together in a new 'Source' folder.
Create a new 'Target' folder.

Run VirtualDub (assumes the target files will use the XviD codec which is installed in the system).
Click Video > Compression > XviD > OK
Click File > Save Processing Settings...save the VCF file XviD.vcf in the Source folder.
Exit VDub.

Create an AVS file using NotePad (The five lines without the #) and save as clip.avs in the Source folder, thus:

avisource("%f")
reverse()
trim(250,0)
reverse()
trim(250,0)
# if the source files are a mix of mpeg2 and AVI, change the first line to: DirectShowSource("%f")
#assumes file is 25fps, ten seconds at 25fps=250 frames removed from front and rear of video.

Run ScriptWriter.
'Source' - browse to 'Source' folder.
'Destination' - browse to 'Target' folder.
Note that under 'Filters' > 'Extensions', you can 'Exclude' avs,vcf files, else they will show up in the Target folder.
Top Menu, Tools > Options
'Template' is \Source\clip.avs
'VCF File' is \Source\XviD.vcf
'OK'
When ready, click 'Go'.




If success, in the Target folder find a file named 'vdub - avisynth files.jobs'

Run VirtualDub.
File > Job Control
<optional> Edit > Clear list (if it existed).
File > Load Job List (\Target\Vdub-AviSynth Files.jobs)

The list of files to be processed will include the vcf and avs files (if you didn?t elect to filter them in ScriptWriter) they can be removed from the list before processing.

When ready, press 'Start' to process the files to the Target folder.
Note, you may be able to run VirtualDub and select File > Load processing settings?, select Vdub-AviSynth Files.jobs and the processing will start immediately.
Or you you may be able to run VirtualDub and select File > Run script.., select Vdub-AviSynth Files.jobs and the processing will start immediately.


http://www.videohelp.com/tools/Virtualdub
http://www.videohelp.com/tools/Avisynth
http://indir.biz/en/development/java_and_javascript/jacob-klint-scriptwriter-103725-download.html












This message has been edited since posting. Last time this message was edited on 30. July 2011 @ 20:31

Advertisement
_
__
 
_
sume5h
Newbie
_
11. August 2011 @ 06:22 _ Link to this message    Send private message to this user   
thank you for the reply, sorry for replying so late, i will try this method, i hope i can make this work, thank you again :-)

sum
afterdawn.com > forums > digital video > video - everything else > batch editing videos help
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork