NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) v
« Previous 1 … 111 112 113 114 115 125 Next »
SA, Comclean, RenameRecordings...

 
  • 0 Vote(s) - 0 Average
SA, Comclean, RenameRecordings...
Jere_Jones
Offline

Member

Posts: 118
Threads: 4
Joined: Oct 2004
#11
2005-08-18, 08:59 PM
You know, I thought the start /wait would surely work so I never even tested it. It works great if there are no arguments to pass, but not at all if there are. So, I started thinking about writting a stub program that would run SA and wait for it to finish before returning...

(cue drum roll)

Turns out that I already have! Just use the comskip proxy. What everyone here is trying to do is exactly why I wrote that silly little program in the first place. I just tried it and it worked as advertised.

Jere
DEATH TO ALL COMMERCIALS!!
http://www.dragonglobal.org/
Latest ShowAnalyzer Beta version: 0.7.5
Jere_Jones
Offline

Member

Posts: 118
Threads: 4
Joined: Oct 2004
#12
2005-08-18, 09:04 PM
reboot Wrote:I'll try that in my postprocessing.bat, thanks.
Another issue...I cannot get SA to run on two recordings that end at the same time. It only runs on one or the other, and there seems to be no distinct way it determines which one it picks. It doesn't seem to be alphabetic, it's not based on which recording was started first...I just don't know.
I have the horsepower here to run two (or even 3 or 4) instances of SA at the same time...is that an option?
This isn't SA's fault. It will run on as many files as it is told to run on.
reboot Wrote:Is there something different about SA's .txt file, and the old(er) versions of comskip's .txt file? Comclean always worked on comskip's output, and cut exactly at the same points as the .wme generated.
SA's output .txt file contains the same cutpoints as the .wme, but comclean doesn't cut anything properly...I'm not convinced this is a comclean issue, because I've tried multiple versions, all with the same results.
I think the difference may be that comskip (almost) never marks the begining of a recording as a commercial. SA starts with the assumption that the first frame is a commercial so often will mark it as such.
reboot Wrote:OK, something very strange just happened.
My two recordings finished.
SA didn't run at all.
Comclean errored out (as usual), because it couldn't find the .txt that SA didn't generate.
WMP opened up, and started playing the recording. I closed it, and it opened again, and started playing the second recording, then as soon as I closed WMP, renamerecordings worked.
WTF?
See my previous post for a possible solution.

Jere
DEATH TO ALL COMMERCIALS!!
http://www.dragonglobal.org/
Latest ShowAnalyzer Beta version: 0.7.5
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#13
2005-08-18, 09:04 PM
OK, so I use comskip proxy to call SA, instead of having the showanalyzer line in postprocessing.bat...correct?
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
Jere_Jones
Offline

Member

Posts: 118
Threads: 4
Joined: Oct 2004
#14
2005-08-18, 09:07 PM
jsteele Wrote:reboot

As an interim solution maybe fire at separate batch with comclean and renamerecordings off the scheduler? The results wouldn't be available for a while but they would be done at some point.

Another way MIGHT be to create a test.bat of zero length. Then compare the test file to the target file using "FC" and then test the errorlevel depending on the result of the compare. If the target file is zero and the test file is zero just loop around (or delay it) and test it again. When the target file is larger than 0 go ahead with the rest of the batch. I have not tried this but it might work.
If you're going to do this, make sure you turn off the live detection. Otherwise the .txt doesn't stay 0 byte for long.

Jere
DEATH TO ALL COMMERCIALS!!
http://www.dragonglobal.org/
Latest ShowAnalyzer Beta version: 0.7.5
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#15
2005-08-18, 09:12 PM
If comskip proxy runs SA after a recording finishes, will it run on ALL recordings that finish at the same time?
Is there a way to make it run on all recordings? (I often have 2 or 3 that end at the same time).

You're correct about comskip rarely marking the first frame as commercial, but when it does, comclean error's on the first cut, ignoring it, then proceeding with the rest of the cuts.

So, using comskip proxy, my postprocessing.bat should look like this:
Code:
comskip %1 > comskip.log
call comclean %1 >>comclean.log 2>>comclean.err
RenameRecordings %1 > renamerecordings.log
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
Jere_Jones
Offline

Member

