mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
try to detect 3d type
This commit is contained in:
parent
cbb6a9495d
commit
112d5d6348
2 changed files with 8 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue