From 4dc1eb59c043ba283e914d822537e42834125cf1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 9 Apr 2013 15:38:19 -0400 Subject: [PATCH] Add more to media info display --- .../Providers/MediaInfo/BaseFFProbeProvider.cs | 1 + MediaBrowser.Model/Entities/MediaStream.cs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs b/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs index 2c1019288..98f2efa80 100644 --- a/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs +++ b/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs @@ -280,6 +280,7 @@ namespace MediaBrowser.Controller.Providers.MediaInfo stream.Width = streamInfo.width; stream.Height = streamInfo.height; + stream.PixelFormat = streamInfo.pix_fmt; stream.AspectRatio = streamInfo.display_aspect_ratio; stream.AverageFrameRate = GetFrameRate(streamInfo.avg_frame_rate); diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index 84ae72393..b68ffe118 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -140,6 +140,13 @@ namespace MediaBrowser.Model.Entities /// The level. [ProtoMember(19)] public double? Level { get; set; } + + /// + /// Gets or sets the pixel format. + /// + /// The pixel format. + [ProtoMember(20)] + public string PixelFormat { get; set; } } ///