mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
Add color transfer to ffprobe results
This commit is contained in:
@@ -278,5 +278,12 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
/// <value>The disposition.</value>
|
/// <value>The disposition.</value>
|
||||||
[JsonPropertyName("disposition")]
|
[JsonPropertyName("disposition")]
|
||||||
public IReadOnlyDictionary<string, int> Disposition { get; set; }
|
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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -695,6 +695,11 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
{
|
{
|
||||||
stream.RefFrames = streamInfo.Refs;
|
stream.RefFrames = streamInfo.Refs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(streamInfo.ColorTransfer))
|
||||||
|
{
|
||||||
|
stream.ColorTransfer = streamInfo.ColorTransfer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user