|
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 |
#141
|
|||
|
|||
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#142
|
||||
|
||||
Quote:
1) Manually go through and generate .vprj files, but don't save the actual video. 2) Set a MediaShrink task that picks up on .vprj files and does the cut/encode/replace. This way you can queue up the hard drive intensive task until the night time. 3) Make a Handbrake task that looks for the encoded videos (.mkv) but not (.mp4) and converts the encoded .mkv's into ipod format. (I don't think you'll notice any difference in quality on the iPod) Last edited by evilpenguin; 11-30-2009 at 07:42 PM. |
#143
|
|||
|
|||
Quote:
|
#144
|
|||
|
|||
Quote:
I did not realize you can reencode an mkv to mp4 using handbrake. I like it! That way, I do not have to wait to convert to mp4 before shrinking my entire library. Thanks. |
#145
|
|||
|
|||
Quote:
You got to think about it sort of backwards. Basically, let's say you've got a SageTV recording named Seinfeld-12345-0.mpg. You've run comskip on it and done your manual verification and created a cut version of the recording and let's say it's called Seinfeld-12345-0.cut.mkv (you'll need to pick some kind of naming convention) and the file is in C:\cut\. So now you want to copy this back over and replace the original. (Side tanget: I don't think Sage is going to like the fact that this new file is a shorter length than the original; I think it's going to mess the time line up, but I'm just ignoring that for now). Server ruleset: Code:
if [IsObjMediaFile == true && $.IsTVFile{} == true && FileExists == "C:/cut/%p%.cut.mkv"] { # Ok, a cut version of the recording exists so let's replace the orig REPLACEORIG } Code:
REPLACEORIG { /* This bat file takes in the source dir, source file, dest dir, dest file and replaces the dest with the src; I ain't writing the batch file! ;) */ "C:/mytools/replace.bat \"C:/cuts\" \"%p%.cut.mkv\" \"%d%\" \"%f%\" } Quote:
NOTE: All of these SJQ examples are untested, off the top of my head. I wouldn't use them verbatim without some heavy testing first. Use them more as a guide.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#146
|
||||
|
||||
Quote:
http://upnp2podcast.googlecode.com/s...r/edl2vprj.exe Its just drag and drop. Last edited by evilpenguin; 11-30-2009 at 08:04 PM. |
#147
|
|||
|
|||
Thank you all for excellent suggestions. Once I have it implemented, I will definitely share my configuration.
|
#148
|
|||
|
|||
Quote:
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#149
|
|||
|
|||
Quote:
|
#150
|
||||
|
||||
SJQ client resources disappeared...
Hi Slugger,
This morning I noticed 2 programs that didn't get Comskipped last nite. Seems that sometime yesterday morning the available resources got decreased when nothing was happening: Code:
2009-12-02 09:29:37,031 INFO [SJQServlet]: Checking client '127.0.0.1': 100 resources free. 2009-12-02 09:29:37,093 INFO [DataStore]: Flushed 1 log message(s) in 62ms 2009-12-02 09:29:37,234 INFO [DataStore]: Flushed 1 log message(s) in 203ms 2009-12-02 09:29:37,234 INFO [SJQServlet]: Checking client '127.0.0.1': 67 resources free. 2009-12-02 09:29:37,328 INFO [DataStore]: Flushed 1 log message(s) in 78ms 2009-12-02 09:29:37,531 INFO [DataStore]: Flushed 1 log message(s) in 281ms 2009-12-02 09:29:37,546 INFO [SJQServlet]: Checking client '127.0.0.1': 1 resources free. 2009-12-02 09:29:37,546 INFO [SJQServlet]: Client '127.0.0.1' cannot pop a task of type 'SHOWANALYZER': Requires 33 resources, but only 1 available. 2009-12-02 09:29:37,546 INFO [SJQServlet]: Client '127.0.0.1' cannot pop a task of type 'COMSKIP': Requires 33 resources, but only 1 available. 2009-12-02 09:29:37,546 INFO [SJQServlet]: Client '127.0.0.1' cannot pop a task of type 'COMSKIPTS': Requires 66 resources, but only 1 available. 2009-12-02 09:29:37,656 INFO [DataStore]: Flushed 1 log message(s) in 110ms From the Ruleset: Code:
//Process SHOWANALYZER on all H.264 recordings unless recording was from KTCADT/KSMQDT or the result of Live TV //if [IsObjMediaFile == true && $.IsTVFile{} == true && $.IsNotManualOrFavorite{} == false && $.IsFileCurrentlyRecording{} == false && $.IsWatchedCompletely{} == false && IsSomethingRecording == false && $.GetAiringChannelName{} !% "KTCA.*|KSMQ.*" && Filename =$ ".ts" && FileExists != "%d%/%p%.edl"] //{ // :PRIORITY 5 // SHOWANALYZER //} Code:
2009-12-02 09:29:37,546 INFO [SJQServlet]: Checking client '127.0.0.1': 1 resources free. 2009-12-02 09:29:37,546 INFO [SJQServlet]: Client '127.0.0.1' cannot pop a task of type 'SHOWANALYZER': Requires 33 resources, but only 1 available. 2009-12-02 09:29:37,546 INFO [SJQServlet]: Client '127.0.0.1' cannot pop a task of type 'COMSKIP': Requires 33 resources, but only 1 available. 2009-12-02 09:29:37,546 INFO [SJQServlet]: Client '127.0.0.1' cannot pop a task of type 'COMSKIPTS': Requires 66 resources, but only 1 available. 2009-12-02 09:29:37,656 INFO [DataStore]: Flushed 1 log message(s) in 110ms 2009-12-02 09:29:37,671 INFO [SJQServlet]: Checking client '127.0.0.1': 1 resources free. 2009-12-02 09:29:37,671 INFO [SJQServlet]: Client '127.0.0.1' cannot pop a task of type 'SHOWANALYZER': Requires 33 resources, but only 1 available. 2009-12-02 09:29:37,671 INFO [SJQServlet]: Client '127.0.0.1' cannot pop a task of type 'COMSKIP': Requires 33 resources, but only 1 available. 2009-12-02 09:29:37,671 INFO [SJQServlet]: Client '127.0.0.1' cannot pop a task of type 'COMSKIPTS': Requires 66 resources, but only 1 available. 2009-12-02 09:29:37,859 INFO [DataStore]: Flushed 121 log message(s) in 906ms Code:
2009-12-02 12:14:31,125 ERROR [DataStore]: SQL error java.sql.SQLException: database locked at org.sqlite.DB.execute(DB.java:270) at org.sqlite.DB.executeUpdate(DB.java:281) at org.sqlite.PrepStmt.executeUpdate(PrepStmt.java:77) at com.google.code.sagetvaddons.sjq.server.DataStore.setSetting(DataStore.java:930) at com.google.code.sagetvaddons.sjq.server.MediaFileQueueLoader.run(MediaFileQueueLoader.java:48) at java.lang.Thread.run(Unknown Source) Tom
__________________
Check it out! - http://www.vholdr.com/video/playing-sky |
#151
|
|||
|
|||
Any luck?
I'm wondering if you have had any success resolving this? I am encountering the same issue. I have reverted to having SJQ call a batch file which launches comskip, and that resolves the issue but it doesn't seem like a very clean solution. Incidentally, I see the issue with anything of two hours in length or over. Thanks. |
#152
|
|||
|
|||
New SJQ user
Hello all, I have just migrated over from Comskip Monitor to SJQ. I did love CSM, and it was humming along just fine, but I wanted to try recompressing some programs automatically, and it isn't well suited to that task.
Anyway, I am a little afraid that I joined the SJQ ranks at an inopportune time, with the new version barely out of the gates and all. I have encountered some strange problems in getting everything implemented, and sometimes I am not sure if it is me doing something wrong, or a bug somewhere in SJQ. I especially wonder when I don't see posts from anyone else reporting the same problems . So, regarding the issue at hand, I have a couple of questions. First, does task logging work in the current version? It doesn't appear to work for me. Clicking any active task and selecting "view log" presents me with a page that says "Task log:<show name>" at the top, and nothing else. Completed or failed tasks show "Task log:<some ID number>/<task name>" and nothing else. Additionally, from the "clients" page, viewing the logs of any client also shows a blank page. Should something be appearing in these logs? Is there a config option I am missing somewhere? I know that some of the tasks I run produce output on stdout, so even if that was the only thing logged I should still be getting that I would think. My second question involves CPU usage of SJQ itself during a media file update. I have SJQ set to scan when a scheduled recording starts, as well as every ten minutes in order to try to catch live shows for commercial marking and closed caption extraction (ideally it would be even more frequent...actually, ideally SJQ would notice that a live program was initiated and I wouldn't need to scan periodically at all ). The problem is that when the scan fires off, the SageTV service suddenly jumps to 100% CPU usage, and viewing of programs and manipulating the UI becomes choppy (via an HD200 extender). I understand that SJQ runs "inside" SageTV. Is there a way to make it more resource-friendly when it does its media file scans? I have some more questions, but I'll leave it at that for now. Thanks for any insight anyone can provide on this! |
#153
|
|||
|
|||
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#154
|
|||
|
|||
Quote:
The warnings about not being able to pop because of low resources: That's always going to happen every time the client connects. It doesn't mean that there is a task that it can't pop it means that it won't try to pop a task of that type, should there be one, because there are not enough free resources. Quote:
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#155
|
|||
|
|||
Sorry. The issue is the same as EvilPenguin reported. For long programs (in my case I see it generally with programs two hours long) comskip never completes when launched by SJQ. Eventually the task times out and SJQ kills it, but that is two hours after the end of the program when comskip typically completes within a few seconds of the end time. If I instead have SJQ launch comskip indirectly by executing a batch file that in turn executes comskip, it runs for the normal duration and terminates on its own.
Unfortunately, due to my logging issue (mentioned in a separate post), I have no idea if comskip complains about anything under these circumstances. It does seem to actually do some commercial marking when this happens, so it is at least starting off okay. |
#156
|
||||
|
||||
Quote:
Code:
Thu Dec 03 12:02:44 EST 2009: Starting task with priority 5/1/10 Executing command line: "C:/Program Files/SageTV/SageTV/bmt.bat" "D:\tv\TheFreshPrinceofBelAir-TheBabyComesOut-1188853-0.mpg" Quote:
The client logs will be blank unless an error is encountered then it will log the error, but that's about all the client logs are used for. You must be running the latest client build (655) as there was a bug causing problems with this functionality prior to 655. Quote:
Quote:
Code:
if [IsObjMediaFile == true && $.IsFileCurrentlyRecording{} == false && $.GetShowTitle{} == "Seinfeld" ] { BLAH } Code:
if [IsObjMediaFile == true && $.GetShowTitle{} == "Seinfeld" && $.IsFileCurrentlyRecording{} == false ] { BLAH } Imagine a much more complicated rule block with lots of tests and you can start to see the gain that can be made.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#157
|
||||
|
||||
I cranked up comskip's logs to max and it doesn't give any indication why its hanging. Its working normally for about two hours and then all of the sudden it just sits there doing nothing until you kill it.
|
#158
|
|||
|
|||
Slugger,
I have complicated rule sets... after IsObjMediaFile == true should i then put all my fileexists after IsObjMediaFile ? Code:
if [IsObjMediaFile == true && $.IsTVFile{} == "true" && $.IsNotManualOrFavorite{} == "false" && $.IsFileCurrentlyRecording{} == "false" && $.GetNumberOfSegments{} == "1" && $.GetMediaTitle{} != "Not Recording" && $.GetAiringChannelNumber{} !="35" && $.GetAiringChannelNumber{} !="36" && FileExists != "%d%/%p%.qfix" && Filename =$ ".mpg" && FileExists != "c:\\oktoreboot.txt" && FileExists != "c:\\Stoprunning.txt"] { :RUNQLOADER "true" :PRIORITY 998 SJQFIXShow } Code:
//Set Manual Record Title if [IsObjMediaFile == true && $.IsTVFile{} == "true" && $.IsFileCurrentlyRecording{} == "false" && $.GetShowEpisode{} != "" && FileExists == "%d%/%p%.qfix" && Filename =$ ".mpg" && ($.GetMediaTitle{} =^ "Star Trek" || ($.GetMediaTitle{} == "Smallville" || ($.GetMediaTitle{} == "Law & Order" || ($.GetMediaTitle{} == "NCIS" || ($.GetMediaTitle{} == "Law & Order: Criminal Intent" || ($.GetMediaTitle{} == "The Dead Zone" || ($.GetMediaTitle{} == "Dark Angel" || ($.GetMediaTitle{} == "Heroes" || ($.GetMediaTitle{} == "Monk" || ($.GetMediaTitle{} == "Friday the 13th: The Series" || ($.GetMediaTitle{} == "Tales From the Darkside" || ($.GetMediaTitle{} == "The Outer Limits" || ($.GetMediaTitle{} == "Jake 2.0" || ($.GetMediaTitle{} == "Eureka" || ($.GetMediaTitle{} == "Criminal Minds" || ($.GetMediaTitle{} == "Law & Order: Special Victims Unit" || ($.GetMediaTitle{} == "Dancing With the Stars")))))))))))))))))] { :RUNQLOADER "true" :PRIORITY 248 _MANUALREC }
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 12-03-2009 at 01:21 PM. |
#159
|
|||
|
|||
Hmm... sounds like the task client threads created for chewing up the output died off. Let me try something... can you test a new task client build?
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#160
|
|||
|
|||
Quote:
Code:
if [IsObjMediaFile == true && ($.GetShowTitle{} == "X" || $.GetShowTitle{} == "Y" || $.GetShowTitle{} == "Z")] { } Code:
if [IsObjMediaFile == true && $.GetShowTitle{} =% "X|Y|Z"] { }
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sage Job Queue (SJQ) new release notifications | Slugger | Customization Announcements | 3 | 12-17-2009 09:59 AM |
Plugin: Sage Job Queue (SJQ) | Slugger | SageTV Customizations | 991 | 12-11-2009 03:52 PM |
Sage Job Queue Completed tasks problem | raffmanlt | SageTV Customizations | 2 | 08-18-2009 07:34 PM |
Comskip Monitor VS Sage Job Queue SJQ | personalt | SageTV Customizations | 6 | 03-02-2009 10:27 AM |
Plugin: SJQ v1.1.0RC1 Available - Testers Needed | Slugger | SageTV Customizations | 35 | 04-21-2008 08:12 AM |