本帖最后由 went 于 2022-4-28 09:39 编辑
ansi编码- @echo off & cd /d "%~dp0"
- set "ext_dir=_文件夹内视频合并"
- for /f "delims=" %%i in ('dir /b /ad ^| findstr /ve /C:"%ext_dir%"') do (
- for /d %%a in ("%%i\*") do (
- ( for %%b in ("%%a\*.mp4") do echo file '%~dp0%%b' )>"list.txt"
- mkdir "%%~nxi%ext_dir%\%%~nxa" 2>nul
- echo %%a
- ffmpeg -f concat -safe 0 -y -i list.txt -c copy "%%~nxi%ext_dir%\%%~nxa\%%~nxa.mp4" 2>nul
- echo %%~nxi%ext_dir%\%%~nxa\%%~nxa.mp4
- echo -----------------
- )
- )
- del /f "list.txt" 2>nul
- pause&exit
复制代码
|