Downscaling 4K video with ffmpeg

Just about every camera I have records in 4K, I record in full quality, and down convert when needed:

single file:

[code]
ffmpeg -i DJI_0029.MP4 -vf scale=1920:1080 -c:v libx264 -crf 35 DJI_0029-smaller.mp4
[/code]

bash script:

save this file to convert.sh and chmod +x convert.sh

[code]
#!/bin/bash
ffmpeg -i $1 -vf scale=1920:1080 -c:v libx264 -crf 35 $1-1080P.mp4
[/code]

usage:

[code]
./convert.sh filename.mp4
[/code]

the output files will have a filename of filename.mp4.1080P.mp4, but for my use it’s fine.

Leave a Reply

Your email address will not be published. Required fields are marked *