Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

DeviceChange Notifier recognition of DVD / Blu Ray

If you have a question or need help, this is the place to be.
Post Reply
knilch
Posts: 7
Joined: Sat Aug 22, 2009 8:36 am

DeviceChange Notifier recognition of DVD / Blu Ray

Post by knilch »

Hi there,

I have made a very simple addition to the code of DeviceChangeNotifier.py to allow the plugin a differentiation of media types inserted. It fires a "Drivemounted.X.BluRay" event for BD, a ".DVD" event or an ".Unknown" event for other types (Audio CD detection does not work). The idea behind is the following: Let's say you use DVBViewer as your media center. Although it can handle BD-playlists and therefore play the m2ts-streams you would rather open Blu Rays and DVDs (i.e. for upsampling reasons) in TMT oder PDVD. Of course you also want to use the correct display refresh rate, which is 24hz for BD and 50hz for DVD (PAL). So when a BD arrives, you now can tell EventGhost to stop DvbViewer, Change refresh rate and then open TMT or PDVD. After program termination you change back to 50hz which you would use for TV. If a DVD is inserted, no refresh rate change is necessary, just TMT or PDVD is opened.

To me this is the simpliest way to achieve the correct screen refresh rate, more comfortable than using third party programs/plugins. The downside is that you still need a DVBViewer plugin if you have MKV files with 24Hz and like to view in native refresh rate to avoid stutter...

Regards
Knilch

P.S.: I have no knowledge in Python programming, so my code addition looks very childish :-)
Attachments
DeviceChangeNotifier.py
(5.32 KiB) Downloaded 132 times
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: DeviceChange Notifier recognition of DVD / Blu Ray

Post by jinxdone »

Just out of curiosity, are you familiar with the ReClock directshow filter?
knilch
Posts: 7
Joined: Sat Aug 22, 2009 8:36 am

Re: DeviceChange Notifier recognition of DVD / Blu Ray

Post by knilch »

I see no sense in messing with timings when everything is clearly defined. I have TV: 50Hz. HDTV: 25hz or 50 Hz. DVD 50 Hz. Blu Ray 24Hz. So all that's needed is a change in display refresh rate from 50 to 24 Hz and back depending on inserted media. By the way it's a shame that neither TMT nor PDVD can do this on their own... An additional filter like Reclock that hooks the directshow chain does not seem to be a good way to go.
Post Reply