Quick shareable videos using ffmpeg

ffmpeg is great!

If you want to compress a video without visible loss in the quality, here's the command:

ffmpeg -i input.mp4 -vcodec libx264 -crf 28 output.mp4

And if you want to speed the video up by, say, 1.33x, you can just run the below command:

ffmpeg -i input.mp4 -filter:v "setpts=0.75*PTS" -filter:a "atempo=1.33333" -r 60 output.mp4

And you can also combine both above commands into one, just run the below command and your video will be compressed as well as become 1.33x faster in seconds:

ffmpeg -i input.mov -vcodec libx264 -crf 28 -filter:v "setpts=0.75*PTS" -filter:a "atempo=1.33333" -r 60 output.mp4

Here's a command that normalizes the audio of videos that I record using Screen Studio + Krisp.

ffmpeg -i input.mp4 -c:v copy -c:a aac -af "loudnorm=I=-17:TP=-1.5:LRA=11" output.mp4

Make sure to cd into the folder where your video file is, and replace input.mp4 with the actual video filename you have.

Some links here are affiliate or referral links. Buying through them supports this site at no extra cost to you, and it doesn't affect my opinions.