Add color transfer to ffprobe results

This commit is contained in:
MrTimscampi 2020-05-14 18:11:32 +02:00
parent 5ce008e02f
commit 428e1b04fc
2 changed files with 12 additions and 0 deletions

View File

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

View File

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