Changed audio conversion to only use one stream

0:a means take all audio streams of first file. 0🅰️0 means first stream of first file. 0🅰️0? means first audio stream of first file if available.
This commit is contained in:
ghostwheel 2023-03-14 08:24:14 -06:00 committed by Michael Mayer
parent d1b55f134f
commit 9762150da6

View file

@ -51,7 +51,7 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc
"-vf", format,
"-c:v", string(encoder),
"-map", "0:v:0",
"-map", "0:a",
"-map", "0:a:0?",
"-vsync", "vfr",
"-r", "30",
"-b:v", bitrate,
@ -69,7 +69,7 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc
"-i", fileName,
"-c:v", string(encoder),
"-map", "0:v:0",
"-map", "0:a",
"-map", "0:a:0?",
"-c:a", "aac",
"-vf", format,
"-profile", "high",
@ -92,7 +92,7 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc
"-vf", format,
"-c:v", string(encoder),
"-map", "0:v:0",
"-map", "0:a",
"-map", "0:a:0?",
"-vsync", "vfr",
"-r", "30",
"-b:v", bitrate,
@ -110,7 +110,7 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc
"-pix_fmt", "yuv420p",
"-c:v", string(encoder),
"-map", "0:v:0",
"-map", "0:a",
"-map", "0:a:0?",
"-c:a", "aac",
"-preset", "15",
"-pixel_format", "yuv420p",
@ -137,7 +137,7 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc
"-i", fileName,
"-c:v", string(encoder),
"-map", "0:v:0",
"-map", "0:a",
"-map", "0:a:0?",
"-c:a", "aac",
"-vf", format,
"-num_output_buffers", "72",
@ -159,7 +159,7 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc
"-i", fileName,
"-c:v", string(encoder),
"-map", "0:v:0",
"-map", "0:a",
"-map", "0:a:0?",
"-c:a", "aac",
"-vf", format,
"-max_muxing_queue_size", "1024",