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.
 
 

20 lines
731 B

using ErsatzTV.FFmpeg.Filter.Cuda;
using ErsatzTV.FFmpeg.Filter.Qsv;
using ErsatzTV.FFmpeg.State;
namespace ErsatzTV.FFmpeg.Filter;
public static class AvailableOverlayFilters
{
public static IPipelineFilterStep ForAcceleration(
HardwareAccelerationMode accelMode,
FrameState currentState,
WatermarkState watermarkState,
FrameSize resolution) =>
accelMode switch
{
HardwareAccelerationMode.Nvenc => new OverlayCudaFilter(currentState, watermarkState, resolution),
HardwareAccelerationMode.Qsv => new OverlayQsvFilter(currentState, watermarkState, resolution),
_ => new OverlayFilter(currentState, watermarkState, resolution)
};
}