You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Title (Add Rotation, Width, Height, to MediaInfo)
When attempting to get the Width and Height of a video before it is loaded, it would be nice to have those values as public properties on the MediaInfo object returned from Library.RetrieveMediaInfo. I can get PixelWidth and PixelHeight from the StreamInfo object found in MediaInfo.BestStreams, but even then if the video is portrait (rotation -90 for .mov files for instance), PixelWidth and PixelHeight do not reflect this. Rotation is not exposed and at this point I am using metadataextractor to get this information.
Issue Categories
Bug
Feature Request
Question
Not sure
Version Information
NuGet Package 4.4.350
Expected Results
-MediaInfo will have public properties for Width, Height, and Rotation
Sample Code
--Would love something like this:
C#
MediaInfoinfo= Library.RetrieveMediaInfo(MediaItem.FilePath);int height = info.PixelWidth//if its a 1080 x 1920 portrait video this value would be 1920
int width = info.PixelHeight//if its a 1080 x 1920 portrait video this value would be 1080int rotation = info.Rotation //for example -90 for a portait .mov file from an iphone
The text was updated successfully, but these errors were encountered:
Issue Title (Add Rotation, Width, Height, to MediaInfo)
When attempting to get the Width and Height of a video before it is loaded, it would be nice to have those values as public properties on the MediaInfo object returned from Library.RetrieveMediaInfo. I can get PixelWidth and PixelHeight from the StreamInfo object found in MediaInfo.BestStreams, but even then if the video is portrait (rotation -90 for .mov files for instance), PixelWidth and PixelHeight do not reflect this. Rotation is not exposed and at this point I am using metadataextractor to get this information.
Issue Categories
Version Information
Expected Results
-MediaInfo will have public properties for Width, Height, and Rotation
Sample Code
--Would love something like this:
C#
The text was updated successfully, but these errors were encountered: