Automatic Refreshrate Changer (4 Viewers)

gibman

Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Hi!

    Thx for testing ...
    Ive compiled my changed along with 1.0.2.

    could u test if everything is a-okay ?

    Stuff is commited to main trunk.

    /gibman

    Now I have tested your latest patch with the recently released 1.0.2.
    Great job! Thanks for the extended settings (now I can use 24Hz for 24fps and 23.976Hz for 23.976fps so ReClock does not need to do such a big resampling).

    Also going from Video to Music does engage the default refresh rate now. Great!

    Everything works as expected. I think the automatic refresh rate feature of MediaPortal is almost complete.

    One thing that might be a problem is TV with diffrent refresh rates. In Sweden we can use 50Hz for everything so far. But 24p is coming (Canal Digital) and I guess other areas of the world already use multiple frame rates for TV.

    I don't know how to handle this "issue" though. As the framerate may change for commercial breaks etc....
     

    Attachments

    • dynamicrefreshrate_102.rar
      30.7 KB

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    One thing that might be a problem is TV with diffrent refresh rates. In Sweden we can use 50Hz for everything so far. But 24p is coming (Canal Digital) and I guess other areas of the world already use multiple frame rates for TV.

    In theory that could be implemented (for Vista and Windows 7 as they use DX9Ex). TsReader could send the current stream FPS rate info to TVE3 client plugin and then the plugin could switch the refresh rate based on that info. But before that there is big work that needs to be done on TsReader side (so it most likely wont happen in 1.1.0 timeframe, unless someone has huge amounts offree time for TsReader related work.)

    After there two issues are solved it would be possible to start the dynamic refresh rate support for live tv (again, it will only work under Vista / Windows 7 as DX9Ex will allow the video playback to continue after refresh rate is changed). Also there is no point of writing ugly hacks to support XP, which is already phasing out. Especially when those hacks could interfere with the MP stability on other OSes as well.

    0002162: TsReader is not providing correct video / audio stream details on it's output pins - MediaPortal Bugtracker
    0002069: TsReader is not working properly with some H264 codecs - MediaPortal Bugtracker
     

    johan_80

    Portal Pro
    April 27, 2009
    65
    0
    Hi!

    Thx for testing ...
    Ive compiled my changed along with 1.0.2.

    could u test if everything is a-okay ?

    Stuff is commited to main trunk.

    /gibman

    Sorry but I can't start the MediaPortal configuration now (when using your latest build of the two files). Get a message about TV-server and MediaPortal version missmatch. It does work with MediaPortal 1.0.2 and RR_tryout02.rar (as you poasted days ago) though!

    One thing that might be a problem is TV with diffrent refresh rates. In Sweden we can use 50Hz for everything so far. But 24p is coming (Canal Digital) and I guess other areas of the world already use multiple frame rates for TV.

    In theory that could be implemented (for Vista and Windows 7 as they use DX9Ex). TsReader could send the current stream FPS rate info to TVE3 client plugin and then the plugin could switch the refresh rate based on that info. But before that there is big work that needs to be done on TsReader side (so it most likely wont happen in 1.1.0 timeframe, unless someone has huge amounts offree time for TsReader related work.)

    After there two issues are solved it would be possible to start the dynamic refresh rate support for live tv (again, it will only work under Vista / Windows 7 as DX9Ex will allow the video playback to continue after refresh rate is changed). Also there is no point of writing ugly hacks to support XP, which is already phasing out. Especially when those hacks could interfere with the MP stability on other OSes as well.

    0002162: TsReader is not providing correct video / audio stream details on it's output pins - MediaPortal Bugtracker
    0002069: TsReader is not working properly with some H264 codecs - MediaPortal Bugtracker

    So it should be possible to have refresh rate change taking place on the fly if the framerate will change (both whn changing channel or if the framerate changes in the program you're watching)?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    So it should be possible to have refresh rate change taking place on the fly if the framerate will change (both whn changing channel or if the framerate changes in the program you're watching)?

    When ever the fps changes in the stream :p
     

    Scope

    Portal Member
    November 29, 2004
    18
    0
    Home Country
    Sweden Sweden
    RARFileSource Issues

    First I'd like to thank gibman for making this plugin, great work!
    Before I had to switch the refreshrate manually to get rid of the judder.

    I've been loving this plugin until I got hold of a directshow filter which I love as much as this plugin.
    It is called RarFileSource (RARFileSource) and it lets you play mediafiles stored in rar-files on the fly.
    But this directshow filter makes the refreshrate-changer-plugin unable to get the FPS from the mediafile.

    So I have to either manually change the refreshrate each time or manually extract the videos from the rar-files.
    I used to use ParnRar before until I discovered the RARFileSource.

    I'm guessing that this plugin tries to access the media-files directly, and in this case it tries to get the fps from a .rar file?

    Gibman: Do you think it would take alot of work to fix this?
     

    zeebee

    MP Donator
  • Premium Supporter
  • August 10, 2007
    433
    16

    Attachments

    • blindness.png
      blindness.png
      67.4 KB

    Scope

    Portal Member
    November 29, 2004
    18
    0
    Home Country
    Sweden Sweden
    Pretty impossible, as we would have to unpack the RAR and then use MediaInfo to access the unpacked media file.


    Would it not be better if the fps was retrieved by loading the mediafiles for playback (which will use neccessary filters) instead of checking
    the header of the actual file?
    That way you dont need any code for different filetypes in the MediaInfo-module.
    If there comes a new container-format you just need to download a filter for it.

    Which container-types does MediaInfo support right now?
     

    johan_80

    Portal Pro
    April 27, 2009
    65
    0

    Users who are viewing this thread

    Top Bottom