Send as list

This commit is contained in:
Nick Mowen 2023-10-13 14:59:29 -06:00
parent e6e9c7111e
commit 6ad81b9c8d

View File

@ -47,12 +47,21 @@ def get_ffmpeg_command(ffmpeg: FfmpegConfig) -> list[str]:
or parse_preset_input(ffmpeg.input_args, 1) or parse_preset_input(ffmpeg.input_args, 1)
or ffmpeg.input_args or ffmpeg.input_args
) )
return get_ffmpeg_arg_list( return (
f"ffmpeg -vn {{}} -i {{}} -f {AUDIO_FORMAT} -ar {AUDIO_SAMPLE_RATE} -ac 1 -y {{}}".format( ["ffmpeg", "-vn"]
" ".join(input_args), + input_args
ffmpeg_input.path, + ["-i"]
+ [ffmpeg_input.path]
+ [
"-f",
f"{AUDIO_FORMAT}",
"-ar",
f"{AUDIO_SAMPLE_RATE}",
"-ac",
"1",
"-y",
"pipe:", "pipe:",
) ]
) )