mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Potential fix for windows concat error with ffmpeg
This commit is contained in:
parent
ba0c7e7a0c
commit
5310350d8e
1 changed files with 2 additions and 3 deletions
|
@ -64,10 +64,9 @@ def concatenate_ffmpeg(temp: Path, output: Path, encoder: str):
|
|||
with open(temp / "concat", 'w') as f:
|
||||
|
||||
encode_files = sorted((temp / 'encode').iterdir())
|
||||
# Replace all the ' with '/'' so ffmpeg can read the path correctly
|
||||
f.writelines(f'file {shlex.quote(str(file.absolute()))}\n' for file in encode_files)
|
||||
f.writelines(f'file {shlex.quote("file:"+str(file.absolute()))}\n' for file in encode_files)
|
||||
|
||||
# Add the audio file if one was extracted from the input
|
||||
# Add the audio/subtitles/else file if one was extracted from the input
|
||||
audio_file = temp / "audio.mkv"
|
||||
if audio_file.exists():
|
||||
audio = ('-i', audio_file.as_posix(), '-c', 'copy', '-map', '1')
|
||||
|
|
Loading…
Reference in a new issue