- UID
- 27734
- 精华
- 0
- 冰点
- 6
- 阅读权限
- 20
- 主题
- 1
- 回帖
- 11
- 性别
- 保密
- 在线时间
- 4 小时
- 注册时间
- 2016-1-6
- 最后登录
- 2017-2-13
签到天数: 7 天 [LV.3]偶尔看看II
水之精灵LV.2
- 回帖
- 11
- 雪点
- 150
- 阅读权限
- 20
- 性别
- 保密
- 在线时间
- 4 小时
- 注册时间
- 2016-1-6
- 最后登录
- 2017-2-13
|
请问楼主还在吗?
我按照您说的做了,不过为什么就说文件打开失败呢?
文件夹位置为了确保成功,特意改成了楼主大人一致的
所用源文件是位于两个文件夹下的mkv文件,文件名不同,就是把其中一个文件的ass字幕封装到另一个mkv文件中,文件名分别是龙珠 第一部(国粤日)第***话,龙珠GT.**.国粤日三语
只是为了试验而已,不要吐槽这么做的意义。
@echo off
set topath="E:\\"
set frompath="D:\\comic\\Dragon.Ball\\cc\\"
set frompath1="D:\\comic\\Dragon.Ball\\aa\\"
pushd %frompath%
for /f "tokens=*" %%i in ('dir/b *.mkv') do call :merge %topath%%%~ni".mkv" %frompath%%%i %frompath1%%%i %frompath1%%%~ni".ssa"
pause
:merge
"C:\Program Files\MKVToolNix\mkvmerge.exe" -o "%1" "--language" "0:jpn" "--default-track" "0:yes" "--forced-track" "0:no" "--display-dimensions" "0:640x480" "--language" "1:chi" "--track-name" "1:国语" "--default-track" "1:yes" "--forced-track" "1:no" "--language" "2:chi" "--track-name" "2:粤语" "--default-track" "2:no" "--forced-track" "2:no" "--language" "3:jpn" "--track-name" "3:日语" "--default-track" "3:no" "--forced-track" "3:no" "--language" "4:chi" "--track-name" "4:chs" "--default-track" "4:yes" "--forced-track" "4:no" "--language" "5:chi" "--track-name" "5:chs" "--default-track" "5:no" "--forced-track" "5:no" "-a" "1,2,3" "-d" "0" "-s" "4,5" "-T" "--no-global-tags" "--no-chapters" "(" "%3" ")" "--language" "5:chi" "--track-name" "5:繁体中文" "--default-track" "5:no" "--forced-track" "5:no" "-s" "5" "-D" "-A" "-T" "--no-global-tags" "--no-chapters" "(" "%3" ")" "--track-order" "0:0,0:1,0:2,0:3,0:4,0:5,1:5"
运行结果:
Error:The file 'D:\\comic\\Dragon.Ball\\cc\龙珠' could not be opened for reading: open file error
|
|