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 mm1352000,

    Mediainfo.exe detect the file with a framerate of 29.97 and a Frame Rate Mode of Variable as seen below:

    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
    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
    Original frame rate : 29.970 fps

    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Default : Yes
    Forced : No
    But MP 1.12.0 don't seems to get the info as mediainfo for the framerate, set equal to zero:

    [2015-08-14 16:34:53,084] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Opening file : \\Mediacenter\r\foo1.mkv
    [2015-08-14 16:34:53,228] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: DLL Version : MediaInfoLib - v0.7.69
    [2015-08-14 16:34:53,229] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Inspecting media : \\Mediacenter\r\foo1.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
    [2015-08-14 16:34:53,230] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Width : 1280
    [2015-08-14 16:34:53,230] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Height : 720
    [2015-08-14 16:34:53,231] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: AspectRatio : widescreen
    [2015-08-14 16:34:53,231] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: VideoCodec : AVC [ "avc.png" ]
    [2015-08-14 16:34:53,231] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Scan type : progressive
    [2015-08-14 16:34:53,232] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: IsInterlaced : False
    [2015-08-14 16:34:53,232] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: VideoResolution : 720P
    [2015-08-14 16:34:53,233] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: VideoDuration : 0
    [2015-08-14 16:34:53,233] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: AudioRate : 48000
    [2015-08-14 16:34:53,233] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: AudioChannels : 6 [ "5.1.png" ]
    [2015-08-14 16:34:53,234] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: AudioCodec : AAC LC [ "aac lc.png" ]
    [2015-08-14 16:34:53,234] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: HasAudio : True
    [2015-08-14 16:34:53,235] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: HasVideo : True
    [2015-08-14 16:34:53,235] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: HasSubtitles : False
    [2015-08-14 16:34:53,235] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: NumSubtitles : 0
    [2015-08-14 16:34:53,236] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Closing file : \\Mediacenter\r\foo1.mkv
    [2015-08-14 16:34:53,254] [Log ] [MPMain ] [INFO ] - RefreshRateChanger.AdaptRefreshRate: unable to guess framerate on file \\Mediacenter\r\foo1.mkv


    So, I assume MP is processing the framerate info provided by mediainfo.dll and set it to zero, maybe because described as "Variable".

    Anyway, it's not a big deal, as it seems I've only one file of this type...
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    MediaPortal should detect the same frame rate as MediaInfo.exe if the version of MediaInfo.dll matches MediaInfo.exe. That's why I suggested to replace/update MP's MediaInfo.dll.

    What version of MediaInfo.exe are you using?
     

    FillR

    MP Donator
  • Premium Supporter
  • November 16, 2007
    109
    38
    Home Country
    France France
    Here is the log with the last mediainfo dll (v 0.7.7.76) as you can see:

    [2015-08-15 15:46:00,624] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: DLL Version : MediaInfoLib - v0.7.76
    [2015-08-15 15:46:00,624] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Inspecting media : R:\foo1.mkv.mkv
    [2015-08-15 15:46:00,625] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Parse speed : 0.3
    [2015-08-15 15:46:00,625] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: FrameRate : 0
    [2015-08-15 15:46:00,626] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Width : 1280
    [2015-08-15 15:46:00,626] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Height : 720
    [2015-08-15 15:46:00,627] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: AspectRatio : widescreen
    [2015-08-15 15:46:00,628] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: VideoCodec : AVC [ "avc.png" ]
    [2015-08-15 15:46:00,628] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Scan type : progressive
    [2015-08-15 15:46:00,629] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: IsInterlaced : False
    [2015-08-15 15:46:00,629] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: VideoResolution : 720P
    [2015-08-15 15:46:00,630] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: VideoDuration : 0
    [2015-08-15 15:46:00,630] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: AudioRate : 48000
    [2015-08-15 15:46:00,631] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: AudioChannels : 6 [ "5.1.png" ]
    [2015-08-15 15:46:00,631] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: AudioCodec : AAC LC [ "aac lc.png" ]
    [2015-08-15 15:46:00,632] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: HasAudio : True
    [2015-08-15 15:46:00,632] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: HasVideo : True
    [2015-08-15 15:46:00,632] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: HasSubtitles : False
    [2015-08-15 15:46:00,633] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: NumSubtitles : 0
    [2015-08-15 15:46:00,634] [Log ] [MPMain ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Closing file : R:\foo1.mkv
    [2015-08-15 15:46:00,655] [Log ] [MPMain ] [INFO ] - RefreshRateChanger.AdaptRefreshRate: unable to guess framerate on file R:\foo1.mkv

    Here is the mediainfo screen for the same file with the same mediainfo version:

    Mediainfo.jpg


    My view is the MP MediaInfoWrapper code must be checked to see how the framerate is being parsed by MP after reception from mediainfo.
     
    Last edited:

    FillR

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

    That my opinion as it works perfectly with "Constant" files.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    @FillR
    I have three points/questions.

    1. For this file, MediaInfo is somehow detecting that the original frame rate is 29.97 fps. AFAIK original frame rate is a different property/field compared to the normal frame rate field that MP looks at. That is why MP does not recognise the information.

    2. It is clear that the frame rate of this file is variable. Therefore, I previously asked (last post on page 1): what refresh rate do you expect MP to use?

    3. If MP uses the original frame rate detected by MediaInfo, I think it is possible that frames would be dropped. Do you want it to use that frame rate regardless of dropped frames?
     

    FillR

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

    1) I've used ffmpeg to check the framerate, it's also detected as 29.97:

    ffmpeg framerate.jpg


    2) So I imagine it's the framerate that should be used, meaning played at 60Hz on my TV rather than the actual default (which is 50Hz for me).

    3) Anyway, as I said, seems I've only one file of this type (maybe badly encoded), so it's not a big problem, I'be played this file in 50hz and in 60hz and I hardly notice any difference or dropped frames even during camera movement.
     

    kszabo

    MP Donator
  • Premium Supporter
  • December 6, 2007
    796
    86
    Germany, Bayern
    Home Country
    Hungary Hungary
    I have the same problem that MP fails to detect FrameRate correctly, at lest for a year or two. As all these files of me have 24 or 23,976 I set up a rule for dynamic refresh changer for 0=24 Hz as a workaround. My eyes are picky as I see the 25/24 jitter immediately that drives me crazy ;)

    If I remux these mkvs in mkvToolNix with manually assigning FPS 23,976 (24/1001) to the video stream, MP detects them correctly. Interestingly if I check the mkv headers I see no difference (this info is stored somewhere else)

    Mediainfo states correct FPS as constant for these files. Maybe I give the mediainfo dll a shot...
     

    HakanThn

    Portal Pro
    February 24, 2009
    76
    6
    Home Country
    Sweden Sweden
    I had the same problem with a lot of BD Movies i just encoded to mkv with handbrake. MP can't detect framrate for most of them, but mediainfo clearly states constant framrate 23,976.
    I solved it by changing the mediainfo.dll as suggested above. Turns out that the version installed by MP was 7.69 which is over 2 years old. Replacing it by current version 7.87 and all mkv´s are properly detected.
    Is there a reason why the mediainfo.dll is not updated to latest version in installer? or maybe did not get properly updated. I´m now on MP 1.15.
     

    Users who are viewing this thread

    Top Bottom