try to detect 3d type
This commit is contained in:
parent
cbb6a9495d
commit
112d5d6348
|
@ -168,6 +168,12 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||
}
|
||||
|
||||
ExtractTimestamp(info);
|
||||
|
||||
var stereoMode = GetDictionaryValue(tags, "stereo_mode");
|
||||
if (string.Equals(stereoMode, "left_right", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
info.Video3DFormat = Video3DFormat.FullSideBySide;
|
||||
}
|
||||
}
|
||||
|
||||
return info;
|
||||
|
|
|
@ -231,6 +231,8 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||
video.HasSubtitles = mediaStreams.Any(i => i.Type == MediaStreamType.Subtitle);
|
||||
video.Timestamp = mediaInfo.Timestamp;
|
||||
|
||||
video.Video3DFormat = video.Video3DFormat ?? mediaInfo.Video3DFormat;
|
||||
|
||||
await _itemRepo.SaveMediaStreams(video.Id, mediaStreams, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (options.MetadataRefreshMode == MetadataRefreshMode.FullRefresh ||
|
||||
|
|
Loading…
Reference in New Issue
Block a user