golb

FFMPEG

Download

ffmpeg.org

Tricks

On windows, you can add the path to ffmpeg.exe to your global PATH variable to use it as ffmpeg

Useful commands

● Compress a file

ffmpeg -i input.mp4 -preset veryslow OUTPUT_NAME.mp4

Legend :

● Zoom in a video

ffmpeg -i input.mp4 -vf "scale=2*iw:-1, crop=iw/2:ih/2:0:400" OUTPUT_NAME.mp4

Legend :

● Cut a video

ffmpeg -ss 00:01:00 -i input.mp4 -t 00:02:00 -c copy OUTPUT_NAME.mp4

StackOverflow

● Format a video for Da Vinci Resolve for Linux

ffmpeg -i input.mkv -c:v dnxhd -b:v 185M -c:a pcm_s16le output.mov

Convert to ProRes

ffmpeg -i input.mp4 -c:v prores_ks -profile:v 3 -vendor apl0 -bits_per_mb 8000 -pix_fmt yuv422p10le output.mov