Stream custom live channels using your own media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
447 B

namespace ErsatzTV.FFmpeg.Option;
public class AudioChannelsOutputOption : OutputOption
{
private readonly int _channels;
public AudioChannelsOutputOption(int channels)
{
_channels = channels;
}
public override IList<string> OutputOptions => new List<string> { "-ac", _channels.ToString() };
public override FrameState NextState(FrameState currentState) => currentState with { AudioChannels = _channels };
}