mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-13 05:42:16 +01:00
determine interlaced from ffprobe data
This commit is contained in:
@@ -264,6 +264,8 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
/// <value>The loro_surmixlev.</value>
|
||||
public string loro_surmixlev { get; set; }
|
||||
|
||||
public string field_order { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the disposition.
|
||||
/// </summary>
|
||||
|
||||
@@ -508,6 +508,11 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
stream.IsAVC = false;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(streamInfo.field_order) && !string.Equals(streamInfo.field_order, "progressive", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
stream.IsInterlaced = true;
|
||||
}
|
||||
|
||||
// Filter out junk
|
||||
if (!string.IsNullOrWhiteSpace(streamInfo.codec_tag_string) && streamInfo.codec_tag_string.IndexOf("[0]", StringComparison.OrdinalIgnoreCase) == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user