[AudioTranscoding] Add FLAC as supported target audio format and be able to define the corresponding target sample rate

This commit is contained in:
Stéphane Senart
2020-10-22 11:09:59 +02:00
parent 82d27e6461
commit 28ee4f0a7f
4 changed files with 39 additions and 3 deletions

View File

@@ -404,7 +404,10 @@ namespace MediaBrowser.Controller.MediaEncoding
{
// Don't exceed what the encoder supports
// Seeing issues of attempting to encode to 88200
return Math.Min(44100, BaseRequest.AudioSampleRate.Value);
// return Math.Min(44100, BaseRequest.AudioSampleRate.Value);
// I don't see any reason why limiting the sample rate to a maximum of 44100 !
return BaseRequest.AudioSampleRate.Value;
}
return null;