View Full Version : SageTV Graph Plugins
babgvant
05-20-2010, 07:23 PM
SageTV V7 adds a feature that allows plugins to run as part of the graph creation process. The zip file includes two plugins that can be placed in %ProgramFils%\SageTV\SageTV\GraphPlugin" to assist in the graph building and enhance playback.
SGPConfig.exe - Configuration application (screen shots below)
ChangeRefreshRate.dll - changes the refresh rate based on the FPS of the file as playback begins using a user defined FPS->Refresh Rate map.
GraphTweaker.dll - Adds and blocks filters based on container and codec. It can also disable composition (Aero) during playback. In most cases it's best to set the filter in Sage to "Default" for any codecs that will be overridden with this plugin.
Both plugins use MediaInfo.dll so it must be copied as well.
main.reg - an example of how the tool can be used to load filters by container/codec.
Download and screenshots of the config tool are here (http://babgvant.com/files/folders/sagetools/entry17125.aspx).
LehighBri
05-20-2010, 08:22 PM
Andy - I'm not the most technical when it comes to containers and codecs... what real world applications / use cases would the graph plugins enable?
babgvant
05-20-2010, 08:58 PM
Andy - I'm not the most technical when it comes to containers and codecs... what real world applications / use cases would the graph plugins enable?
The main feature of ChangeRefreshRate is that it can switch refresh rates for you - so 24p (23.976fps) and 60p content both play at the right frame rate w/o needing to switch it yourself. It can also do native resolution switching (720p = 1280x720@60Hz, 1080i = 1920x1080@30Hz, 1080p = 1920x1080@60Hz, etc), but that feature is kind of hit-or-miss right now and you'd only want to enable it if your GPU DI/scaler is weaker than another VP in your system.
GraphTweaker is probably useful to more people. I use it to load ffdshow for m2ts/mkv (movies with FLAC or HD audio) and ac3filter for mpeg/ts (TV) files where only one would get used by Sage before depending on how I set it up.
Sage already does a great job of allowing filter (decoder) selection, this just provides more granularity for those who want it.
GKusnick
05-20-2010, 09:03 PM
Any plans to package this for installation/uninstallation via the V7 plugin manager?
Jabroni
05-20-2010, 10:49 PM
This could come very handy for me :D I previosly had a mapped button on my remote that would change the refresh rate but it was a bitch since i had to see first what fps the file i was playing had.
Now could you care to explain a bit more how to set it up?
I already grabbed the zip file and placed it onto my SageTV\SageTV dir, loaded the .reg onto my registry, checked with the config tool and it shows 24hz for 24fps material, and 24hz for 23.9somethng. Then I restarted the Sage service, and loaded the SageTV client. I tried playing back a 1080p 24fps MKV, however nothing happens and it stills plays at 1080p@60hz. Any way to debug whats happening??
Specs:
Win7 32bit
Video Card: ATI Radeon 5730
Drivers: 10.2 (10.4 gave me probs with sage, the driver crashes, so i had to rll back to 10.2)
SageTV 7.0.9 beta running as Service, and Client running on the same machine
impro
05-21-2010, 03:56 AM
Would this affect hd200 playback?
I have been having 24p playback problems forever
razrsharpe
05-21-2010, 07:08 AM
Would this affect hd200 playback?
no, this is for windows clients only
I have been having 24p playback problems forever
You always (and all over the place) say you have been having problems forever with 24p but never explain what the problem is... care to elaborate? There are plenty of people on this forum that use 24p successfully (myself included) so it's definitely possible. Plus the hd200 has never officially supported 24p so we should all be happy it works at all
stlbearboy
05-21-2010, 07:30 AM
I guess we are still stuck with the SageTV Demux for MKVs. Blu-Rays play fine. Recorded tv from HD-PVRs play fine. But MKVs ripped from Blu-Rays are stuttering in Sage. I was hoping I could use this to include the Haali splitter and produce the same graph as graphedit.
Fri 5/21 8:18:53.716 [AWT-EventQueue-0@cf2c80] DShowGraphFilters=Default DirectSound Device,VidRend,MPC - Video decoder (babgvant),ArcSoft Audio Decoder HD,SageTV Stream Demux,\\mediaserver\moviesk\Fast and Furious.mkx.mkv,
Fri 5/21 8:18:53.716 [AWT-EventQueue-0@cf2c80] Detected default audio stream index to be: 2
Fri 5/21 8:18:53.716 [AWT-EventQueue-0@cf2c80] ----------->Get getDurationMillis0=6412448.
babgvant
05-21-2010, 07:34 AM
Any plans to package this for installation/uninstallation via the V7 plugin manager?
Maybe. I'm not sure how useful it would be to deploy the dlls because they aren't useful w/o configuration via the 2' settings tool. Also it really should use an MSI to handle Visual Studio runtime dependencies.
babgvant
05-21-2010, 07:50 AM
This could come very handy for me :D I previosly had a mapped button on my remote that would change the refresh rate but it was a bitch since i had to see first what fps the file i was playing had.
Now could you care to explain a bit more how to set it up?
I already grabbed the zip file and placed it onto my SageTV\SageTV dir, loaded the .reg onto my registry, checked with the config tool and it shows 24hz for 24fps material, and 24hz for 23.9somethng. Then I restarted the Sage service, and loaded the SageTV client. I tried playing back a 1080p 24fps MKV, however nothing happens and it stills plays at 1080p@60hz. Any way to debug whats happening??
Specs:
Win7 32bit
Video Card: ATI Radeon 5730
Drivers: 10.2 (10.4 gave me probs with sage, the driver crashes, so i had to rll back to 10.2)
SageTV 7.0.9 beta running as Service, and Client running on the same machine
If "Write Log" is enabled (this is a per plugin setting) a detailed log will be written to folders in C:\Users\{username}\AppData\Local\babgvant.com\.
If the setting is checked and nothing shows up make sure that the dlls aren't "blocked" (right-click select properties).
babgvant
05-21-2010, 07:51 AM
Plus the hd200 has never officially supported 24p so we should all be happy it works at all
I think that the HD200 will support 24p w/ V7 if native resolution switching is enabled.
babgvant
05-21-2010, 07:53 AM
I guess we are still stuck with the SageTV Demux for MKVs. Blu-Rays play fine. Recorded tv from HD-PVRs play fine. But MKVs ripped from Blu-Rays are stuttering in Sage. I was hoping I could use this to include the Haali splitter and produce the same graph as graphedit.
Fri 5/21 8:18:53.716 [AWT-EventQueue-0@cf2c80] DShowGraphFilters=Default DirectSound Device,VidRend,MPC - Video decoder (babgvant),ArcSoft Audio Decoder HD,SageTV Stream Demux,\\mediaserver\moviesk\Fast and Furious.mkx.mkv,
Fri 5/21 8:18:53.716 [AWT-EventQueue-0@cf2c80] Detected default audio stream index to be: 2
Fri 5/21 8:18:53.716 [AWT-EventQueue-0@cf2c80] ----------->Get getDurationMillis0=6412448.
You can disable (http://forums.sagetv.com/forums/showthread.php?p=424791&postcount=9) the native MKV splitter.
razrsharpe
05-21-2010, 08:02 AM
I think that the HD200 will support 24p w/ V7 if native resolution switching is enabled.
You still need to add 1080p24 to the list of unsupported extra resolutions in the hd200's property file (at least I had too). Once its there then yes the hd200 will switch to it automatically with native resolution switching...
stlbearboy
05-21-2010, 08:23 AM
Thanks twice.
babgvant
05-21-2010, 08:43 AM
You still need to add 1080p24 to the list of unsupported extra resolutions in the hd200's property file (at least I had too). Once its there then yes the hd200 will switch to it automatically with native resolution switching...
Having to add it makes sense because most displays don't support 23.976/24Hz input, but my impression (which could be wrong :)) was that it was supported as part of the native output switching feature in V7.
impro
08-27-2010, 01:15 AM
HORRIBLE HORIZONTAL PANS.
PS3 playback is not even close.
quote: You always (and all over the place) say you have been having problems forever with 24p but never explain what the problem is... care to elaborate? There are plenty of people on this forum that use 24p successfully (myself included) so it's definitely possible. Plus the hd200 has never officially supported 24p so we should all be happy it works at all :quote
vBulletin® v3.7.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.