mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-17 16:59:51 -06:00
21 lines
679 B
C#
21 lines
679 B
C#
namespace FileFlows.VideoNodes.FfmpegBuilderNodes.EncoderAdjustments;
|
|
|
|
/// <summary>
|
|
/// Adjusts FFmpeg arguments depending on devices being used
|
|
/// </summary>
|
|
public class EncoderAdjustment
|
|
{
|
|
/// <summary>
|
|
/// Run any adjustments that are needed to FFmpeg arguments
|
|
/// </summary>
|
|
/// <param name="logger">a logger to log to</param>
|
|
/// <param name="args">the FFmpeg args to adjust</param>
|
|
/// <returns>the adjusted FFMpeg args</returns>
|
|
public static List<string> Run(ILogger logger, List<string> args)
|
|
{
|
|
if (VaapiAdjustments.IsUsingVaapi(args))
|
|
return new VaapiAdjustments().Run(logger, args);
|
|
|
|
return args;
|
|
}
|
|
} |