[FFmpeg-user] Convert all Files at Once to Uncompressed .avi
DopeLabs
dopelabs at dubstep.fm
Wed May 6 11:27:24 CEST 2015
shell scripting to the rescue!
ffmpeg.sh
#!/bin/sh
for f in “$@“; do
ffmpeg -f h264 -i “$f” -vf scale=704*480 “$f”_double_high.avi; done
to use simply
./ffmpeg.sh file1 file2 file3
or
./ffmpeg.sh *.*
or even
ls | ./ffmpeg.sh
> On May 6, 2015, at 2:06 AM, SAFI ALAMRI <alsafisafi at gmail.com> wrote:
>
> Please help me to process each using one line of ffmpeg code to convert
> all files at once to uncompressed .avi files that are at a pixel dimension
> of 704x480. This codes is working nice, but I faced that. When I type (y).
> the output file is remove the past file (input _double_high) and create a
> new one with the same name. The code doesn't convert all of them. I hope to
> convert all of them at the same time. Could you help editing this code:
>
> forfiles /p 264s /m *.264 /c "cmd /c ffmpeg -f h264 -i @file -vf
> scale=704*480 input_double_high.avi"
>
> Thanks
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list