mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Merge pull request #132 from Fuchs4/fix-path
Fix path with spaces for mkvmerge
This commit is contained in:
commit
58a5cad0ad
1 changed files with 2 additions and 2 deletions
|
@ -103,12 +103,12 @@ def concatenate_mkvmerge(temp: Path, output):
|
|||
log('Concatenating\n')
|
||||
|
||||
encode_files = sorted((temp / 'encode').iterdir())
|
||||
concat = ' +'.join(f.as_posix() for f in encode_files)
|
||||
concat = ' +'.join(shlex.quote(f.as_posix()) for f in encode_files)
|
||||
|
||||
audio_file = temp / "audio.mkv"
|
||||
audio = audio_file.as_posix() if audio_file.exists() else ''
|
||||
|
||||
cmd = f' mkvmerge {concat} {audio} -o "{output}"'
|
||||
cmd = f' mkvmerge {concat} {shlex.quote(audio)} -o {shlex.quote(output.as_posix())}'
|
||||
concat = subprocess.Popen(cmd, stdout=PIPE, universal_newlines=True, shell=True)
|
||||
output, err = concat.communicate()
|
||||
concat.wait()
|
||||
|
|
Loading…
Reference in a new issue