1.25.0 Refresh rate incorrectly reported and set (1 Viewer)

Gcarr

MP Donator
  • Premium Supporter
  • August 17, 2014
    155
    53
    United States of America United States of America
    Country flag
    Discovered today that the Dynamic refresh rate is being improperly reported and set on my systems (server and also a client). When I start watching a channel it is detected as PAL@25 instead instead of ATSC@30 and ends up setting the Refresh Rate to 50hz. I've run MediaInfo on the tsbuffer file and the frame rate is reported correctly there. Related files attached.
     

    Attachments

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,552
    10,372
    France
    France France
    Country flag
    Hi,
    In MP, you have a default DRR maybe you should have to set it to 30hz or 60Hz (should be OK double refresh rate) for TV.

    1603532652098.png


    But from your logs the timeshift buffer seems to find a 25 hz :

    [2020-10-20 14:42:27,533] [Log ] [MPMain ] [WARN ] - MediaInfo.dll was not loaded!
    [2020-10-20 14:42:27,533] [Log ] [MPMain ] [INFO ] - RefreshRateChanger.AdaptRefreshRate: framerate on file E:\timeshift\live16-0.ts.tsbuffer is 25
    [2020-10-20 14:42:27,534] [Log ] [MPMain ] [INFO ] - g_Player.Play(E:\timeshift\live16-0.ts.tsbuffer TV)
    [2020-10-20 14:42:27,535] [Log ] [SetRefreshRateBasedOnFPS thread] [INFO ] - RefreshRateChanger.SetRefreshRateBasedOnFPS: current refreshrate is 60hz - changing it to 50hz
    [2020-10-20 14:42:27,535] [Log ] [MPMain ] [DEBUG] - PlayerFactory: Successfully created player instance for file - E:\timeshift\live16-0.ts.tsbuffer
    [2020-10-20 14:42:27,536] [Log ] [SetRefreshRateBasedOnFPS thread] [INFO ] - RefreshRateChanger.SetRefreshRateBasedOnFPS: using internal win32 method for changing refreshrate. current is 60hz, desired is 50
    [2020-10-20 14:42:27,537] [Log ] [SetRefreshRateBasedOnFPS thread] [INFO ] - RefreshRateChanger AdapterOrdinal value is 0
    [2020-10-20 14:42:27,537] [Log ] [MPMain ] [INFO ] - TSReaderPlayer play:E:\timeshift\live16-0.ts.tsbuffer radio:False
    [2020-10-20 14:42:27,538] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: live tv
    [2020-10-20 14:42:27,538] [Log ] [SetRefreshRateBasedOnFPS thread] [DEBUG] - CycleRefreshRate: Current MonitorIndex : 0 and current deviceName : \\.\DISPLAY1
    [2020-10-20 14:42:27,880] [Log ] [SetRefreshRateBasedOnFPS thread] [INFO ] - CycleRefreshRate: result DISP_CHANGE_SUCCESSFUL for refresh rate change 50Hz for resolution 3840 x 2160
    [2020-10-20 14:42:27,883] [Log ] [SetRefreshRateBasedOnFPS thread] [INFO ] - RefreshRateChanger.SwitchFocus
    So you can also workaround this to set when MP find 25 to 60 or 30 (if you don't have video at 25hz for other media).

    Does this works before ?
    If yes maybe something change for mediainfo.dll (even if I remember that it wasn't used for TV before in realtime view).
     

    Gcarr

    MP Donator
  • Premium Supporter
  • August 17, 2014
    155
    53
    United States of America United States of America
    Country flag
    Hi @Sebastiii, thanks! Sorry it took me a while to get back and answer.
    Yes, it seems that when it reads the timeshift buffer it is incorrectly detecting 25 hz even though the file is 30 hz. I do already workaround the issue like you suggested by changing the refresh rates to 60

    I really don't remember when this started. I probably would have never noticed it but I removed a cec remote adapter I used in the past. I was checking to make sure things were ok after that and I saw the error in the log.

    Maybe I can try mediainfo.dll files from another version and see if it works?
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,552
    10,372
    France
    France France
    Country flag
    Long time ago and need to look the code to confirm, but mediainfo was not used on timeshift file because of the issue for analyzing TS (not an entire file).
    So it was needed to set a specific default refresh rate for it :)

    Now maybe there is change on the part and mediainfo can analyzing the file :)
     

    Gcarr

    MP Donator
  • Premium Supporter
  • August 17, 2014
    155
    53
    United States of America United States of America
    Country flag
    Long time ago and need to look the code to confirm, but mediainfo was not used on timeshift file because of the issue for analyzing TS (not an entire file).
    So it was needed to set a specific default refresh rate for it :) Now maybe there is change on the part and mediainfo can analyzing the file :)
    I've been thinking about this again :)
    It's true. I've tried to use the MediaInfo program on the live6-0.ts.tsbuffer file and it does not provide any usable information on the current file that is being written. But perhaps it may be possible to initially do a very short write to a temporary file (maybe 1 second would be enough?) and then read that file to obtain the framerate? Maybe that is too much of a kludge?
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,552
    10,372
    France
    France France
    Country flag
    I don't know if it's doable easily but on OnlineVideo for streaming, it analyzes the stream so not sure how it was coded :)
     

    Gcarr

    MP Donator
  • Premium Supporter
  • August 17, 2014
    155
    53
    United States of America United States of America
    Country flag
    Thanks for the quick reply! I was wrong in my above post. Viewing ATSCchannels creates two time shifting files when it starts. The first file, live6-0.ts.tsbuffer, does not show you the frame rate information. But the second file, live6-0.ts.tsbuffer1.ts, immediately shows the frame rate. The same is true when viewing IPTV channels (which create live11-0.ts.tsbuffer files). So it seems that one should be able to determine the correct frame rate, at least in these two cases. These are the only cases I can test.
     

    Attachments

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    3,772
    2,013
    Nuenen
    Netherlands Netherlands
    Country flag
    Not at the moment no.
    btw, I have the same issue but luckily my iptv provider has only channels @25 and @50 fps.
    Both are detected as 25...

    Really don't know why that is...
    Anyway, I've bookmarked it, so when I have some spare time I'll see if I can find something....
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    F MP don't change refresh rate General Support 8
    doskabouter [Videos] Dynamic refresh rate Improvement Suggestions 24
    G 1.23.0 Wrong return value for refresh rate / DRR Bugreports 4
    U [solved] Dynamic Refresh Rate for 23fps video Watch / Listen Media 1
    joecrow Refresh rate not returned to default after 3D playback 1.21 Pre Release 0
    M.Hulot dynamic refresh rate funktioniert nicht mehr Allgemeines Supportforum 0
    R 1.27.0 Webepg not refreshing changes. See pics WebEPG 1
    M Local Data Refresh General 8
    cbr954rr [fixed] Movie db refresh on changes of nfo and correct spelling of words in titles 2.2 Archive 33
    B Overhaul IMDb+ rating system IMDb+ 5
    S search for transponder list, symbol rate 6900000 TV-Cards 0
    J Screensaver Slideshow? General 7
    doskabouter 1.27.0 5059: Performance stats displayed incorrectly 1.24-1.27 Pre Release 9
    C MP2 - V2.3.1 EPG view: incorrect displayed fonts Submit: Bug Reports 2
    B MP2 - V2.3 Incorrect Image playlist created when using folder view Submit: Bug Reports 7
    W [solved] Incorrect audio being reported Moving Pictures 4
    framug LAVFilter 0.74.1 incorrect version Skins and Plugins Installer (MPEI) 8
    SpudR Incorrect Links Skins and Plugins Installer (MPEI) 15
    P 1080 X 1920 videos playing incorrectly General Support 5

    Similar threads

    Top Bottom