1. 按照視頻時間點進(jìn)行截取, 起止點:00:00:06 ~ 00:20:36
ffmpeg -ss 00:00:06 -to 00:20:36 -accurate_seek -i "input.mp4" -avoid_negative_ts 1 -c copy "ouput.mp4" -y
2.? 分離視頻和音頻
ffmpeg -i "input.mp4" -vcodec copy -an "out-vod.mp4"
ffmpeg -i "input.mp4" -acodec copy -vn "out-sound.m4a"
?3. 去除水?。ㄖ付▍^(qū)域模糊化,以 (x,y) 為左上角,長寬為 w、h 的矩形區(qū)域)
ffmpeg -y -i "input.mp4" -vf "delogo=x=255:y=373:w=437:h=14" -acodec copy "output.mp4"
?4. 合并多個視頻(將 001.mp4、002.mp4 合并成 output.mp4)文章來源:http://www.zghlxwxcb.cn/news/detail-708353.html
ffmpeg -i "concat:001.mp4|002.mp4" -c copy "output.mp4"文章來源地址http://www.zghlxwxcb.cn/news/detail-708353.html
到了這里,關(guān)于如何使用 ffmpeg 對視頻進(jìn)行切分、合并的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!