Posts: 118
Threads: 4
Joined: Oct 2004
#16
2005-08-18, 09:15 PM
reboot Wrote:If comskip proxy runs SA after a recording finishes, will it run on ALL recordings that finish at the same time?
Is there a way to make it run on all recordings? (I often have 2 or 3 that end at the same time).
This is a GB-PVR issue. If it runs the postprocessor.bat on every file, then SA should be run on every file.

Jere
DEATH TO ALL COMMERCIALS!!
http://www.dragonglobal.org/
Latest ShowAnalyzer Beta version: 0.7.5
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#17
2005-08-18, 09:17 PM
I figured it should, but maybe if Sub drops into this thread he could clear that up for me? Big Grin
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
Jere_Jones
Offline

Member

Posts: 118
Threads: 4
Joined: Oct 2004
#18
2005-08-18, 09:18 PM
reboot Wrote:I figured it should, but maybe if Sub drops into this thread he could clear that up for me? Big Grin
Ah. I thought you were asking me. Ok, I'll crawl back into my hole now. Big Grin

Jere
DEATH TO ALL COMMERCIALS!!
http://www.dragonglobal.org/
Latest ShowAnalyzer Beta version: 0.7.5
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#19
2005-08-18, 09:20 PM
Any post processessing, whether running comskip or PostProcessing.bat, is serialized. If two shows finish at the same time, then one is processed first, and when that completes the second is processed.
jsteele
Offline

Senior Member

Posts: 434
Threads: 63
Joined: Dec 2004
#20
2005-08-18, 10:05 PM
reboot
----------------
Here's a way that will probably work. Apparently when SA is finished it places a line of text "FILE PROCESSING COMPLETE" at the top of the file so we can test for the presence of this text using "Find.exe".

Make the postprocesing.bat like this (there may be other things before this like RecordingsManager or something:

....
ShowAnalyzer %1

:test_file
find "FILE PROCESSING COMPLETE" %1
goto result%ERRORLEVEL%
exit

:result1
rem if the line is NOT in the file it will do this stuff
rem timeout.exe is part of the XP Resource Kit - free as I recall
rem you can set NNNN to the number of seconds to wait for SA to finish
rem once it times out it will go back and test the file again

timeout.exe NNNN

goto test_file

:result0
rem if the line is in the file then it will do the rest of your stuff

renamerecordings %1
rectracker %1
------------

I have not tried this but it should work. "Timeout.exe" is part of the XP Resource Kit and simply allows you to put the command processor to sleep for a while. In this case that timeout should be an approximation of the time it takes SA to run. You are probably better using a longer time as once it misses it's going to take the same amount of time on the next cycle too. So, if you set the timeout to 30 minutes and you miss by 10 seconds it will wait another 30 minutes.
ASUS A7V880, Athlon XP 3000+, 1024MB, 250GB (Prog/DB), 40GB (Buffer/Temp), 670GB SATA (Video Library), PVR150MCE Video (2), NEC DVD+/- RW, Liteon DVD, nVidia FX5600 AGP, Onboard AC 97 Audio, Hauppauge Remote, Girder, USBUIRT,802.11G WLAN, nVidia Platinum Decoders
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  renamerecordingS the..sleeper 1 1,661 2009-04-21, 08:36 PM
Last Post: David
  Comclean issues.. _Dude_ 9 4,178 2009-01-17, 03:29 PM
Last Post: tmschmal
  Comclean inconsistent rmorein 6 2,661 2008-05-02, 05:13 PM
Last Post: Carlito
  Comskip & Comclean...but logo removal? Questor 1 2,194 2008-03-29, 06:31 AM
Last Post: erik
  Comskip, Comclean, Rename Recording, and Transcoding heath11 18 10,776 2008-03-27, 11:45 PM
Last Post: _Dude_
  Trouble using Comclean - mplex1 not working Beerman 0 1,409 2007-11-12, 01:14 AM
Last Post: Beerman
  Another Newbie question!! Need help with ComSkip and Comclean bimmer16 4 2,130 2007-11-02, 11:55 PM
Last Post: bimmer16
  Comclean Not Working Anymore polar101 1 1,444 2007-08-08, 03:50 AM
Last Post: alpha1
  comclean individual show chewy747 2 1,523 2007-05-18, 01:49 AM
Last Post: chewy747
  Can you run ComClean manually SteveO 15 5,465 2007-03-28, 12:18 AM
Last Post: twelvepbrs

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode