Browse Source

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

pull/1639/head
Jason Dove 2 years ago committed by GitHub
parent
commit
a5d83a970a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      ErsatzTV.FFmpeg/Pipeline/PipelineBuilderBase.cs

12
ErsatzTV.FFmpeg/Pipeline/PipelineBuilderBase.cs

@ -293,7 +293,17 @@ public abstract class PipelineBuilderBase : IPipelineBuilder @@ -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:

Loading…
Cancel
Save