

In fact, the tutorial forms much of this book. The book has a full tutorial and is not just a collection of hacks. In the spirit of open source, I have made its ebook version free. It is now a 152-page full-colour paperback on Amazon - FFMPEG Quick Hacks. When I went in depth about FFmpeg, I decided to write a book instead. Last year, in the midst of the lockdown, I decided to write a follow-up for the article - sort of 'More FFmpeg tips and tricks'. I had even written a FFmpeg tips-and-tricks article in a magazine without knowing any better. The only filter I used was the volume filter, which I used (blindly) to amplify low-volume audio files. Backgroundįor several years, I did not bother with FFmpeg filters. The syntax for FFmpeg filters is obscure and the documentation is a bit cryptic.

We’re flipping the video by 90° clockwise twice.A lot more FFmpeg functionality is in the form of filters. Let’s combine two transpose filters, each with a value of 1 for a 180° flip: $ ffmpeg -i big_buck_bunny_720p_1mb.mp4 -vf "transpose=1, transpose=1" output_transpose_multiple.mp4 We can also combine multiple transpose filters to change the orientation of the video. We’ll get this output when playing the output_0.mp4 video: This is the default preset if we don’t pass any values to transpose.

This will change the video orientation to portrait. We’re passing the value 0 to the transpose filter which rotates the video counterclockwise and vertically. Video:1040kB audio:229kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.406613% $ ffmpeg -i big_buck_bunny_720p_1mb.mp4 -vf "transpose=0" output_0.mp4
