Video Player not using EXIF rotation info (1 Viewer)

peque

Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    Hi all,

    I'm facing this issue with videos taken with my home smartphones (IPhone 6s and Nexus 5X). Both smartphones use MPEG (Mov and Mp4) EXIF metadata to declare video orientation (TAG "Rotation"), rather than rotating video itself... VLC, Plex and other media players play this videos just fine, but MP doesn't.... Here you have a extract of the metadata inside a vertical video taken with IPhone 6s:

    Code:
    ExifTool Version Number         : 10.24
    File Name                       : 2016-07-26 13-47-29.mov
    Directory                       : .
    File Size                       : 2.3 MB
    File Modification Date/Time     : 2016:07:31 18:37:24+02:00
    File Access Date/Time           : 2016:07:31 19:21:01+02:00
    File Creation Date/Time         : 2016:07:31 19:21:01+02:00
    File Permissions                : rw-rw-rw-
    File Type                       : MOV
    File Type Extension             : mov
    MIME Type                       : video/quicktime
    Major Brand                     : Apple QuickTime (.MOV/QT)
    Minor Version                   : 0.0.0
    Compatible Brands               : qt
    Movie Data Size                 : 2375711
    Movie Data Offset               : 36
    Movie Header Version            : 0
    Create Date                     : 2016:07:26 11:47:29
    Modify Date                     : 2016:07:26 11:47:30
    Time Scale                      : 600
    Duration                        : 0.93 s
    Preferred Rate                  : 1
    Preferred Volume                : 100.00%
    Preview Time                    : 0 s
    Preview Duration                : 0 s
    Poster Time                     : 0 s
    Selection Time                  : 0 s
    Selection Duration              : 0 s
    Current Time                    : 0 s
    Next Track ID                   : 5
    Track Header Version            : 0
    Track Create Date               : 2016:07:26 11:47:29
    Track Modify Date               : 2016:07:26 11:47:30
    Track ID                        : 1
    Track Duration                  : 0.93 s
    Track Layer                     : 0
    Track Volume                    : 100.00%
    Image Width                     : 1920
    Image Height                    : 1080
    Clean Aperture Dimensions       : 1920x1080
    Production Aperture Dimensions  : 1920x1080
    Encoded Pixels Dimensions       : 1920x1080
    Graphics Mode                   : ditherCopy
    Op Color                        : 32768 32768 32768
    Compressor ID                   : avc1
    Source Image Width              : 1920
    Source Image Height             : 1080
    X Resolution                    : 72
    Y Resolution                    : 72
    Compressor Name                 : H.264
    Bit Depth                       : 24
    Video Frame Rate                : 30
    Balance                         : 0
    Audio Format                    : mp4a
    Audio Channels                  : 1
    Audio Bits Per Sample           : 16
    Audio Sample Rate               : 44100
    Purchase File Format            : mp4a
    Matrix Structure                : 1 0 0 0 1 0 0 0 1
    Media Header Version            : 0
    Media Create Date               : 2016:07:26 11:47:29
    Media Modify Date               : 2016:07:26 11:47:30
    Media Time Scale                : 600
    Media Duration                  : 0.93 s
    Media Language Code             : und
    Gen Media Version               : 0
    Gen Flags                       : 0 0 0
    Gen Graphics Mode               : ditherCopy
    Gen Op Color                    : 32768 32768 32768
    Gen Balance                     : 0
    Handler Class                   : Data Handler
    Handler Vendor ID               : Apple
    Handler Description             : Core Media Data Handler
    Other Format                    : mebx
    Handler Type                    : Metadata Tags
    GPS Coordinates                 : 41 deg 59' 21.12" N, 3 deg 10' 39.00" E, 20.677 m Above Sea Level
    Make                            : Apple
    Model                           : iPhone 6s
    Software                        : 9.3.2
    Creation Date                   : 2016:07:26 13:47:29+02:00
    Avg Bitrate                     : 20.4 Mbps
    GPS Altitude                    : 20.677 m
    GPS Altitude Ref                : Above Sea Level
    GPS Latitude                    : 41 deg 59' 21.12" N
    GPS Longitude                   : 3 deg 10' 39.00" E
    Image Size                      : 1920x1080
    Megapixels                      : 2.1
    Rotation                        : 90
    GPS Position                    : 41 deg 59' 21.12" N, 3 deg 10' 39.00" E

    There you can see the TAG "Rotation", set to 90 degrees.

    Videos taken with Nexus 5X are even worse, because for manufacturing matters, sensor inside Nexus 5X had to be upside-down... so all videos taken with right hand (in landscape, which are 99% of them in my case) are tagged with Rotation = 180... And I can't see any of them correctly inside MP.

    What I can't say is if it's a player fault (so MP problem) or it's a Directshow Splitter Filter fault (which in my case would be a LAV Splitter Source problem)

    bye!
     
    Last edited:

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #3
    Yes! Here you have: https://drive.google.com/open?id=0B3Kr1lpS0JMrS0w1YkJmdUdTeU0

    This a video taken with Nexus 5X. All landscape videos taken with right hand are tagged with Rotation=180 because of the sensor mounted upside-down inside Nexus 5X ... so all of them are played upside-down by players that doesn't watch that EXIF info.

    Obviously the temporary fix is to take videos with left hand... but I would prefer MP to solve the issue in the end... :p

    bye!
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #4
    After someone in doom9 LAV thread pointed me that it's renderer which does the job, I've tested madVR in combination with MP, and it's working as expected... Now I need to test madVR + MP in deep to see how stable it is as daily driver, as it's still a work in progress project: https://forum.team-mediaportal.com/threads/madvr-support-in-mp1.133972/

    Any chance that this is also fixed for EVR?
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Mediainfo shows the rotation info, so MP could use that to get the info (e.g from Peque's sample video):

    Code:
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : Baseline@L4.0
    Format settings, CABAC                   : No
    Format settings, ReFrames                : 1 frame
    Format settings, GOP                     : M=1, N=31
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 14s 31ms
    Bit rate                                 : 16.9 Mbps
    Width                                    : 1 920 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Rotation                                 : 180°       <<=== Rotation info
    Frame rate mode                          : Variable
    Frame rate                               : 29.721 fps
    Minimum frame rate                       : 5.997 fps
    Maximum frame rate                       : 30.293 fps
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #7
    Should I open somewhere a trouble ticket, or anything else, so this is not lost in this forum?
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #8
    Any chance this is fixed in EVR in the near future for MP1?

    Does MP2 suffer from this problem also? Anyone knows?
     

    Users who are viewing this thread

    Similar threads

    Many people found the Lentoid decoder better optimised than LAV for software decoding. If you want to try it, download it from the link below, run reg.bat as an admin to install it and change the HEVC Video settings in MediaPortal Configuration/Codecs and Renderer...
    Many people found the Lentoid decoder better optimised than LAV for software decoding. If you want to try it, download it from the...
    For some unknown reason I can't play HEVC encoded video with MP1 on my system. I have tried every trick I know, but nothing works...
    Replies
    10
    Views
    2K
    MP1 MP2 No AC3 sound ... DE
    @fanol Thanks for providing the log files. However they contain only limited detail. Could you please collect new log files, and this time use the Watchdog tool with option 1 or 2 ("report a bug...") to do it. The Watchdog tool is the preferred method/source for collecting log files. Please use it whenever you can. General...
    @fanol Thanks for providing the log files. However they contain only limited detail. Could you please collect new log files, and...
    Hi! I start to play, and there is no sound. Established LAV 0.68 everywhere. On the other formats and movies is no such problem. I...
    Replies
    84
    Views
    12K
    • Locked
    Sorry, support area: http://support.trakt.tv/ Give it at least 24 hours before reporting, it might refresh overnight.
    Sorry, support area: http://support.trakt.tv/ Give it at least 24 hours before reporting, it might refresh overnight.
    Series: https://trakt.tv/shows/the-method - https://thetvdb.com/?tab=series&id=302204&lid=7 2016-07-04 23:01:05.193 [INFO]...
    Replies
    3
    Views
    2K
    Keiner eine Idee?
    Keiner eine Idee?
    Hallo zusammen, ich verwende Win7 64Bit Pro (aktueller Patch Level) und Mediaportal 1.19 um über DVB-C mir Fernsehsendungen...
    Replies
    1
    Views
    1K
    Tried with a custom LAV build from @Sebastiii (0.68.5 git) and got a bit further :) - Works with MPC-HC (no image corruption) as subtitle engine however no subtitle selection for that sample - With DirectVobSub I get the subtitle selection however also the image corruption back So while not perfect at least I can have MPC-HC for...
    Tried with a custom LAV build from @Sebastiii (0.68.5 git) and got a bit further :) - Works with MPC-HC (no image corruption) as...
    Hi, Been trying out some 2160P releases recently and came across an odd issue with HEVC playback, it will run at a reduced...
    Replies
    16
    Views
    4K
    Top Bottom