Print at Jan 21, 2026, 2:51:04 AM

Posted by pabloab at Feb 23, 2023, 6:29:33 AM
Re: Video format data
I tweak the old .mov to be upscaled, slower, and in h264 .mp4, WhatsApp shareable.

#!/usr/bin/env bash
for file in *.mov; do
scale_factor="2"
slow_factor="4"
ffmpeg -y \
-i "${file}" \
-c copy \
-an \
-vf scale=iw*${scale_factor}:ih*${scale_factor} \
-filter:v "setpts=${slow_factor}*PTS" \
-c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p \
"${file%.*}_h264.mp4"
# -stream_loop 3 \
done