From 5ebc780efc94c245b195cb4d07843d70218f3de7 Mon Sep 17 00:00:00 2001 From: bruno-f-cruz <7049351+bruno-f-cruz@users.noreply.github.com> Date: Fri, 15 Nov 2024 19:00:15 -0800 Subject: [PATCH] Update codec as per https://github.com/AllenNeuralDynamics/Aind.Behavior.Services/pull/117 --- src/AllenNeuralDynamics.Core/FfmpegVideoWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AllenNeuralDynamics.Core/FfmpegVideoWriter.cs b/src/AllenNeuralDynamics.Core/FfmpegVideoWriter.cs index 8acb2a0..a9680f3 100644 --- a/src/AllenNeuralDynamics.Core/FfmpegVideoWriter.cs +++ b/src/AllenNeuralDynamics.Core/FfmpegVideoWriter.cs @@ -29,7 +29,7 @@ public class FfmpegVideoWriter : Sink [Editor(DesignTypes.MultilineStringEditor, DesignTypes.UITypeEditor)] [Description("The optional set of command-line arguments to use for configuring the video codec.")] - public string OutputArguments { get; set; } = @"-vf ""scale=out_color_matrix=bt709:out_range=full"" -c:v h264_nvenc -pix_fmt nv12 -color_range full -colorspace bt709 -color_trc linear -tune hq -preset p4 -rc vbr -cq 12 -b:v 0M -metadata author=""Allen Institute for Neural Dynamics"" -maxrate 700M -bufsize 350M"; + public string OutputArguments { get; set; } = @"-vf ""scale=out_color_matrix=bt709:out_range=full:sws_dither=none,format=yuv420p10le,colorspace=ispace=bt709:all=bt709:dither=none,scale=out_range=tv:sws_dither=none,format=yuv420p"" -c:v libx264 -preset veryslow -crf 18 -pix_fmt yuv420p -metadata author=""Allen Institute for Neural Dynamics"" -movflags +faststart+write_colr"; [Editor(DesignTypes.MultilineStringEditor, DesignTypes.UITypeEditor)] [Description("The optional set of command-line arguments to use for configuring the input video stream.")]