Blog Archives

Add a new audio track to an existing file

There is yet another common use of FFMPEG, i.e. adding a new audio track to an existing file which can be a video-only file or a video file already with an audio track. A use case will be adding a

Posted in FFmpeg, Tips & Tricks

Correcting for audio/video sync issues

Due to various reasons, the audio and video tracks sometimes may become out-of-sync in a video clip, i.e. there are some delay between the tracks affecting the overall viewing experience. Use the following as examples to fix the issue. CASE

Posted in FFmpeg, Tips & Tricks

Rotate a Video without Loss of Quality

Very often videos shot by smart phones do not carry a proper orientation indicator as intended due to various reasons. In order to rotate these videos without re-encoding, try the following command. ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=90 output.mp4

Posted in FFmpeg, Tips & Tricks

Swap the audio tracks without re-encoding

Many video file formats allow you to have multiple sound tracks (e.g. karaoke videos) where the first audio track is treated as the default by many audio-visual editing applications. Many of those can only handle one audio track which is

Posted in FFmpeg, Tips & Tricks

Increasing volume in a video without re-encoding

I needed for a reliable, fast and non-destructive way to increase gain on a video’s audio track. I found it in using the ffmpeg tool, which is a swiss army knife for dealing with video and audio files. It’s conveniently

Posted in FFmpeg, Tips & Tricks