ffmpeg

Created
Jan 29, 2021 2:20 AM
Tags
Keywords

ffmpeg -i ${infile} -threads 8 -vcodec libx265 -crf 24 -acodec copy -preset medium ${outfile}

-an drop audio track

Resizing

Resizing with specified width and keeping aspect ratio.

ffmpeg -i in.mp4 -vf scale=1280:-1 out.mp4

Resizing with specified height and keeping aspect ratio.

ffmpeg -i in.mp4 -vf scale=-1:720 out.mp4

ffmpeg -i in.mp4 -s 1280x720 out.mp4