|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
STV: GermSage -- Default STV enabling external players and more (v1.7 / 2006-Apr-03)
GermSage Version 1.7 - 2006.Apr.03 Staying true to SageTV's default v4.0.0 and inspired by Cayars With code assistance from MLBDude and Stanger89 Summary and Purpose: This STV is designed to be very close to the original uncluttered default Sage v4.0.0 STV, but with added feature functionality found only in various add-on STVs without breaking STV import capability. I designed this edit primarily to enable the use of external video players within Sage. Like a few other users, I have been encoding my DVD collection into MP4 AVC files, which currently and absolutely cannot be played inside of SageTV's media player. Cayars STV introduced the ability to play media files with an external player, and has allowed myself and others to use our MP4's (as well as Quicktime MOVs, etc) with Sage. With this update, the new Sage v4 family can use external players. Various other "toys" have been added to the back-end of the STV, allowing the use of external metadata with your video library (*.my or collection.xml files) File: LINK DOWN DUE TO WEBSITE AND HOSTING ISSUES... Download v1.7 Features:
Prerequisites:
Installation: DISCLAIMER: I cannot be held responsible for any damage to your SageTV installation OR your video and media libraries that may result from you using this STV. I would recommend backing up your data and information (eg: use test media directories) to insure this STV will function in your environment.
Setting up for external video players Using external players can be a very useful feature. In my case, I have encoded all my DVD's to NeroDigital using their MP4 / AVC method - unfortunately, while it is a very effective compression, it cannot be played in SageTV. By using an external player, I can watch my movies in the import library without having to leave Sage!
Setting up for XML file reading If you use the video library like I do, you will have a plethora of files with NO information associated to them. Using DVD Profiler, you can create a collection.xml file that contains a movie overview, picture, and actors list. This STV will look at the XML information and use it to give you more details on your imported movie media!
Setting up for .my file reading .My files work very similarly to the XML files, although they are much more accessable! You can read more about .my files in a section below. GermSage is set up to read .my's right out of the box.
Setting up to WRITE .my files When using Sage, you've noticed that it contains all the information on your program at your fingertips - but what happens if you take one of your MPEG recordings and turn it into a XVID, AVI, or MP4? All that data goes away... until now!
Maintenance and Cleanup Features With .my files being created, it's important to keep things clean. As you delete MPEG recordings in Sage, any created .my files won't automatically delete themselves. I've brought over the abilility to delete "orphan" files - files which no longer are associated with existing media.
Also, a nice feature of some STVs was the ability to delete "partial" recordings. Maybe you stopped taping something midstream, but the file is still there. The other cleanup option available to you is to remove these partial files.
Turning off the SageTV Autorun Feature If you're anything like me, you hate intrusions into your GUI when inserting CD's, USB2 drives, or any other storage media. This goes for SageTV too! Version 4.0.0 added the feature that will pop a menu up when you insert a new drive - I was ticked off at that, so I made a switch for it!
The code that makes this possible is the result of Carlos Ayars, MLBDude, and Stanger89 - all thanks go to them! Cayars for giving me the ideas and the source for the basics, MLB for his XML integration example, and Stanger for his java expertise. Additionally, the XML and .my file reading/writing features were encouraged by DVD_Maniac - without his interest, I probably would have stopped development a while ago. The next thing I'd like to figure out is how to modularize the changes I made into an STVi. I couldn't figure that out - ideally speaking, the ability to package my changes into a smaller importable module would be perfect. I guess I'll have some more reading to do before I can succeed at that! ====-----About .my files....-----==== This STV can read media library .my files. They are simple text files which contain information about your videos. I use .my files to give more information about my MP4 movies. A sample .my file is below... This is for "Almost Famous.mp4" - The .my file must be named the same, except for the extension... "Almost Famous.my" Code:
title=Almost Famous released=1999 overview=A movie about sex, drugs, and rock n' roll. actors=Jane Doe, John Doe, Doe John, Doe Jane The .MY files I am creating for the Television Programs use a different set of variable names - you can look inside of them to see what they are (almost all are prefaced by TV) ====-----V e r s i o n H i s t o r y-----==== 1.7 - Been a while! Added code to play nicer with current stable version 4.1.3 - Detailed Setup > Advanced - Now sees XML STV's. - Detailed Setup > Customize - Added some items found in the stable version (fade option, alt movie category...) 1.6 - Bugfix to enable .my files reading/writing of OriginalAiringDate field 1.5 - Switched from .xml creation to .my creation of recordings due to technical issues beyond my knowledge. 1.4 - Creates .xml files of recordings. 1.3 - Now reads .my and .xml files. 1.2 - Bugfix for reentrancy and "LiveTV" errors with external players. 1.1 - Tweaked the GUI back to defaults to keep within project goals. 1.0 - Brand spankin' new! Last edited by greggerm; 01-17-2007 at 07:59 AM. |
#2
|
|||
|
|||
Greg,
Downloaded your mod. Will test it out. Thanks for all your efforts. Last edited by jzaman; 11-04-2005 at 05:42 PM. |
#3
|
||||
|
||||
As I said before "Greg, You Da Man!"
Thanx.
__________________
If this doesn't work right, Then: "I'm going to blow up the Earth!" |
#4
|
|||
|
|||
Quote:
|
#5
|
||||
|
||||
Pretty cool. I hate to be a nitpicker but it should be Cayars not Cayers.
|
#6
|
||||
|
||||
Is it possible to build this into an STVI file so that we can import it into any STV?
|
#7
|
|||
|
|||
ToxMox - Duly noted and changed! And to think I've been referring to him with that spelling for a loooong time
Quote:
But before I even think about that, I am off to play with my own HTPC! -Greg |
#8
|
||||
|
||||
Quote:
|
#9
|
|||
|
|||
Greg,
Your mod does the trick with a few changes for my use. Since I play mpg files in Powerdvd the VideoPlayer.cmd is: "C:\Program Files\CyberLink\PowerDVD\PowerDVD.exe" %1 Also in this case the Sage properties file must have Non_Native_Types set to false. No changes in the seeker section required. External/External_Players_Non_Native_Types_Only=false External/External_Video_Player=true External/External_DVD_Player=true Thanks again for making v4 even better. |
#10
|
||||
|
||||
Can somebody explain to me how this works?
How do the external players interact with SageTV? How does the external player know to exit correctly and return to SageTV to the menu where it launched from?
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming ***RIP SageTV*** |
#11
|
||||
|
||||
Has anyone had the issues of some files (mpegs in partitular) play with the sage player as well as the external player? Depending on the speed of which one launches it echos or you pause the external player and you still hear sage's running in the background.
|
#12
|
|||
|
|||
Quote:
Looks as though there is a hiccup in the coding when it switches out to the external player. I am pretty tied up today, but I'll be looking at it hopefully late tonight or tomorrow morning. yay! my first bug! -Greg |
#13
|
|||
|
|||
Greg,
I am confirming that there is a small reentrancy bug: When exiting out of an external player (in my case powerdvd 6) the audio stream will continue to play. However, it is still a big improvement over the Sage default Video viewer. I have also been toying with MC2005, Meedio and BTV over the last sixteen months. Since I want to stick with the mpeg format not dvr-ms or wmv and I also want media player functionality I still look to Sage for satisfaction. I was running with Cayars 18E for a while but I was hoping that the unmodified version 4 would natively build in support for external players. The default Video viewer will not let you select the specific audio stream. Obviously I can use Sage only as a PVR and relegate the viewing of my mpegs outside of the Sage front end. But that would be cheating.. Last edited by jzaman; 11-05-2005 at 12:41 PM. |
#14
|
||||
|
||||
Hi Greg,
What happens when you go to the LiveTV guide and hit Watch Now? For me it opens up Zoom Player, then doesn't play anything. Kinda the same problem Cayar's had.
__________________
If this doesn't work right, Then: "I'm going to blow up the Earth!" |
#15
|
|||
|
|||
Both problems seem fixed! Try out the new download at the top of the thread...
Thanks for testing this out, guys! -Greg |
#16
|
|||
|
|||
Quote:
Using External Players, with DVD as the example: When you request to watch a DVD, Sage checks to see if you have the exernal DVD player option set in your .properties file. If you do not, it will launch it's internal DVD player and you'll see the familier SageTV DVD playback screen. If you do have the setting, Sage goes to sleep! It minimizes out of the way and launches the program you call for in your .cmd file (*included with the edited stv). I personally use PowerDVD. PowerDVD can use keyboard commands to be controlled, so I set my Hauppaugue remote control to send the needed keyboard commands. When PowerDVD closes and exits, Sage is waiting. Through what looks like some Java code, it detects when the program is done, then WAKES Sage back up. You then get your main menu, and it's like nothing had happened! The same thing happens with the external video player. I use ZoomPlayer for my MP4 NeroDigital encodes, so I browse over to the Media Library, open the videos up, and select an MP4 movie. This minimizes Sage, launches my player, and when I'm done, Sage wakes up. Pretty cool stuff. I take no credit for it - I just ported it from Cayars to v4! -Greg |
#17
|
|||
|
|||
Nice final touches. Excellent and cleanly done. This is the icing on my cake. (My birthday was Friday). I can now fully use Sage as my HTPC. Thanks.
|
#18
|
|||
|
|||
Thanks for the kind words - I read that post to the girlfriend and she said...
"That's really nice! You're still a big nerd, though." ...of course, she says that while browsing recorded shows on Sage. Time to take the evening off. Minor STV updates posted to the top-of-thread file. Yay! .my files! -Greg |
#19
|
||||
|
||||
I like the use of the smileys in the first post
|
#20
|
||||
|
||||
Thank you for the STV! It solved my number 1 problem with v3.
Before v3, I was running Cayars17 and PowerDVD as my external DVD player. When I switched to v3 and v4, I lost that ability. This would not have been too bad, except that the internal DVD player didn't pick up one of the audio streams correctly. I had to turn the volume all the way up on my TV to be able to hear normal level sounds. A better understanding of the problem, and the reason I referred to it as "one of the audio streams," showed up with the deleted scenes on the Star Wars Episode III DVD's. If I turned up the sound to be able to hear the movie clips, when they ended and the next George Lucas interview section started, George would blast us out of the room!
__________________
Terry -- My Computer Tips site, coffee site, home theater site Case Lian Li PC-A71F, Motherboard Gigabyte GA-P55-UD4P, CPU Intel Core i7-860, RAM 8 GB, Encoders 2 Hauppauge HVR-2250's, VideoCard PowerCooler AX4350, OS Windows 7 Pro, SageTV 6.6.2, SageTV Media Extender, SageTV Client, SageTV PlaceShifter, Sage Webserver. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|