一:ffmpeg 最新yum源
cat /etc/yum.repo.d/atrpms.repo
[atrpms]
name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms
failovermethod=priority
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
[163]
name=163repo
baseurl=http://mirrors.163.com/centos/6/os/x86_64/
enabled=1
gpgcheck=0
二:视频去除logo
要根据源视频的分辨率大小,调整delogo的坐标。
ffmpeg -i tuxiaobei001.mp4 -vf delogo=1150:660:170:60:4:0 -s 1920x1080 -strict -2 -vcodec libx264 -r 25 -b 500k -acodec aac -ac 2 -ar 24000 -ab 125k test.mp4
三:同时去除多个logo
要根据源视频的分辨率大小,调整delogo的坐标
ffmpeg -i tuxiaobei007.mp4 -vf "delogo=1150:660:170:60:4:1,delogo=150:60:170:60:4:1" -s 1920x1080 -strict -2 -vcodec libx264 -r 25 -b 500k -acodec aac -ac 2 -ar 24000 -ab 125k test.mp4
四:截图
ffmpeg -ss 00:00:10 -i keke001_H264.ts. -s 200x116 -f p_w_picpath2 /finish/keke001.jpg
五:截视频
ffmpeg -i input.mp4 -ss **START_TIME** -t **STOP_TIME** -acodec copy -vcodec copy output.mp4
六:转码
ffmpeg -i ./wk201001.mp4 -vcodec libx264 -s 1920x1080 -r 25 -b:v 6500k -minrate 6500k -maxrate 6500k -bufsize 100k -g 25 -aspect 16:9 -profile:v high -deinterlace -acodec mp2 -ac 2 -ar 48k -ab 256k -muxrate 7000k -vf delogo=650:400:145:50:4:0 aa.mp4