Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

FFmpeg Cheatsheet

📅 2019-Sep-03 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ ⬩ 📚 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