stoneakp.blogg.se

Ffmpeg filter complex scale
Ffmpeg filter complex scale











ffmpeg filter complex scale

Pad and overlay represent two filters respectively. Now give a brief description, filter_complex represents the mixing of complex methods, that is, the mixing of more than two files (including two files). The corresponding commands are as follows: ffmpeg -i in-desktop.mp4 -i in-computer.mp4 -filter_complex "pad=iw*2:ih*1 overlay=w" out1.mp4 First, mix two pictures, one left and one right, as shown below: The more complex the picture is, the larger the mp4 file is. In fact, you can find that the size of the four files is different, which is related to the complexity of the picture background. The video corresponding to in-vs.mp4 is as follows:

ffmpeg filter complex scale

The video corresponding to in-e.mp4 is as follows: The video corresponding to MP4 is as follows:

ffmpeg filter complex scale

I opened it in qq video with a resolution of 1920 * 1080 For relevant grabs, please refer to my blog ffmpeg recording desktop (take pictures with gdi)Īs shown in the figure below, the backgrounds of the four files are resource browser, desktop, e disk and vs2017. I directly grab the local desktop with my own program and generate four video files. Prepare four video files, each of which is 1 minute long. Readers may wish to take a look at it first Later, we will mix it in the form of code.įor the description of the filter, the following article is well written. This paper uses the command line to mix the video and give corresponding instructions. The writing rules of the filter are not very easy to understand intuitively. For beginners, they need to understand the writing rules of the filter. Ffmpeg filter is extremely powerful and can be used for mixing and streaming.













Ffmpeg filter complex scale