1、查看视频信息

ffprobe filename.mp4

常见分辨率:1920x1080             1280x720              640x360

2、修改视频分辨率

ffmpeg -i video_1920.mp4 -vf scale=640:360 video_640.mp4 -hide_banner

scale=640:360为修改后的分辨率

3、更改视频宽高比

ffmpeg -i video_1920.mp4 -vf scale=640:480,setdar=4:3 video_640x480.mp4 -hide_banner

setdar为指定的宽高比

4、合并多个视频

file intro.mp4
file video.mp4
file outtro.mp4

 利用txt文件来合并视频,

ffmpeg -f concat -i "filelist.txt" -vcodec copy -acodec copy "endfile.mp4"

5、 截取长视频中的一段

ffmpeg  -i ./plutopr.mp4 -vcodec copy -acodec copy -ss 00:00:10 -to 00:00:15 ./cutout1.mp4 -y

 

posted on 2020-09-18 15:59  wulc++  阅读(166)  评论(0编辑  收藏  举报