I tried to resize multiple Video in different way on my slow server instance with Ubuntu 18.
When generate a batch script file with:
ffmpeg -i video1.MP4 -vf scale=854:480 smallvideo1.MP4 &
ffmpeg -i video2.MP4 -vf scale=854:480 smallvideo2.MP4 &
ffmpeg -i video3.MP4 -vf scale=854:480 smallvideo3.MP4 &
...
Somehow it only converts randomly two or three of the videos and then it quits. Every time all the ouput files smallvideo[i].mp4
have been created, but they were not readable.
I tried also with -nostdin
and without &
, still not working properly.
No I tried it this way:
ffmpeg -i video1.MP4 -i video2.MP4 -i video3.MP4 ...
-map 0 -vf scale=854:480 smallvideo1,MP4 & \
-map 1 -vf scale=854:480 smallvideo2.MP4 & \
-map 2 -vf scale=854:480 smallvideo3.MP4 & \
...
and it gave me this error:
$
./ffmpeg.sh: line 6: -map: command not found
./ffmpeg.sh: line 5: -map: command not found
...
It only converts the 1st one.
I'd really appreciate if someone could help me figuring out the problem!