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-29-2005, 10:41 AM
Dorien Dorien is offline
Sage User
 
Join Date: Mar 2005
Posts: 59
Quote:
Originally Posted by ajuhawk
I have a p4 3.0GHz with HT and the default profile takes forever even on that. What's your final file size and what settings do you use?
Sorry for the late response. Still dealing with the moving stuff. Still have the salt water tank to move tomorrow. When I get home I will attach the tvshows.pvx (or whatever its called) so you can take a look at it.
They end up being about 120megs give or take.

(EDIT) here it is!
Attached Files
File Type: zip tvshows.zip (1.2 KB, 190 views)

Last edited by Dorien; 04-29-2005 at 06:14 PM.
Reply With Quote
  #102  
Old 05-01-2005, 08:27 AM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Just released v1.4 of the changes to Neilm's webserver. This makes my changes compatible with his latest server changes (also v1.4).
Reply With Quote
  #103  
Old 05-01-2005, 11:13 AM
wazkaren wazkaren is offline
Sage Advanced User
 
Join Date: May 2004
Location: Rochester,NY
Posts: 155
I'm not quite getting it, I've read the setup instructions several times but I can't get it to work right. I want to encode only files that are selected from the Nielms Web server page. I have it installed and I see the checkboxes on the recordings page. I select one and I see that it generates the mpg.wse file like it should. But when SageEncoder runs it starts encoding all files in my sage directory, not just the one with the .wse. How should I set up SageEncoder to NOT encode all my mpgs? I do have "Enable Web Triggers" enabled, and "Job Triggers" is turned off. Can anybody help me out?

Thanks,
Greg
__________________
SageTV 6.44, Windows XP Pro,ASUS A7N266, AMD Athlon XP1900+, 768 MB Ram, Avermedia A180, FusionHDTV 5 lite, HDHomeRun.
SageTV 6.44,Windows XP Pro,Chaintech 7NJL6
AMD Athlon XP3000+, 1 gig Ram, SPDIF via on-board audio to Sony STR-DE575 surround sound, BFG 6600GT OC to a Sony KF42WE610 TV, 2 x Hauppauge 250,1 x Hauppauge 150
SageTV Client 6.44,Windows XP Pro, MSI K7T Pro, AMD Duron CPU 1 GHz, 512 Mb Ram, , Linksys WMP54GS, ATI 9600SE
Reply With Quote
  #104  
Old 05-01-2005, 04:30 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by wazkaren
I'm not quite getting it, I've read the setup instructions several times but I can't get it to work right. I want to encode only files that are selected from the Nielms Web server page. I have it installed and I see the checkboxes on the recordings page. I select one and I see that it generates the mpg.wse file like it should. But when SageEncoder runs it starts encoding all files in my sage directory, not just the one with the .wse. How should I set up SageEncoder to NOT encode all my mpgs? I do have "Enable Web Triggers" enabled, and "Job Triggers" is turned off. Can anybody help me out?

Thanks,
Greg
If you have "Job Triggers" turned off it will attempt to encode all of the files. Basically it's an either/or situation, the web trigger is in addition to the Job Trigger, I'll try to make that clearer in the future.
Reply With Quote
  #105  
Old 05-01-2005, 05:49 PM
wazkaren wazkaren is offline
Sage Advanced User
 
Join Date: May 2004
Location: Rochester,NY
Posts: 155
But if I turn Job Triggers on it will still encode all my files. If I understand correctly wth job triggers turned on it will use the .xml files as triggers? I'm using Cayars so every one of all my files has an .xml files. So with or without Job Triggers it's encoding all my files. I think I'm still missing something.

