how can I batch split many AVIs into 2 parts, with no conversion?

NB: this didn't help much What is the best software to split and join avi files?


Assuming you want all the videos to be split at the ten-minute mark:

ffmpeg -i input.avi -t 00:10:00 -c copy output1.avi \
-ss 00:10:00 -c copy output2.avi

On systems with a bash (or other unix-based) shell, you can use a for loop to convert every *.avi in a directory (you can also do this on Windows, but I don't know how):

for f in *.avi; do \
ffmpeg -i "$f" -t 00:10:00 -c copy "${f/.avi/-t10.avi}" \
-ss 00:10:00 -c copy "${f/.avi/-ss10.avi}"; done

You may have some issues using -c copy with -ss: you may be best solved re-encoding the video. See the x264 encoding guide and the AAC encoding guide for more information on that.


Haven't worked with .avi for ages but Avidemux might be what you are after - and it supports scripting for iterating through a directory of .avi's (for example)


Virtualdub seems to get the job done easy - enjoy

Apparently VD has a batch mechanism and a tool exists to automatically create jobs from "templates", didn't try it myself but give it a try: http://www.dynatec.at/techblog/dubjobs-the-virtualdub-batch-job-maker

  • thanks, but how do I batch-split many AVIs at the same time? – iAsk Jul 12 '12 at 23:20
  • sorry didn't see that you asked for batch ... edited my answer – tutuDajuju Jul 13 '12 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.