Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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
add comment

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

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
add comment

Your Answer

 
discard

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.