mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
Add color primaries to ffprobe output
This commit is contained in:
parent
234292453f
commit
2e18142bb3
|
@ -285,5 +285,12 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||||
/// <value>The color transfer.</value>
|
/// <value>The color transfer.</value>
|
||||||
[JsonPropertyName("color_transfer")]
|
[JsonPropertyName("color_transfer")]
|
||||||
public string ColorTransfer { get; set; }
|
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;
|
stream.ColorTransfer = streamInfo.ColorTransfer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(streamInfo.ColorPrimaries))
|
||||||
|
{
|
||||||
|
stream.ColorPrimaries = streamInfo.ColorPrimaries;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue