It's very useful for demo videos used on softwares/SaaS websites. This simple command is what I've been using to make all of my videos on https://devutils.app and https://blackmagic.so:
ffmpeg -i input-video.mp4 -vcodec libx264 -crf 28 output-video.mp4
(You need to install
Here is the before & after. Judge for yourself:
You can adjust the
-crf 28 parameter for even small file size, but I find the video quality start to decrease dramatically after
Other useful ffmpeg commands to make demo videos:
ffmpeg -i input.mp4 -filter:v "setpts=0.75*PTS" faster.mp4
Get the poster image (first frame of the video):
ffmpeg -i input.mp4 -vframes 1 poster.jpg -y
👋 Like what you read here?
Hello there, I'm Tony Dinh.
I quit my high paying job to work on my side projects with a mission to make a living from my apps and live an independent life. 🌴
- 🛠️ I built a macOS app for developers: DevUtils.app
- 🎩 I built a browser extension for Twitter: BlackMagic.so
- 🏖️ Read my story → https://newsletter.tonydinh.com/
- 💻 Everything about me → https://tonydinh.com
❤️ Thanks for reading!