1
mirror of https://github.com/n00mkrad/flowframes synced 2024-10-31 17:06:40 +01:00

Fixed conversion audio bitrate of 112 bytes per second lmaoo

This commit is contained in:
N00MKRAD 2020-12-07 10:15:04 +01:00
parent 89d719b03f
commit 8df71c54c0

View File

@ -210,7 +210,7 @@ namespace Flowframes
public static async Task Encode (string inputFile, string vcodec, string acodec, int crf, int audioKbps, bool delSrc)
{
string outPath = Path.ChangeExtension(inputFile, null) + "-convert.mp4";
string args = $" -i {inputFile.Wrap()} -c:v {vcodec} -crf {crf} -pix_fmt yuv420p -c:a {acodec} -b:a {audioKbps} {outPath.Wrap()}";
string args = $" -i {inputFile.Wrap()} -c:v {vcodec} -crf {crf} -pix_fmt yuv420p -c:a {acodec} -b:a {audioKbps}k {outPath.Wrap()}";
if (string.IsNullOrWhiteSpace(acodec))
args = args.Replace("-c:a", "-an");
if(audioKbps < 0)