FFMPEG resizes processed video

I have this simple code, whcih compresses videos to mp4. Everythign works well but when looking at the final video, it is upscaled higher. Example would be an original video file of 1920 × 1080 turns out to be 4096 × 2160. I do not want this to happen, instead if FFMPEG finds a video of 720x1080,1920x180 etc.. it should keep the original video size, and not alter. Any help would be appreciated.

#find . \( -name "*.mov" -o -name "*.MOV" \);
#do echo $i; done
for i in $(find . -name '*.mov' -or -name '*.MOV'); do 
ffmpeg -i "$i" "${i%.*}.mp4";
rm "$i"
done

Upvotes: 0

Views: 700

Answers (1)

Lukas Juskevicius
Lukas Juskevicius

Reputation: 176

You can resize/scale/change resolution of a video using FFMPEG quite easily. You can find it here. I'm not sure if this helps but there is an example there on how to specify its width/height but keep the Aspect ratio the same

Upvotes: 1

Related Questions