Some useful FFmpeg commands and scripts.
Snehith K,FFmpeg is a free and open-source framework for handling audio and video files. It supports a wide range of formats and codecs, and offers tools for encoding, decoding, and streaming multimedia files.
FFmpeg supports formats like AV1, VP8, and Opus, ensuring your content is freely usable and FFmpeg’s documentation makes it easy to integrate its functionality into your projects. FFmpeg is licensed under the LGPL license, promoting software freedom.
We start here by ensuring our content to be free and open source coding format.
For Videos: I prefer Webm and Opus, as they are modern and efficient.
ffmpeg -i input_video.mp4 -c:v libvpx-vp9 -crf 28 -b:v 0 -c:a libopus -vbr on -threads number_of_threads output_video.webm
For Audio: I prefer only Opus, it has best bitrate and latency combinations compared with other audio formats.
ffmpeg -i input_audio.mp4 -c:a libopus -vbr on output_audio.opus