Thanks,
Greg
__________________
SageTV 6.44, Windows XP Pro,ASUS A7N266, AMD Athlon XP1900+, 768 MB Ram, Avermedia A180, FusionHDTV 5 lite, HDHomeRun.
SageTV 6.44,Windows XP Pro,Chaintech 7NJL6
AMD Athlon XP3000+, 1 gig Ram, SPDIF via on-board audio to Sony STR-DE575 surround sound, BFG 6600GT OC to a Sony KF42WE610 TV, 2 x Hauppauge 250,1 x Hauppauge 150
SageTV Client 6.44,Windows XP Pro, MSI K7T Pro, AMD Duron CPU 1 GHz, 512 Mb Ram, , Linksys WMP54GS, ATI 9600SE
Reply With Quote
  #106  
Old 05-01-2005, 05:53 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by wazkaren
But if I turn Job Triggers on it will still encode all my files. If I understand correctly wth job triggers turned on it will use the .xml files as triggers? I'm using Cayars so every one of all my files has an .xml files. So with or without Job Triggers it's encoding all my files. I think I'm still missing something.

Thanks,
Greg
The Job Triggers uses the Job folder to look for .xml files. So unless you set the job folders the same as your input directory (the one with all your recordings) it won't find the .xml files. The idea behind the Job Triggers is that if you set up the compression feature in Cayars you can use the compress button, which in turn creates a .xml file in the jobs folder, to trigger encoding. Does that make sense?
Reply With Quote
  #107  
Old 05-03-2005, 04:31 AM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
When reviewing my code I noticed a bug I introduced - if you're using the 2nd and 3rd input directories the web trigger probably isn't working in those dirs. I'll try to fix this tonight and get it released.
Reply With Quote
  #108  
Old 05-03-2005, 05:16 AM
wazkaren wazkaren is offline
Sage Advanced User
 
Join Date: May 2004
Location: Rochester,NY
Posts: 155
The jobs folder was the part I was missing. If I point the job folders to a different folder from my Sage Recordings then it works right. Thanks for your help and your patience.

Thanks,
Greg
__________________
SageTV 6.44, Windows XP Pro,ASUS A7N266, AMD Athlon XP1900+, 768 MB Ram, Avermedia A180, FusionHDTV 5 lite, HDHomeRun.
SageTV 6.44,Windows XP Pro,Chaintech 7NJL6
AMD Athlon XP3000+, 1 gig Ram, SPDIF via on-board audio to Sony STR-DE575 surround sound, BFG 6600GT OC to a Sony KF42WE610 TV, 2 x Hauppauge 250,1 x Hauppauge 150
SageTV Client 6.44,Windows XP Pro, MSI K7T Pro, AMD Duron CPU 1 GHz, 512 Mb Ram, , Linksys WMP54GS, ATI 9600SE
Reply With Quote
  #109  
Old 05-05-2005, 07:59 PM
lebedev lebedev is offline
Sage User
 
Join Date: Mar 2005
Posts: 16
It looks like I am having a similar problem as buzzerbee posted on 04-18-2005, 01:52 PM. I have read through all the posts in this thread and if a solution was mentioned, I am sorry that I missed it. The problem is that I get an error saying my log file is being used by another process and no encoding happens:

Quote:
5/5/2005 9:22:55 PM: processing X:\SageTV\TriggerHappyTV-315440-0.mpg.wse
System.IO.IOException: The process cannot access the file "X:\wmelog.txt" because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at WME.wme.processFiles(String searchExtension, String cdir, String log, Boolean& flag, String idir, String existingExtension, Boolean& filesProcessed, String directory)
5/5/2005 9:22:56 PM: Encoding file...
5/5/2005 9:22:56 PM: No files to process.
5/5/2005 9:22:56 PM: Loop completed...waiting 5 minutes
I did not open the logfile before running SageEncoder. The log file is 0 bytes and does not increase in size at all. After getting this error message I am not able to open/copy/delete the logfile using explorer (windows tells me it is being used by another process.) If I close SageEncoder the file is still locked. I have closed, and re-opened SageEncoder and changed the folder pointing to the log file and have clicked "Start" only to have the same error repeat for the new logfile (and the original log file remains locked!)

Here are all the steps I have taken to install SageEncoder that I can remember (I have windows XP Pro SP1. All installations, drives and folders mentioned are local to the computer that is running SageTV):

I installed Windows encoder. I extracted "Sage Encoder - Core Files v2.zip" into my windows media "encoder" directory. I also extracted "Sage Encoder b0.2.3 exe only.zip" into the "encoder" directory. I extracted "Neilm's Web Server changes v1.4.zip" into my SageTV directory and it overwrote the two files (I have had the web server installed for a while and have updated it previously.)

I stop and start sagetv through the service control. I double-click SageEncoder.exe. Click Setup : Input Directory "X:\SageTV". Output Directory "X:\TVArchive". Job Folder "X:\TVArchive\jobs". Log file "X:" All other directories are left at default. I save settings and close setup. I have the following checked:
Autorun on start, Run at intervals, Allow Web Triggers, Sort by Show.

The webserver seems to have been updated. My Recordings page has the box, and when I check a box and click the "Set Encode Flag" button, it does create a .wse file.

I do not have any STVs or other enhancements for SageTV installed other than the webserver and now SageEncoder. All I want is to use the webserver to choose which files I want to enocode to wmv.

Thank you very much for any help, and sorry for such a long post, but I figured I might as well be as detailed as possible.

-lebedev
Reply With Quote
  #110  
Old 05-05-2005, 08:53 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by lebedev
It looks like I am having a similar problem as buzzerbee posted on 04-18-2005, 01:52 PM. I have read through all the posts in this thread and if a solution was mentioned, I am sorry that I missed it. The problem is that I get an error saying my log file is being used by another process and no encoding happens...

-lebedev
I'll look at the code again this weekend and see if I can't figure out why that'd be the case. Unfortunately I'm not sure how to recreate this on my own machine as I've never encountered it. Anyway...I'll see what I can find.

Edit: Out of curiousity, why don't you try changing all the directories from their defaults to something you have, like c:
Reply With Quote
  #111  
Old 05-05-2005, 10:45 PM
lebedev lebedev is offline
Sage User
 
Join Date: Mar 2005
Posts: 16
Quote:
Edit: Out of curiousity, why don't you try changing all the directories from their defaults to something you have, like c:
OK, looks like the problem is half fixed. No more error about the locked logfile, but still no encoding going on. Also the logfile remains 0 bytes.

I changed the other directories to "X:"
These are all the optional directories (Input 2, Input 3, and Output 2.)

For WME location, I am keeping the default because it is correct:
C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs

For VideoRedo Location, I kept the default even though I don't have it installed:
C:\Program Files\VideoReDo\vp.vbs

Here is what happens:
Quote:
5/6/2005 12:32:35 AM: processing X:\SageTV\TriggerHappyTV-315440-0.mpg.wse
5/6/2005 12:32:35 AM: Encoding file...
5/6/2005 12:32:35 AM: No files to process.
5/6/2005 12:32:35 AM: Loop completed...waiting 5 minutes
Just to see if I could repeat my original problem, I changed the directories back to the blank that they were at before, but I was unable to repeat the locked logfile problem.

I am a bit confused about something. Must I have "Job Files" if I am using the web interface to choose the programs to encode? If so, how do I get these Job Files.

I now have the following checked "Autorun at Start", "Run at intervals", "Use Job File Trigger", "Allow Web Triggers", "Sort By Show". For Some reason, I now cannot checkmark "Allow Web Triggers" unless I have "Use Job File Trigger" checked (unchecking the "Job File Trigger" causes the "Web Triggers" to become disabled/greyed out.) I could have sworn that before I had "Use Job File Trigger" unchecked and had "Allow Web Triggers" checked.

Thanks for the quick reply,

-lebedev
Reply With Quote
  #112  
Old 05-06-2005, 06:21 AM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by lebedev
OK, looks like the problem is half fixed. No more error about the locked logfile, but still no encoding going on. Also the logfile remains 0 bytes.

I changed the other directories to "X:"
These are all the optional directories (Input 2, Input 3, and Output 2.)

I am a bit confused about something. Must I have "Job Files" if I am using the web interface to choose the programs to encode? If so, how do I get these Job Files.

I now have the following checked "Autorun at Start", "Run at intervals", "Use Job File Trigger", "Allow Web Triggers", "Sort By Show". For Some reason, I now cannot checkmark "Allow Web Triggers" unless I have "Use Job File Trigger" checked (unchecking the "Job File Trigger" causes the "Web Triggers" to become disabled/greyed out.) I could have sworn that before I had "Use Job File Trigger" unchecked and had "Allow Web Triggers" checked.

Thanks for the quick reply,

-lebedev
That's correct, the way I wrote the program it's necessary to have Job File Trigger checked in order to stop the program from encoding everything. Web Triggers thus is disabled (as it won't work) if Job FIle Trigger is not checked. Make sure you do a save settings after making any setting changes though it shouldn't be necessary if you're just running through.

A couple things you might try - 1) Try to run it without job file triggers and see if it starts encoding anything. 2) you might try 1 with and without the run at intervals option. 3) Make sure videoredo is unchecked. 4) This might be the first thing you'll want to check - make sure that there's at least 1 .mpg.wse file that EXACTLY matches a .mpg file up to the '.' or it won't encode with the flags.

I'm puzzled by the log file still, but I'll definatley take a look this weekend. Trying to get a new server up (running linux, which is a somewhat new experiance for me) so I'm slightly distracted
Reply With Quote
  #113  
Old 05-06-2005, 03:13 PM
lebedev lebedev is offline
Sage User
 
Join Date: Mar 2005
Posts: 16
Quote:
A couple things you might try - 1) Try to run it without job file triggers and see if it starts encoding anything. 2) you might try 1 with and without the run at intervals option. 3) Make sure videoredo is unchecked. 4) This might be the first thing you'll want to check - make sure that there's at least 1 .mpg.wse file that EXACTLY matches a .mpg file up to the '.' or it won't encode with the flags.
1) Ran without job file triggers and nothing was encoded:
"5/6/2005 4:48:12 PM: No files to process.
5/6/2005 4:48:12 PM: Loop completed...waiting 5 minutes"

2) Ran without job file triggers and without run at intervals and nothing was encoded.
"5/6/2005 4:48:28 PM: No files processed.
5/6/2005 4:48:28 PM: Done!"

3) has been unchecked

4) .wse exists that matches a .mpg: The following is a copy and paste from windows explorer:
"TriggerHappyTV-315440-0.mpg"
"TriggerHappyTV-315440-0.mpg.wse"

The .wse file is 0 bytes, and my log file remains 0 bytes.

Do I need to have an actual job file on my hard drive somewhere? How do I create job files? I use SageTV purely as a PVR and not as my player, so a way to create job files without having to use the SageTV interface to choose each program that needs a job file would be preferable. I don't mind using the web interface to manually choose what files to encode, but having to start the sagetv interface each time would be a bit too much of a hastle.

To go back to my original problem with the locked log file that has since fixed itself... I am almost positive that when I first installed SageEncoder I had job triggers unchecked and Web triggers was checked (it was not disabled.) Is it possible that your code to disable web triggers if job files is unchecked is not executed at startup and that web triggers is not disabled at startup, and the user is able to check it as long as they do not touch the job triggers checkbox? Perhaps this is what caused the logfile lockup and may explain why I can't repeat the problem.

thanks,
-lebedev
Reply With Quote
  #114  
Old 05-06-2005, 05:53 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Debug version

I added a print statement that'll hopefully help track this problem down. Run this version and let me know what happens.
Attached Files
File Type: zip Sage Encoder b0.2.3 debug.zip (22.0 KB, 157 views)
Reply With Quote
  #115  
