Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer

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)

share|improve this answer
thanks i am now trying a batch (.bat) script :) – iAsk Jul 14 '12 at 15:28

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:

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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