1

I saw a post on superUser on changing dimensions of a mp4 file which like this FFmpeg -I Input.mp4 -vf scale=460:690 output.mp4 but I want to change dimensions of multiple mp4 files in one go so I used the idea which has been used in concat command to generate a list of file names and then using command FFmpeg -i mylist.txt -vf scale=460:690 img%04d.mp4 but as in concatenation there's a single output file so for multiple outputs I used wildcard and whole command turned out like FFmpeg -I mylist.txt -vf scale=460:690 img%04d.mp4 but still I'm getting a single output file.So any suggestions, please

0

I want to change dimensions of multiple mp4 files in one go

You can use a for command to loop and convert the files one at a time. Something like the following.

command line:

for /f %i in (mylist.txt) do FFmpeg -I "%i" -vf scale=460:690 "output_%i"

batch file:

for /f %%i in (mylist.txt) do FFmpeg -I "%%i" -vf scale=460:690 "output_%%i"

Further Reading

  • I'm doing everything alright but error is file: no such file or directory – hacker red May 14 '16 at 17:35
  • @hackerred Are there spaces in your filenames? See updated answer. – DavidPostill May 14 '16 at 17:44
  • no they are named numerically like from 1 to 100 – hacker red May 14 '16 at 21:02
  • They are like this.I'm using a .bat to generate all file names inside a directory '1.mp4' '1.mp4' '10.mp4' '10.mp4' '100.mp4' '100.mp4' '101.mp4' '101.mp4' '102.mp4' '102.mp4' – hacker red May 14 '16 at 21:10
  • Here's a screenshot [link]s32.postimg.org/dlgy71cdx/Screenshot_34.png – hacker red May 14 '16 at 21:13

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.