[已解決]批處理如何把多個(gè)文件夾下的ts分別合成mp4文件最后由 lvwenjun11 于 -2-4 16:41@如上代碼 分別是獲取文件夾名 合成ts文件A文件夾下有 1.ts 2.ts 3.tsB文件夾下有4.ts 5.ts 6.ts假設(shè)所有ts文件按順序排列如何生成A.mp4B.mp4 不再枚舉其中ffmpeg已配置附上幾個(gè)很小的ts文件,大佬們可以練練手!謝謝!https://www.aliyundrive.com/s/NBw67uLXZVc 版主大大的第二段代碼可以使用!謝謝!nclick="copycode($('code0'));">復(fù)制代碼
- @echo off
- set p=%cd%??& cd ..
- call set p=%%p:%cd%=%%
- call set p=%%p:%cd%=%%
- cd %~dp0
- (for %%a in (*.ts) do @echo file %%a) > Video.txt
- ffmpeg -f concat -i Video.txt -c copy %p%.mp4
- del Video.txt
- pause