https://ffmpeg.org/

Increase volume of a video file

1
$ ffmpeg -i input.mp4 -strict -2 -vcodec copy -af "volume=20dB" output.mp4
Reference:

Convert mp4 to gif

1
$ ffmpeg -i input.mp4 -vf "fps=10,scale=320:-1" -loop 0 output.gif
Reference:

Reduce video size

Reduce video resolution to 1/3 of it’s original

1
$ ffmpeg -i XS-race-2019.mp4 -vf "scale=iw/3:ih/3" a_third_the_frame_size.mp4
Reference:

Kazam recorded screen not recognized by WhatsApp

Kazam is a screencasting program. But the output mp4 doesn’t recognized as video in WhatsApp, thus need to change the codec

1
$ ffmpeg -y -i input_file.mp4 -c:v libx264 -c:a aac -strict experimental -tune fastdecode -pix_fmt yuv420p -b:a 192k -ar 48000 output_file.mp4
Reference: