SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #101  
Old 04-09-2005, 02:02 PM
buzzerbee's Avatar
buzzerbee buzzerbee is offline
Sage Advanced User
 
Join Date: Apr 2004
Location: Ohio
Posts: 201
I guess I'm used to seeing 40-42 with normal use and anything reaching 46+ makes me look at cpu usage for irregularity, if I"m not doing something like this encoding. extended periods over 50 concern me but I guess I'll have to get over it!


you guys kinda lost me again with the index file, but here's what I noticed. yesterday I did compress a file and it put it in the target folder (just like promised ) and inside that folder it created an index.html file. And it also created an index.html file in the folder above that didn't load anything if you clicked the filename link.

so it looks like this:
F:\jobs\ShowTitle\index.html <<< link brought up the file in WMV. Didn't try the streaming bit with the link.
F:\jobs\index.html << this one's filename link didn't work because it's not getting created to the right link.
eg it creates the main indec.html link as
file:///F:/ClosingBell/index.html
but it places the files and index.html in F:\target\ClosingBell\index.html




Today, I cancelled the compress thing in cayers early (after letting run for about 5 minutes- I don't know how yours does it in 1 minute..) but let SE do the wmv conversion, and didn't get any index.html files.

so can I put this index.html file on my website and have things stream around the world?

edit:
a two minute timed recording takes a very long time (ie already 13 minutes) if I use cayers' compress (compress in Recording Detail). Are these the same settings you guys use? How come it only take you 1 minute? Do you cancel it after it makes the .xml file?
These are my settings:
Detailed setup> External setup> Compress option
background enabled
video bitrate 1800
audio bitrate 192
delete disabled
iso-8859-1

then after that's done, I select ajuhawk;s SE.
Are those the correct steps?
__________________
---------------
The Antec = AMD Barton 2500+, 1 GB RAM, Epox 8rda+, WinXP Pro, PVR-250, ATI Radeon 9600XT, SageTV 2.2.8

Last edited by buzzerbee; 04-09-2005 at 03:56 PM.
Reply With Quote
  #102  
Old 04-09-2005, 02:06 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Dorien - are you, by chance, putting a "\" at the end of your directory locations - ie R:\TV\ ? if so I think that's what is causing the problem and I'll have that fixed in the next version as well.
Reply With Quote
  #103  
Old 04-09-2005, 04:05 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by buzzerbee
I guess I'm used to seeing 40-42 with normal use and anything reaching 46+ makes me look at cpu usage for irregularity, if I"m not doing something like this encoding. extended periods over 50 concern me but I guess I'll have to get over it!
You're also running AMD whereas I have Intel on my 2 main machines, Intel tends to run hotter.

As for the other part - I only use the compression part of Cayars .STV to generate the .mpg.xml file, I do not actually run anything else. So after I press compress on the detailed info page that's all I do (generates the .mpg.xml file just doing that) prior to running my new program.

Edit:
Quote:
Originally Posted by buzzerbee
so it looks like this:
F:\jobs\ShowTitle\index.html <<< link brought up the file in WMV. Didn't try the streaming bit with the link.
F:\jobs\index.html << this one's filename link didn't work because it's not getting created to the right link.
eg it creates the main indec.html link as
file:///F:/ClosingBell/index.html
but it places the files and index.html in F:\target\ClosingBell\index.html
That link IS correct as that's the difference between html and normal file browsing, the slashes go opposite directions. After going through all my code I have no problems AND no clue why you all are having troubles...

Last edited by ajuhawk; 04-09-2005 at 04:38 PM.
Reply With Quote
  #104  
Old 04-09-2005, 04:32 PM
buzzerbee's Avatar
buzzerbee buzzerbee is offline
Sage Advanced User
 
Join Date: Apr 2004
Location: Ohio
Posts: 201
Quote:
Originally Posted by ajuhawk
You're also running AMD whereas I have Intel on my 2 main machines, Intel tends to run hotter.

As for the other part - I only use the compression part of Cayars .STV to generate the .mpg.xml file, I do not actually run anything else. So after I press compress on the detailed info page that's all I do (generates the .mpg.xml file just doing that) prior to running my new program.

I thought AMD ran hotter, but either way, nothing to do about that.

generating the xml: but if you press "cancel compress", it deletes the .xml file.
so rather than having the 2 compression processes running simultaneously, I'm trying to figure out how to get it down to just yours (with only minimal invovlement from the cayers builtin first)
__________________
---------------
The Antec = AMD Barton 2500+, 1 GB RAM, Epox 8rda+, WinXP Pro, PVR-250, ATI Radeon 9600XT, SageTV 2.2.8
Reply With Quote
  #105  
Old 04-09-2005, 04:33 PM
seamonkey420 seamonkey420 is offline
Sage User
 
Join Date: Mar 2005
Posts: 49
wow! amazing how one idea turns into a new project.. so cool!

i still have to try out your app ajuhawk.. my batch file still seems to be good enough for me since i actually would rather run it manually..

peace
seamonkey420
__________________
My HTPC:
Athon 64 3000+ 939 | MSI ATI Xpress2 Chipset mobo
ATI X600XT pci-e | Avermedia PVR 150MCE
200GB + 80GB int HD, 100GB ext
NmediaPC HTPC case w/remote/keyboard
19" & 15" LCD monitors

Sony PSP
"knowledge is power, spread the power"
http://seamonkey420.tech-recipes.com
Reply With Quote
  #106  
Old 04-09-2005, 04:41 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by buzzerbee
I thought AMD ran hotter, but either way, nothing to do about that.
Not by a long shot. AMD makes processors smart, Intel just brute forces their solutions so they tend to run hotter. At least that's my experience.

Quote:
Originally Posted by buzzerbee
generating the xml: but if you press "cancel compress", it deletes the .xml file.
so rather than having the 2 compression processes running simultaneously, I'm trying to figure out how to get it down to just yours (with only minimal invovlement from the cayers builtin first)
So I press compress, that generates the .mpg.xml file and that's all it does. Then my program runs whenever you tell it to and uses that .mpg.xml file as a trigger to determine which files to compress (if you select the use trigger...). If I remember correctly, the external program Cayars uses shouldn't run unless you run it independantly.
Reply With Quote
  #107  
Old 04-09-2005, 04:43 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
[QUOTE=seamonkey420]wow! amazing how one idea turns into a new project.. so cool![/QUOTE
yeah, not sure why I took it up but it's been an experience nonetheless...
Quote:
Originally Posted by seamonkey420
i still have to try out your app ajuhawk.. my batch file still seems to be good enough for me since i actually would rather run it manually..
Ok, just so you know it can be run manually or automatically...it's very option based.
Reply With Quote
  #108  
Old 04-09-2005, 05:05 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Dorien,

Just had a thought - if you're not deleting your trial file from the log file that keeps track of which shows have all ready been encoded then it won't actually be redoing the shows_index file.... it won't actually be doing anything unless you delete it from the log file.
Reply With Quote
  #109  
Old 04-10-2005, 12:34 AM
Dorien Dorien is offline
Sage User
 
Join Date: Mar 2005
Posts: 59
yeah I am deleting that entry on a regular basis because I use the same 1 min recording for testing all the time. No, there is not a \ at the end of the path I place in the setup feature of your app. I even tried quoteing it out and also tried useing 8.3 format.

buzzerbee,
As far as the linking, Im having the same problem except that now the index.html on mine does link to the wmv after installing 0.1.2 and removing all the old versions.

I'm still having the issue where shows_index.html doesnt want to look in its own root directory for a subfolder to find the index.html. But insteads wants to look in the root of the drive itself. The same drive I actually had it writen to.
My guess is that F: is the drive that has the directory in it somewhere that you have your wmv files writen to. Correct? If so we have the same issue. Just like mine is C: because that is the drive I use. If the above is true. Then somewhere it wants to look at the root of the drive and not the root shows_index.html. Wish I could find the code itself that dictates this so I could either rule it out or find the issue.

OK, past my bed time night all!

Quote:
Originally Posted by ajuhawk
Dorien,

Just had a thought - if you're not deleting your trial file from the log file that keeps track of which shows have all ready been encoded then it won't actually be redoing the shows_index file.... it won't actually be doing anything unless you delete it from the log file.

Last edited by Dorien; 04-10-2005 at 12:37 AM.
Reply With Quote
  #110  
Old 04-10-2005, 06:53 AM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by Dorien
Wish I could find the code itself that dictates this so I could either rule it out or find the issue.
It's all driven by the html file generated, so if you can find what's wrong with it (the html code) and fix it then I can see if there's a bug in my code. Every html file I've seen has worked fine on my end so it's making this really hard to track down. Basically what I'd suggest is that you mess with the .html file and see if you can make it work, or run the original batch file and see if there's a difference. As far as I've been able to dicern there is no difference but a second look to confirm this would be good.
Reply With Quote
  #111  
Old 04-10-2005, 07:28 AM
buzzerbee's Avatar
buzzerbee buzzerbee is offline
Sage Advanced User
 
Join Date: Apr 2004
Location: Ohio
Posts: 201
Quote:
Originally Posted by Dorien

buzzerbee,
As far as the linking, Im having the same problem except that now the index.html on mine does link to the wmv after installing 0.1.2 and removing all the old versions.

I'm still having the issue where shows_index.html doesnt want to look in its own root directory for a subfolder to find the index.html. But insteads wants to look in the root of the drive itself. The same drive I actually had it writen to.
My guess is that F: is the drive that has the directory in it somewhere that you have your wmv files writen to. Correct? If so we have the same issue. Just like mine is C: because that is the drive I use. If the above is true. Then somewhere it wants to look at the root of the drive and not the root shows_index.html. Wish I could find the code itself that dictates this so I could either rule it out or find the issue.

oK, past my bed time night all!
yes, F is the drive all this is happening on and the my index.html is also not looking in the subfolder. also running 0.1.2

I"m attaching my settings and index files
Attached Images
File Type: jpg settings.jpg (32.9 KB, 232 views)
Attached Files
File Type: zip target.zip (4.4 KB, 187 views)
__________________
---------------
The Antec = AMD Barton 2500+, 1 GB RAM, Epox 8rda+, WinXP Pro, PVR-250, ATI Radeon 9600XT, SageTV 2.2.8
Reply With Quote
  #112  
Old 04-10-2005, 08:00 AM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by buzzerbee
yes, F is the drive all this is happening on and the my index.html is also not looking in the subfolder. also running 0.1.2

I"m attaching my settings and index files
Try these and see if they work.
Attached Files
File Type: zip target.zip (4.9 KB, 183 views)
Reply With Quote
  #113  
Old 04-10-2005, 09:26 AM
buzzerbee's Avatar
buzzerbee buzzerbee is offline
Sage Advanced User
 
Join Date: Apr 2004
Location: Ohio
Posts: 201
Quote:
Originally Posted by ajuhawk
Try these and see if they work.
yes they all work now, thanks! I think that's the same problem Dorien was having.
the file "shows_index.html" works properly now- that was the one that didn't work before. it was missing 1 folder level = target >>> (f:\target\restofpath)
__________________
---------------
The Antec = AMD Barton 2500+, 1 GB RAM, Epox 8rda+, WinXP Pro, PVR-250, ATI Radeon 9600XT, SageTV 2.2.8
Reply With Quote
  #114  
Old 04-10-2005, 09:32 AM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by buzzerbee
yes they all work now, thanks! I think that's the same problem Dorien was having.
the file "shows_index.html" works properly now- that was the one that didn't work before. it was missing 1 folder level = target >>> (f:\target\restofpath)
Good!
I think the problem is that I have it fixed in my current code but I thought I had it in v0.1.2...so my bad. It'll be fixed in the version released later today.
Reply With Quote
  #115  
Old 04-10-2005, 10:17 AM
buzzerbee's Avatar
buzzerbee buzzerbee is offline
Sage Advanced User
 
Join Date: Apr 2004
Location: Ohio
Posts: 201
Quote:
Originally Posted by ajuhawk
Good!
I think the problem is that I have it fixed in my current code but I thought I had it in v0.1.2...so my bad. It'll be fixed in the version released later today.
cool!
__________________
---------------
The Antec = AMD Barton 2500+, 1 GB RAM, Epox 8rda+, WinXP Pro, PVR-250, ATI Radeon 9600XT, SageTV 2.2.8
Reply With Quote
  #116  
Old 04-10-2005, 11:38 AM
Dorien Dorien is offline
Sage User
 
Join Date: Mar 2005
Posts: 59
buzzerbee,
Yep, yours did the same thing mine is doing. Since I placed it on my desktop to check out (on C) it was trying to look in the root of C.

ajuhawk,
After your fix her links started working as they should.

Looks like that one "\" makes it go back to root to look for it.

Last edited by Dorien; 04-10-2005 at 11:40 AM.
Reply With Quote
  #117  
Old 04-10-2005, 04:07 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
I've just released v0.1.3 here, please use that thread for all future questions and comments with regards to the program I wrote.

Hopefully this is a fairly bug free and stable release

Thanks.

Edit: And yeah, thanks for getting this all rolling seamonkey420! We'll let you have your thread back now

Last edited by ajuhawk; 04-10-2005 at 04:14 PM.
Reply With Quote
  #118  
Old 04-10-2005, 04:09 PM
buzzerbee's Avatar
buzzerbee buzzerbee is offline
Sage Advanced User
 
Join Date: Apr 2004
Location: Ohio
Posts: 201
I feel like we took over seamonkey420's thread. Sorry bout that! But also thanks to seamonkey420 for getting it going!
__________________
---------------
The Antec = AMD Barton 2500+, 1 GB RAM, Epox 8rda+, WinXP Pro, PVR-250, ATI Radeon 9600XT, SageTV 2.2.8
Reply With Quote
  #119  
Old 04-14-2005, 03:21 PM
seamonkey420 seamonkey420 is offline
Sage User
 
Join Date: Mar 2005
Posts: 49
Thumbs up

Hehe...

it is totally ALL GOOD! i am really happy to see where all this has gone and the useful input by everyone and taking it over...

i'm to the point right now where i'm happy with what i have so i've kind of stopped work.. but i its fun to see what else you guys are doing!!!

Its great when a software forum board is a community and we all share our ideas and use them to make a better product or have it do more of what we want..


plus.. maybe SageTv will perhaps add a similar type of thing into SageTV 3.xx.xx or into an STV..

aiy.. my fellow PC TV Geeks,
peace
seamonkey420
__________________
My HTPC:
Athon 64 3000+ 939 | MSI ATI Xpress2 Chipset mobo
ATI X600XT pci-e | Avermedia PVR 150MCE
200GB + 80GB int HD, 100GB ext
NmediaPC HTPC case w/remote/keyboard
19" & 15" LCD monitors

Sony PSP
"knowledge is power, spread the power"
http://seamonkey420.tech-recipes.com
Reply With Quote
  #120  
Old 04-22-2005, 08:53 AM
seamonkey420 seamonkey420 is offline
Sage User
 
Join Date: Mar 2005
Posts: 49
Lightbulb one more update.... wme version...

MPG to WMV encoding using Windows Media Encoder, integrating into SageTV / Cayars Ultimate STV!
(updated 4/22/05)

Overview: Well.. its amazing what a little time, thinking, discussing, and testing can accomplish. I know that currently ajuhawk has created an application to do most of this and more, but i'm a fan of the batch file still.. so here's the latest of my batch files..

Notes: This DOES NOT handle compression in SageTV. Movies/shows may be encoded more than once if compression is used.

Installation:

required programs:
-SageTV
-Cayars Ultimate STV installed
-Windows Media Encoder 9 ( click to go to download page)
-PSP Video 9 ( http://pspvideo9.com )
-Videora ( http://videora.com )

_________

where to put files
-wme.bat (put in windows media encoder folder, ie C:\Program Files\Windows Media Components\Encoder)
-psp.prx or whatever you call your windows media encoder profile (put in windows media encoder folder, ie C:\Program Files\Windows Media Components\Encoder)
-all the .txt files (ie embedS.txt, embedE.txt, indexS.txt, etc..) (put in windows media encoder folder, ie C:\Program Files\Windows Media Components\Encoder)
-put the Encode.cmd into your cayars\external folder (ie C:\Program Files\Frey Technologies\SageTV\STVs\OriginalV2\cayars\External )

_________

files that need to modified!
-wme.bat
you will need to change the idir and the odir parameters.
the idir is the location sagetv saves your tv recordings
the odir is the locations you want to save your encoded files to (note, this batch will create a new folder in this directory with the date stamp (mmddyyyy format))

here are the parameters that can be changed/need (with examples) and what they refer to:

set idir=T:\Recorded Shows (where sagetv saves the mpgs of tv shows)
set odir=T:\Encoded Shows (where you want to create your encoded tv show webportal)
set oFile=wmv (file type you want to encode to)
set profile=psp.prx (windows media player profile to use)
set ldir=T:\Recorded Shows\Log (location of log folder, be sure to create it before running!!)
set trigger=VPrj (main trigger file )
set pdir=T:\Recorded Shows\PSP (location that PSP Video 9 looks for movies to auto-convert)

also, if you want to have the batch search for a different file type to trigger the encoding, you can do so here too, by default i have it set to look for a .VPrj file.

-.txt files
modify these files to your liking, i would suggest to run the script/batch first and see how things look. these files are basically templates i have my batch use to create the webapges and embed the movie into a webpage.

-Encode.cmd (put and located in C:\Program Files\Frey Technologies\SageTV\STVs\OriginalV2\cayars\External)
edit this batch, so that it points to where you to where the wme.bat is saved (C:\Program Files\Windows Media Components\Encoder\wme.bat)

-then once you have all of this done, in Cayars Ultimate STV.
you can add a menu item to point to this file.
-Right Click in the menu/submenu you want to add the encoding option.
-Choose Add New Menu Item > External Program
-Then, for external program, use: cmd.exe
-Then for arguments/parameters use: /C "C:\Program Files\Frey Technologies\SageTV\STVs\OriginalV2\cayars\External\Encode.cmd"
(you can copy this line, then use the Paste From Clipboard option)
-Then enter the menu title/text to show: ie, Encode and Publish
-Then once your done, right click again and now Save Menu Definition File.

Hopefully you should now be able to just click the option and the encoding will start automatically in teh background.!!

________

here's exactly what the batch does:
1. in sagetv, click the new menu item we added that points to the batch/encode script
2. this calls our wme.bat script. this script does it all!
3. first it creates a new folder is created with the current date mmddyyyy (ie 03192005)
4. it then will check for a .VPrj file in the idir
5. if it finds one, it will then check the log file folder for a log, if not
6. it will then go and encode all the mpg movies that have a .VPrj file using windows media encoder and the profile we saved in the psp.prx
7. once it finishes encoding the .VPrj it will go back and then create a webpage file, .html with the show name/episode (ie FamilyGuyFunnyDay-3.html) in the folder that was created (ie 03192005/FamilyGuyFunnyDay-3.html)
8. After the embedded webpage is created, it will go back and then create a main index.html file for that folder (ie 03192005\index.html)
9. After the date index is created, another index is then created, with links to all of the index.html files that might exist.
10. and finally once this is done, the batch will go back and clean up all of the files assocatied with the newly encoded wmv (ie , ccno, txt, log, etc) if it successfully encoded. And also move the mpg to the psp folder (for psp video to auto-convert later).
However, if encoding of the mpg failed, the original mpg is left alone.
11. then it will do some quick orphaned file cleanup...

peace
seamonkey420
Attached Files
File Type: zip seamonkeysEncoder.zip (6.0 KB, 213 views)
__________________
My HTPC:
Athon 64 3000+ 939 | MSI ATI Xpress2 Chipset mobo
ATI X600XT pci-e | Avermedia PVR 150MCE
200GB + 80GB int HD, 100GB ext
NmediaPC HTPC case w/remote/keyboard
19" & 15" LCD monitors

Sony PSP
"knowledge is power, spread the power"
http://seamonkey420.tech-recipes.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 02:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.