Blog.csdn.net/yu540135101…


Ffmpeg command directory

2. Enlarge the width of the video by double and keep the same height by MP4. Video is horizontally stretched ffMPEG-I 1. Mp4-vf Scale = IW *2: IH 2. Mp4 3. It's not scaling, it's not stretching, it's lengthening, it's filling in black. Ffmpeg-i 1.mp4-VF pad=2* iW 4.mp4 5.MP4 vflip vFLIP FFMPEG-I 1.MP4-VF HFLIP 5.mp4 6.mp4 Combines videos 4 and 5, Ffmpeg-i 4.mp4-i 5.mp4-filter_complex overlay=w:0 6.mp4 7.mp4 Ffmpeg-i 1. Mp4-vf split[a][b]; [a]pad=2*iw[1]; [b]hflip[2]; [1][2]overlay=w:0 7.mp4 F1: split filter creates copies of two input files and marks them as [a],[b] F2: [a] as input to pad filter, pad filter produces double width and outputs to [1].f3: [b] As input to the HFLIP filter, the vFLIP filter flips the video horizontally and outputs it to [2]. F4: Overlay [2] next to [1] with overlay filter.Copy the code