以前在XP能直接合并的工具现在win7不知道怎么都用不了。
安装MKVToolNix,将命令复制保存为BAT放入需要转换的视频的文件夹。
在视频所在文件夹新建个“合并”文件夹,将片头.MP4和片尾.MP4放进“合并”文件夹,
选择的片头片尾必须从关键帧处切割下来的,不然不然播放到连接处稍微有点小卡顿。- @CD /D "%~dp0"
- @for %%i in (*.flv *.mp4 *.mkv *.mov) do "C:/Program Files/MKVToolNix\mkvmerge.exe" "--language" "0:chi" "--default-track" "0:yes" "--forced-track" "0:no" "--language" "1:chi" "--default-track" "1:yes" "--forced-track" "1:no" "-a" "1" "-d" "0" "-S" "-T" "--no-global-tags" "--no-chapters" "(" "合并\\片头%%~xi" ")" "-a" "1" "-d" "0" "-S" "-T" "--no-global-tags" "--no-chapters" "+" "(" "%%i" ")" "-a" "1" "-d" "0" "-S" "-T" "--no-global-tags" "--no-chapters" "+" "(" "合并\\片尾%%~xi" ")" "--track-order" "0:0,0:1" "--append-to" "1:0:0:0,2:0:1:0,1:1:0:1,2:1:1:1" -o "合并\\%%~ni.mkv"
-
- pause
复制代码 不知道是不是最新的或多轨AAC的,那样容易合并后没后面声音,还有就是声音不同步,可以在里面间隔位置加个 "--aac-is-sbr" "1:1",比如放在"--forced-track" "0:no"后面,间隔是有空格的 |