FF-377 - added option same as source to audio nodes bitrate

This commit is contained in:
john
2022-12-05 21:12:43 +13:00
parent 8f972e3de5
commit 3a41d0552e
3 changed files with 10 additions and 4 deletions
+3 -3
View File
@@ -211,13 +211,13 @@ namespace FileFlows.AudioNodes
{
if (SkipIfCodecMatches)
{
args.Logger?.ILog($"Audio file already '{Codec}' at bitrate '{AudioInfo.Bitrate}', and set to skip if codec matches");
args.Logger?.ILog($"Audio file already '{Codec}' at bitrate '{AudioInfo.Bitrate} bps', and set to skip if codec matches");
return 2;
}
if(AudioInfo.Bitrate <= Bitrate)
if(AudioInfo.Bitrate <= Bitrate * 1024) // this bitrate is in Kbps, whereas AudioInfo.Bitrate is bytes per second
{
args.Logger?.ILog($"Audio file already '{Codec}' at bitrate '{AudioInfo.Bitrate}'");
args.Logger?.ILog($"Audio file already '{Codec}' at bitrate '{AudioInfo.Bitrate} bps'");
return 2;
}
}