MP 1.9.0 RefreshRateChanger AdaptRefreshRate: unable to guess framerate | Page 2

Discussion in 'watch/edit Videos' started by FillR, August 14, 2015.

  1. FillR
    • Premium Supporter

    FillR MP Donator

    Joined:
    November 16, 2007
    Messages:
    109
    Likes Received:
    36
    Ratings:
    +42 / 0
    Home Country:
    France France
    Show System Specs
    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...
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    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?
     
  4. FillR
    • Premium Supporter

    FillR MP Donator

    Joined:
    November 16, 2007
    Messages:
    109
    Likes Received:
    36
    Ratings:
    +42 / 0
    Home Country:
    France France
    Show System Specs
    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: August 15, 2015
  5. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,522
    Likes Received:
    2,566
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,251 / 13
    Home Country:
    France France
    Show System Specs
  6. FillR
    • Premium Supporter

    FillR MP Donator

    Joined:
    November 16, 2007
    Messages:
    109
    Likes Received:
    36
    Ratings:
    +42 / 0
    Home Country:
    France France
    Show System Specs
    Hello Azzuro,

    That my opinion as it works perfectly with "Constant" files.
     
  7. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    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?
     
  8. FillR
    • Premium Supporter

    FillR MP Donator

    Joined:
    November 16, 2007
    Messages:
    109
    Likes Received:
    36
    Ratings:
    +42 / 0
    Home Country:
    France France
    Show System Specs
    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.
     
  9. kszabo
    • Premium Supporter

    kszabo MP Donator

    Joined:
    December 6, 2007
    Messages:
    796
    Likes Received:
    76
    Location:
    Germany, Bayern
    Ratings:
    +87 / 1
    Home Country:
    Hungary Hungary
    Show System Specs
    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...
     
  10. HakanThn

    HakanThn Portal Pro

    Joined:
    February 24, 2009
    Messages:
    76
    Likes Received:
    3
    Ratings:
    +4 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    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.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!