diff options
| author | b5f0d6c3 <[email protected]> | 2022-03-10 00:30:36 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-03-10 00:30:36 +0800 |
| commit | 273eb9ac32a8b0826816c1ac82b930b81121a246 (patch) | |
| tree | b96863d05ea80cecda57748ac6cac93e741691d4 /mkvtool/main.go | |
| parent | 4ab65022538472627dba5819b2e62d431b37fe6d (diff) | |
update mkvtool:mkvlib bump to v1.1.9
Diffstat (limited to 'mkvtool/main.go')
| -rw-r--r-- | mkvtool/main.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mkvtool/main.go b/mkvtool/main.go index 25929c5..29fa6ec 100644 --- a/mkvtool/main.go +++ b/mkvtool/main.go @@ -13,7 +13,7 @@ import ( ) const appName = "MKV Tool" -const appVer = "v3.2.5" +const appVer = "v3.2.6" const tTitle = appName + " " + appVer var appFN = fmt.Sprintf("%s %s %s/%s", appName, appVer, runtime.GOOS, runtime.GOARCH) @@ -43,16 +43,22 @@ func main() { v := false clean := false ans := false + a2p := false + apc := false sl, st := "", "" af, ao := "", "" flog := "" asses := new(arrayArg) + pf := 0 + pr := 0 flag.StringVar(&s, "s", "", "Source folder.") flag.StringVar(&f, "f", "", "MKV file. (join single mode)") flag.BoolVar(&c, "c", false, "Create mode.") flag.BoolVar(&d, "d", false, "Dump mode.") flag.BoolVar(&m, "m", false, "Make mode.") flag.BoolVar(&q, "q", false, "Query mode.") + flag.BoolVar(&a2p, "a2p", false, "Enable ass2pgs(only work in win64 and need spp2pgs)") + flag.BoolVar(&apc, "apc", false, "Ass and pgs coexist") flag.Var(asses, "a", "ASS files. (multiple & join ass mode)") flag.BoolVar(&n, "n", false, "Not do ass font subset. (dump mode only)") flag.BoolVar(&clean, "clean", false, "Clean original file subtitles and fonts. (create mode only)") @@ -64,7 +70,8 @@ func main() { flag.StringVar(&data, "data", "data", "Subtitles & Fonts folder (dump & make mode only)") flag.StringVar(&dist, "dist", "dist", "Results output folder (make mode only)") flag.StringVar(&flog, "log", "", "Log file path") - + flag.IntVar(&pf, "pf", 23, "pgs frameRate:23,24,25,29,30,50,59,60. (ass2pgs only)") + flag.IntVar(&pr, "pr", 1080, "pgs resolution:480,576,720,1080,2160. (ass2pgs only)") flag.BoolVar(&v, "v", false, "Show app info.") flag.Parse() @@ -89,6 +96,7 @@ func main() { } processer := getter.GetProcessorInstance() + processer.A2P(a2p, apc, pr, pf) if len(*asses) > 0 { if !processer.ASSFontSubset(*asses, af, ao, !ans, nil) { |
