ffmpeg command processing video

A: Video add a picture watermark

ffmpeg -i a.mp4 -vf "movie=a.jpg[watermark];[in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10[out] " output.mp4

II: video cropping, seconds from the start of the third cut 20 seconds

ffmpeg -ss 00:00:03 -i c.mp4 -vcodec copy -acodec copy -t 00:00:20 cc.mp4

Three: left and right corners added to the video picture watermark, by adjusting the parameters of w-10, h-10 adjusts the position of the watermark image

ffmpeg -i d.mp4 -i dd.jpg -filter_complex 'overlay=main_w-overlay_w-10:main_h-overlay_h-10' dd.mp4

ffmpeg -i gg.mp4 -i g.jpg -filter_complex 'overlay=main_w-overlay_w-550:main_h-overlay_h-820' ggg.mp4

IV: a plurality of videos into one video

ffmpeg -i "concat:01.ts|02.ts|03.ts|04.ts|05.ts" -c copy new.ts

```

Guess you like

Origin www.cnblogs.com/WangHaiMing/p/11163665.html