MP 1.9.0 RefreshRateChanger AdaptRefreshRate: unable to guess framerate (1 Viewer)

FillR

MP Donator
  • Premium Supporter
  • November 16, 2007
    109
    38
    Home Country
    France France
    Hi,

    Symptom: Dynamic Refresh Rate is not adjusted correctly for some (specific ones) of my video files.

    After investigations, it appears that the problem is linked to MP Infowrapper not detecting the file framerate (set to zero). This has been reproduced on MP 1.4.0 and MP 1.9.0.

    Mediaportal.log:

    [2015-08-14 10:03:01,097] [Log ] [MPMain ] [INFO ] - VideoDatabase media info scanning file: R:\foo1.mkv
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: DLL Version : MediaInfoLib - v0.7.61
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Inspecting media : R:\foo1.mkv
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Parse speed : 0.3
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: FrameRate : 0
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Width : 1280
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Height : 720
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AspectRatio : widescreen
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoCodec : AVC [ "avc.png" ]
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Scan type : progressive
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: IsInterlaced : False
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoResolution : 720P
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoDuration : 0
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioRate : 48000
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioChannels : 6 [ "5.1.png" ]
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioCodec : AAC LC [ "aac lc.png" ]
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasAudio : True
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasVideo : True
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasSubtitles : False
    [2015-08-14 10:03:01,348] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: NumSubtitles : 0
    [2015-08-14 10:03:01,394] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: DLL Version : MediaInfoLib - v0.7.61
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Inspecting media : R:\foo1.mkv
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Parse speed : 0.3
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: FrameRate : 0
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Width : 1280
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Height : 720
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AspectRatio : widescreen
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoCodec : AVC [ "avc.png" ]
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Scan type : progressive
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: IsInterlaced : False
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoResolution : 720P
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoDuration : 0
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioRate : 48000
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioChannels : 6 [ "5.1.png" ]
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioCodec : AAC LC [ "aac lc.png" ]
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasAudio : True
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasVideo : True
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasSubtitles : False
    [2015-08-14 10:03:01,395] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: NumSubtitles : 0
    [2015-08-14 10:03:01,414] [Log ] [MPMain ] [INFO ] - RefreshRateChanger.AdaptRefreshRate: unable to guess framerate on file R:\foo1.mkv
    [2015-08-14 10:03:01,418] [Log ] [MPMain ] [INFO ] - RefreshRateChanger.SetRefreshRateBasedOnFPS: could not find a matching refreshrate based on 0 fps (check config)
    [2015-08-14 10:03:01,418] [Log ] [MPMain ] [INFO ] - g_Player.Play(R:\foo1.mkv Video)
    [2015-08-14 10:03:01,432] [Log ] [MPMain ] [INFO ] - Loading external players plugins
    [2015-08-14 10:03:01,433] [Log ] [MPMain ] [INFO ] - found plugin:MediaPortal.ITunesPlayer.ITunesPlugin in C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    [2015-08-14 10:03:01,433] [Log ] [MPMain ] [INFO ] - player:iTunes. author: Frodo
    [2015-08-14 10:03:01,433] [Log ] [MPMain ] [INFO ] - found plugin:MediaPortal.WinampPlayer.WinampPlugin in C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    [2015-08-14 10:03:01,433] [Log ] [MPMain ] [INFO ] - player:Winamp. author: int_20h
    [2015-08-14 10:03:01,439] [Log ] [MPMain ] [INFO ] - VideoPlayer:play R:\foo1.mkv
    [2015-08-14 10:03:01,488] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: DLL Version : MediaInfoLib - v0.7.61
    [2015-08-14 10:03:01,488] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Inspecting media : R:\foo1.mkv
    [2015-08-14 10:03:01,488] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Parse speed : 0.3
    [2015-08-14 10:03:01,488] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: FrameRate : 0
    [2015-08-14 10:03:01,488] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Width : 1280
    [2015-08-14 10:03:01,488] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Height : 720
    [2015-08-14 10:03:01,488] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AspectRatio : widescreen
    [2015-08-14 10:03:01,488] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoCodec : AVC [ "avc.png" ]
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Scan type : progressive
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: IsInterlaced : False
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoResolution : 720P
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoDuration : 0
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioRate : 48000
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioChannels : 6 [ "5.1.png" ]
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioCodec : AAC LC [ "aac lc.png" ]
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasAudio : True
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasVideo : True
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasSubtitles : False
    [2015-08-14 10:03:01,489] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: NumSubtitles : 0​

    Using Mediainfo, the file framerate is correctly detected:

    General
    Unique ID : 331598953037683492771403491856477894014 (0xF977A2A437E5B0482A93FBEBF7CCB57E)
    Complete name : R:\foo1.mkv
    Format : Matroska
    Format version : Version 2
    File size : 7.99 GiB
    Duration : 1h 58mn
    Overall bit rate mode : Variable
    Overall bit rate : 9 683 Kbps
    Writing application : Lavf52.94.0
    Writing library : Lavf52.94.0

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : Main@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 1 frame
    Format settings, GOP : M=1, N=15
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 1h 58mn
    Bit rate mode : Variable
    Maximum bit rate : 28.0 Mbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Variable
    Frame rate : 29.970 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Default : Yes
    Forced : No

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : LC
    Codec ID : A_AAC
    Duration : 1h 58mn
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Delay relative to video : 64ms
    Default : Yes
    Forced : No​

    Is there any way (or any patch) to help MediainfoWrapper to get the correct framerate ?

    Thx
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Is there any way (or any patch) to help MediainfoWrapper to get the correct framerate ?
    Have you tried updating the MediaInfo.dll in the MediaPortal install directory with the MediaInfo.dll from the version of MediaInfo that you tested with?
     

    FillR

    MP Donator
  • Premium Supporter
  • November 16, 2007
    109
    38
    Home Country
    France France
    Thanks for the tip, using a very recent mediainfo.dll (0.7.76.0), the framerate (29.97) is correctly detected by MP.

    Unfortunatly, MP crash when trying to read the video.

    [2015-08-14 12:44:45,833] [Error ] [MPMain ] [ERROR] - MediaInfoWrapper.MediaInfoWrapper: Error occurred while scanning media: 'R:\foo1.mkv'
    [2015-08-14 12:44:45,866] [Error ] [2 ] [ERROR] - MediaPortal: Unhandled exception occured
    [2015-08-14 12:44:45,869] [Log ] [2 ] [ERROR] - Exception: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
    at MediaPortal.Player.MediaInfo.MediaInfo_Delete(IntPtr Handle)
    at MediaPortal.Player.MediaInfo.Finalize() Message: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) Site : Void MediaInfo_Delete(IntPtr) Source : Core Stack Trace: at MediaPortal.Player.MediaInfo.MediaInfo_Delete(IntPtr Handle)
    at MediaPortal.Player.MediaInfo.Finalize()​

    Below are the logs:
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,956
    5,629
    France - IDF
    Home Country
    France France
    This issue, is knowed ?
    i do'nt know, i remember this ! can you try to update to last MP version ?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Unfortunatly, MP crash when trying to read the video.
    Make sure you use the 32 bit version of MediaInfo. MP is 32 bit software. Therefore it uses the 32 bit MediaInfo DLL, even when the OS is 64 bit.
     

    FillR

    MP Donator
  • Premium Supporter
  • November 16, 2007
    109
    38
    Home Country
    France France
    Unfortunatly, MP crash when trying to read the video.
    Make sure you use the 32 bit version of MediaInfo. MP is 32 bit software. Therefore it uses the 32 bit MediaInfo DLL, even when the OS is 64 bit.
    You're right, need to use the mediainfo_x386.dll renamed to mediainfo.dll.

    Anyway, it doesn't solve the problem, nor by upgrading to 1.12.0...
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Anyway, it doesn't solve the problem, nor by upgrading to 1.12.0...
    Please post fresh log files so we can see the current state of the issue. In other words, we would like to see that MediaInfo recognises the frame rate correctly, and that MP acquires that information and uses it to attempt to set the frame rate.
     

    FillR

    MP Donator
  • Premium Supporter
  • November 16, 2007
    109
    38
    Home Country
    France France
    1) Here are the logs in 1.12.0 (files not prefixed)



    2) The point is that it works perfectly with an other file very similar (same framerate), see logs prefixed by Other File OK:
     
    Last edited:

    FillR

    MP Donator
  • Premium Supporter
  • November 16, 2007
    109
    38
    Home Country
    France France
    Could be the "Frame Rate Mode" which is defined as "Variable" in the file that is not parsed properly as this parameter is defined as "Constant" is all my other .mkv...
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    The log file still shows the frame rate detected as zero:
    [2015-08-14 16:34:53,229] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Inspecting media : \\Mediacenter\r\Paul McCartney\2015 - Paul Mccartney - Live at the Budokan.mkv
    [2015-08-14 16:34:53,229] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Parse speed : 0.3
    [2015-08-14 16:34:53,230] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: FrameRate : 0

    MediaPortal can't adjust the refresh rate correctly unless and until you can get a version of MediaInfo that can properly detect the frame rate. Alternatively, if the frame rate really is variable... well, what refresh rate do you expect MP to use?
     

    Users who are viewing this thread

    Top Bottom