mkvmerge: set track languages and title
This commit is contained in:
parent
367210ff23
commit
793f3b5900
6
main.go
6
main.go
@ -124,7 +124,11 @@ func performDownload(ctx context.Context, cfg *config, targetUrl string) error {
|
|||||||
|
|
||||||
// Mux the subtitles into the file
|
// Mux the subtitles into the file
|
||||||
|
|
||||||
mkvm := exec.CommandContext(ctx, cfg.mkvmerge, `-o`, filepath.Join(tmpdir, "muxed.mkv"), filepath.Join(tmpdir, "downloaded.mkv"), filepath.Join(tmpdir, "subtitles.srt"))
|
mkvm := exec.CommandContext(ctx, cfg.mkvmerge,
|
||||||
|
`--title`, ltc.Title,
|
||||||
|
`-o`, filepath.Join(tmpdir, "muxed.mkv"),
|
||||||
|
`--language`, `0:jpn`, `--language`, `1:jpn`, filepath.Join(tmpdir, "downloaded.mkv"),
|
||||||
|
`--language`, `0:eng`, `--default-track`, `0`, filepath.Join(tmpdir, "subtitles.srt"))
|
||||||
if cfg.loglevel >= LogLevelVerbose {
|
if cfg.loglevel >= LogLevelVerbose {
|
||||||
mkvm.Stdout = os.Stdout
|
mkvm.Stdout = os.Stdout
|
||||||
mkvm.Stderr = os.Stderr
|
mkvm.Stderr = os.Stderr
|
||||||
|
Loading…
Reference in New Issue
Block a user