use mkv container for 8-bit segmenter v2 content (#1637)

This commit is contained in:
Jason Dove
2024-03-06 12:42:48 -06:00
committed by GitHub
parent 986785d863
commit a5d83a970a
@@ -293,7 +293,17 @@ public abstract class PipelineBuilderBase : IPipelineBuilder
pipelineSteps.Add(new PipeProtocol());
break;
case OutputFormatKind.Nut:
pipelineSteps.Add(new OutputFormatNut());
// mkv doesn't want to store rawvideo with yuv420p10le, so we have to use NUT
if (desiredState.BitDepth > 8)
{
pipelineSteps.Add(new OutputFormatNut());
}
else
{
// yuv420p seems to work better with mkv (NUT results in duplicate PTS)
pipelineSteps.Add(new OutputFormatMkv());
}
pipelineSteps.Add(new PipeProtocol());
break;
case OutputFormatKind.Mp4: