* upgrade sdk * fix warnings in ersatztv.ffmpeg * fix warnings in ersatztv.core * fix warnings in ersatztv.infrastructure * fix warnings in ersatztv.application * disable analysis for migrations projects * fix warnings in ersatztv.scanner * fix warnings in ersatztv * upgrade project framework * update github actions and dockerfiles
15 lines
344 B
C#
15 lines
344 B
C#
namespace ErsatzTV.FFmpeg.OutputOption;
|
|
|
|
public class AudioBitrateOutputOption : OutputOption
|
|
{
|
|
private readonly int _bitrate;
|
|
|
|
public AudioBitrateOutputOption(int bitrate) => _bitrate = bitrate;
|
|
|
|
public override string[] OutputOptions => new[]
|
|
{
|
|
"-b:a", $"{_bitrate}k",
|
|
"-maxrate:a", $"{_bitrate}k"
|
|
};
|
|
}
|