Tag Archives: FFmpeg

(FFmpeg) How to Stream a File to YouTube?

Part 1: (FFMPEG) HOW TO OBTAIN A YOUTUBE STREAMING KEY? Streaming a local file to YouTube is extremely easy and actually a feature that really takes your FFmpeg skills to the next level with little effort.  With the minimal amount of code this script will stream input.mp4 to YouTube without any issues (stream.sh): There’s a […]

(FFmpeg) How to obtain a YouTube Streaming key?

Before working on the FFmpeg For Beginners Book, the experience I had with streaming with FFmpeg was zero but I reached out to the FFmpeg community and everyone was saying I needed to cover this topic. Fortunately for me, streaming is actually way easier than I was expecting. First go to https://www.youtube.com and click the […]

(FFmpeg) How to cross fade two mp3 tracks?

In this section we’ll learn various useful audio filters specifically to audio but all filters will work on video as well. Since this is just an audio section, -af instead of -filter_complex unless multiple audio input sources are required. See question “How to use filters (-vf/-af vs -filter_complex)?” for more details. Making a music mix? […]

(FFmpeg) How to adjust volume of an mp3?

In this section we’ll learn various useful audio filters specifically to audio but all filters will work on video as well. Since this is just an audio section, -af instead of -filter_complex unless multiple audio input sources are required. See question “How to use filters (-vf/-af vs -filter_complex)?” for more details. As you learn more […]

(FFmpeg) How to trim ‘x’ seconds from start and end of an audio track?

The last two questions covered trimming the start of an audio track and trimming the end, but what does the command look like combined?  In this example, the input file is 1 minute long with the requirement of 10 seconds removed from the start and 10 seconds removed from the end of the audio. Resulting […]

(FFmpeg) How to trim ‘x’ seconds from the end of an audio track?

Note: Trimming at this point should be easily understood but for a refresher refer to answers in How to trim ‘x’ seconds from the start of an audio track?.  Trimming a couple of seconds off the end of a track is easy but again requires a different thinking of how time works in FFMPEG. Like […]

(FFmpeg) How to trim ‘x’ seconds from the start of an audio track?

Here we’ll use an input file with a 1 minute duration with a 5 second introduction of silence. To remove that silence, it’s important to identify these two numbers because trimming requires tricky subtraction. Let’s look at the example below: -ss is used to seek to a part in the audio and -t is the […]

(FFmpeg) How to record a MacOS Screen with terminal?

In this post you’ll learn how to record the screen of your Mac with terminal using FFMPEG. FFMPEG is able to use avfoundation (the audio and video library) to access webcams, audio devices and to record the screen. FFMPEG doesn’t do this automatically so finding out the correct device from the supported list must be […]

(FFmpeg) How to merge multiple mp3s into one track?

Merging audio with FFMPEG is one of the most searched questions on the internet and couldn’t be any easier. The only difference is a txt file with a list of mp3 tracks must be made before the merging can begin. Below is an example list inside the file “file.txt”: Next, using the following FFMPEG one-liner, […]

(FFmpeg) How to convert wav to mp3?

WAV is probably the most common audio format next to MP3. The WAV format has been developed and maintained by Microsoft and IBM since its initial release in 1991. wav files are known for their large file size due to its uncompressed audio but high quality format. The -ab here is audio bitrate. The higher […]