Old 05-06-2005, 06:43 PM
lebedev lebedev is offline
Sage User
 
Join Date: Mar 2005
Posts: 16
I ran the debug file and there was no change at all that I could see. Nothing encoded, and nothing generated in the logfile.

I've included screenshots of running SageEncoder debug with and without job files checked.

-lebedev
Attached Images
File Type: jpg SEDebugsnapshot.jpg (42.2 KB, 197 views)
File Type: jpg SEDebugsnapshot-NoJobFile.jpg (39.3 KB, 189 views)
Reply With Quote
  #116  
Old 05-06-2005, 08:55 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by lebedev
I ran the debug file and there was no change at all that I could see. Nothing encoded, and nothing generated in the logfile.

I've included screenshots of running SageEncoder debug with and without job files checked.

-lebedev
Well, I believe that you don't have "cscript.exe" on your computer...at least not in the system(32) directory. You might search and see if that's on your computer....not sure why it wouldn't be but it should be located in the system32 dir in XP. If it is there then I'll have to come up with another idea
Reply With Quote
  #117  
Old 05-06-2005, 10:51 PM
lebedev lebedev is offline
Sage User
 
Join Date: Mar 2005
Posts: 16
Quote:
Well, I believe that you don't have "cscript.exe" on your computer...at least not in the system(32) directory.
Sorry, but I do have a "cscript.exe" located in "c:\windows\system32\"

-lebedev
Reply With Quote
  #118  
Old 05-07-2005, 06:38 AM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Ok....how about "tvshows.prx" in your encoder directory? Attached is another debug version that may or may not be useful...
Attached Files
File Type: zip Sage Encoder b0.2.3 debug v2.zip (22.1 KB, 165 views)
Reply With Quote
  #119  
Old 05-07-2005, 10:26 AM
mtnwing mtnwing is offline
Sage User
 
Join Date: Jul 2004
Location: earth
Posts: 14
I'm having a similar problem where nothing is written to the log. It seems like the ecoding starts OK via the autorun. It finds a VPJ file and says "encoding" and I even get some audio stutter suggesting a process load, but that's where the party ends . . .

I then get a error dialog window popup which says "Console Based Script Host has encountered and error and need to close." I click close, and then it moves to the next file shows that it's trying to encode. 15-20 seconds and the error happens again with the next file and it keeps moving through all my files in the input directory 1 by 1. Any ideas why my script host would keep closing and not complete the encode or write to the log?

One feature request; if users could to dynamically specify the number of input directorys and then it would add or subtract input text fields to accomdate, that would be nice. I've got 4 currently.


Sage 2.2.7, Original STV2, Xp Pro, Celeron 2.2, 1Gig of ram
Reply With Quote
  #120  
Old 05-07-2005, 10:35 AM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by mtnwing
I'm having a similar problem where nothing is written to the log. It seems like the ecoding starts OK via the autorun. It finds a VPJ file and says "encoding" and I even get some audio stutter suggesting a process load, but that's where the party ends . . .

I then get a error dialog window popup which says "Console Based Script Host has encountered and error and need to close." I click close, and then it moves to the next file shows that it's trying to encode. 15-20 seconds and the error happens again with the next file and it keeps moving through all my files in the input directory 1 by 1. Any ideas why my script host would keep closing and not complete the encode or write to the log?

One feature request; if users could to dynamically specify the number of input directorys and then it would add or subtract input text fields to accomdate, that would be nice. I've got 4 currently.


Sage 2.2.7, Original STV2, Xp Pro, Celeron 2.2, 1Gig of ram
I've run into the same problem on my development machine. Unfortunately I don't have an answer for it as it works fine on my sage machine. I even went so far as grabbing the console based script from my sage machine, it still bugged out.

As for the dynamic input dirs...I'll see what I can do Just give me some time as I've got 3 or 4 other things going on too.
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 03:23 PM.


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