ffmpeg concat设置绝对路径

m.txt:

file 'file:D:/video/000.ts'
file 'file:D:/video/001.ts'
file 'file:D:/video/002.ts'
file 'file:D:/video/003.ts'
file 'file:D:/video/004.ts'
file 'file:D:/video/005.ts'
file 'file:D:/video/006.ts'
file 'file:D:/video/007.ts'
file 'file:D:/video/008.ts'
file 'file:D:/video/009.ts'
ffmpeg -f concat -safe 0 -i m.txt -c copy new.mp4

快速生成绝对路径配置

> (for %i in (*.ts) do @echo file 'file:%cd%\%i') > mylist.txt
> ffmpeg -f concat -safe 0 -i mylist.txt -c copy new.mp4
posted @ 2020-09-25 12:19  Ajanuw  阅读(945)  评论(0编辑  收藏  举报