Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

FFmpeg Cheatsheet

📅 2019-Sep-02 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cheatsheet, ffmpeg ⬩ 📚 Archive

FFmpeg is a video converter. It can be used as a swiss army knife to operate on video files.

$ sudo apt install ffmpeg
$ ffmpeg -i foobar.mp4

The info that is printed includes the video and audio streams. For each stream, the codec used, the resolution and bitrate is also available.

$ ffmpeg -i in.mp4 -b:v 1000000 out.mp4

Tried with: FFmpeg 3.4.6 and Ubuntu 18.04

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