Monthly Archives April 2020

(FFmpeg) How to Convert WebM to MP4?

As an open source alternative to HTML5 video (the successor of FLV), WebM is another multimedia container format that is currently being maintained by Google. WebM files are native to android devices but not iOS (or Safari), thus converting to MP4 is beneficial. Luckily, the conversion is simple because most WebM video codecs are H.264: […]

(FFmpeg) How to Convert FLV to MP4?

FLV or Flash Video is a multimedia container format maintained by Adobe Systems. It was once the staple of how most media was delivered on the internet in the early 2000s.  Although replaced in the modern streaming world, FLV files do exist and converting to MP4 is easy when encoding with libx264: Tip: Instagram and […]

(FFmpeg) How to Convert AVI to MP4?

The AVI format is a multimedia container format developed and maintained by Microsoft. AVI has support for multiple video codecs including MPEG-4. This makes the conversion to MP4 simple: If the input.avi codec is not MPEG-4, setting the libx264 codec might be required: Tip: Instagram and Twitter do not support AVI video uploads.

(FFmpeg) How to Convert MKV to MP4?

The Matroska Multimedia Container or MKV is a free open container format that differs from formats like MOV or MP4. MKV files can store an unlimited amount of video, audio, pictures or subtitle tracks in one file. This stacking of media has benefits for videos that require audio or subtitles with multiple languages.  Because of […]

(FFmpeg) How to Convert MOV to MP4?

MOV is a video format developed by Apple but compatible with most software and players. MOV uses the MPEG-4 codec for compression making the conversion between MOV to MP4 very simple, as seen below: Tip: MOV files are usually larger in size but a higher quality video in comparison to MP4.But the MOV format does […]

The FFmpeg Bible is now on Amazon! (Paperback & Ebook)

After careful deliberation and feedback from the community, I’ve decided to rebrand this FFmpeg For Beginners. More information here: http://johnriselvato.com/ffmpeg-for-beginners-is-now-on-amazon-paperback-ebook/ Thanks to everyone who supported the initial release. Sorry to everyone I offended by calling it a Bible.

(FFmpeg) How to Replace the Audio on a Video?

There are times when the audio on a video needs to be replaced. Here filters are not even needed to replace audio but the use of ​-map becomes important to understand: Here the video from the first input and the audio from the second input is mapped to the output. Challenge:​ Using the same concepts in the above […]

(FFmpeg) How to Mix Additional Audio into a Video?

Adding an additional audio source on top of the audio already in a video can be accomplished with the ​amix​ filter. This might be useful for adding background music to a commentary video. The command is as follows: A common issue that comes up with ​amix​ is the volume of one input over powers the second. Setting the louder […]

(FFmpeg) How to Remove Audio From a Video?

Although this next command isn’t exactly a filter, it’s still useful to know how to remove or mute, audio in an MP4. Below is the quickest way to remove audio from any form of video using the ​-an​ option: Tip:​ ​-an​ indicates no audio output. Documentation https://ffmpeg.org/ffmpeg-all.html#Examples

(FFmpeg) How to Add a High-Pass Filter to an Audio Track?

A high-pass filter is an audio filter that cuts off frequencies that are lower than the desired cutoff frequency. This is often used to cut out bass from an audio source while leaving the treble side of the audio. The filter in FFmpeg is called highpass and is used by setting the desired cut off […]