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:
parent
89d719b03f
commit
8df71c54c0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user