0

Input.mpg contains a series of scenes. I have identified the points at which the scenes change. Scene 1 starts at 0:00, scene 2 starts at 1:29, scene 3 starts at 2:43, and so forth.

I would like to use batch commands to make lossless copies of those scenes, with each scene going into a separate file. My batch file contains a series of commands, like these:

ffmpeg -i input.mpg -ss 00:00:00 -to 00:01:29 -c:v copy -c:a copy output1.mp4
ffmpeg -i input.mpg -ss 00:01:29 -to 00:02:43 -c:v copy -c:a copy output2.mp4

Unfortunately, it seems the batch file must contain more than those commands, to prevent them from all running at once. I have tried variations on call and start /w but apparently these are not the answer or I am not using them properly.

I'm looking for batch suggestions, but am open to other ways to achieve the objective. The command line seems like the way to go, as I am hoping to extract many excerpts from a large number of input files.

Your Answer

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

Browse other questions tagged or ask your own question.