Add color primaries to ffprobe output

pull/3115/head
MrTimscampi 5 years ago
parent 234292453f
commit 2e18142bb3

@ -285,5 +285,12 @@ namespace MediaBrowser.MediaEncoding.Probing
/// <value>The color transfer.</value>
[JsonPropertyName("color_transfer")]
public string ColorTransfer { get; set; }
/// <summary>
/// Gets or sets the color transfer.
/// </summary>
/// <value>The color transfer.</value>
[JsonPropertyName("color_primaries")]
public string ColorPrimaries { get; set; }
}
}

@ -700,6 +700,11 @@ namespace MediaBrowser.MediaEncoding.Probing
{
stream.ColorTransfer = streamInfo.ColorTransfer;
}
if (!string.IsNullOrEmpty(streamInfo.ColorPrimaries))
{
stream.ColorPrimaries = streamInfo.ColorPrimaries;
}
}
else
{

Loading…
Cancel
Save