Monthly Archives April 2020

(FFmpeg) How to Invert the Colors of a Video?

FFmpeg has a very simple filter, negate, that inverts the colors of the input. The train station looks really futuristic with this filter on. Although this filter is simplistic in use, it has a great effect, below is the command as seen in figure 60.0:

(FFmpeg) How to Edit the Saturation of a Video?

Although the hue filter has a saturation variable, FFmpeg also has another filter called vibrance which is used to adjust the color intensity. Both filters give slightly different saturation effects but each has its place. In this example, all colors are boosted in the video, as seen in figure 59.0: A specific color can also […]

(FFmpeg) How to extract screenshots from multiple parts of a video (one-liner)?

This question was asked on the FFmpeg Discord. For some reason the person pinged me to answer it so I took a stab at it. Here was the request: @jdriselvato Hey, I’ve got a question if something is even possible. I want to do. but for multiple seek times and output names (those I guess […]

(FFmpeg) How to Convert a Video to Black and White?

Turning a video to black and white is also accomplished by using the hue filter.  Setting the saturation value to 0 results in a black and white video, as seen in figure 58.0: Challenge: In addition to changing the video to black and white, add a grain filter to make the video look vintage.

(FFmpeg) How to Edit the Hue of a Video?

The hue filter allows for modification of the hue and saturation of a video.  In the example below, the hue is set to 45 degrees with an increased saturation, as seen in figure 57.0: The hue filter also has framing and time parameters that allow for great effects like animating through hue colors quickly. Expressions […]

(FFmpeg) How to Add Color Balance to a Video?

The color balance filter allows the RGB shadows, midtones, highlights and preserving lightness can be adjusted. This filter can be used to apply very custom color grading or used to create trippy color changes.  In this example, the green shadows are increase and the blue highlights are maxed out, as seen in figure 56.0: Tip: […]

(FFmpeg) How to Use Green Screen to Mask a Video Into Another Video?

The use of a green screen is the most common way to add a subject to a scene in video production. By setting the scene at the purest green (not commonly found in nature) objects can interact on the green screen while computer generation can replace a new image in the background. With FFmpeg, this […]

“FFmpeg For Beginners” is now on Amazon! (Paperback & Ebook)

Today I am extremely excited to announce that “FFmpeg For Beginners” is now on Amazon. Cover over 112 different concepts, this is the ultimate FFmpeg programmers guide for users at any level. Readers at the novice level can gracefully learn FFmpeg and become upper-intermediate in no time. Soon you’ll be able to edit audio and […]

(FFmpeg) How to Add Color Normalization to a Video?

Normalization is a color correction filter that standardizes the RGB values in each frame of a video. With the use of histogram and contrast stretching, FFmpeg can quickly fix issues like rapid brightness changes and flickering. Below is an example of normalization at the highest strength: Tip: If this filter is applied to an MP4, […]

(FFmpeg) How to Blend Two Videos Together?

Blending has an interesting effect when two inputs are used. The blend filter has the potential to create outstanding artistic results, so let’s try it out.  Tip: In order to blend two files, they must contain the same resolution. blending two videos In this example, using the difference filter applied to both video inputs gives […]