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 … 26 27 28 29 30 … 125 Next »
Using ParallelProcessing & PostProcessing together.

 
  • 0 Vote(s) - 0 Average
Using ParallelProcessing & PostProcessing together.
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#1
2006-05-26, 10:05 PM (This post was last modified: 2006-10-26, 04:39 PM by Jim_.)
I've seen this come up from time to time, so I thought I'd share my batch file mods.
Adding these commands will allow you to have a PostProcessing.bat, and still use comskip "real-time" in ParallelProcessing.bat.
PostProcessing will remain idol, until parallel processing has finished. Smile

I’ve also included two versions of my PostUpdateEPG.bat,
I compact my gbpvr.mdb every evening (after the EPG update) using gbpvr_compact.exe.
Using “all” the included batch file mods, GBPVRRecordingService will only be restarted (and gbpvr.mdb compacted) if nothing is being recorded or post-processed.

ParallelProcessing.bat
Code:
C:
cd "C:\Program Files\devnz\gbpvr"
echo %2 >"%~n1.REC"
echo %2 >"%~n1.PaP.REC"
REM *** The lines above are the first lines in ParallelProcessing.bat ***

REM *** Channels W/O Commercials ****
REM if "%2" == "13" goto end:
REM if "%2" == "14" goto end:
comskip %1


REM *** The lines below are the last lines in ParallelProcessing.bat ***
:end
del "%~n1.REC"

PostProcessing.bat
Code:
C:
cd "C:\Program Files\devnz\gbpvr"
echo %2 >"%~n1.PoP.REC"
DEL "%~n1.PaP.REC"
:start
Timeout.exe 5
IF EXIST "%~n1.REC" goto start:
REM *** Start Normal PostProcessing.bat Operation ***


REM *** End normal PostProcessing.bat entries ***
DEL "%~n1.PoP.REC"

UpdateEPG.bat
Code:
C:
cd "C:\Program Files\devnz\gbpvr"
del "C:\Program Files\Devnz\GBPVR\*.REC"
REM *** The lines above are the first lines in UpdateEPG.bat ***

PostUpdateEPG.bat (compact after every EPG update)
Code:
C:
cd "c:\program files\devnz\gbpvr"
TimeOut 3600
:start
Timeout 60
if exist "*.REC" goto start:
gbpvr_Compact.exe >Compact.log

PostUpdateEPG.bat (compact only if nothing is being recorded or processed)
Code:
C:
cd "c:\program files\devnz\gbpvr"
TimeOut 3600
if not exist "*.REC" gbpvr_Compact.exe >Compact.log

TimeOut.exe
http://www.dynawell.com/support/ResKit/winnt.asp
gbpvr_compact
http://forums.gbpvr.com/showpost.php?p=1...ostcount=5
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#2
2006-05-27, 12:28 AM
Very slick! Does the compact program work on the new SQLite DB?
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#3
2006-05-27, 01:30 AM
David Wrote:Very slick! Does the compact program work on the new SQLite DB?

Thanks,

gbpvr_compact.
I don't believe so, but I'm not sure if the SQL database will need compacting anyway?
Gbpvr_compact is a UncleJohnsBand utility, should probably ask him if it needs updating for v97. When I tried v97.7 the access db was growing rather quickly, so it would be worth having again.

Jim
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#4
2006-05-29, 09:10 PM
I've updated the first post because I forgot to include the UpdateEPG.bat modification.
It deletes stray *.REC files that are left behind if a recording is canceled before it completes.
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#5
2006-05-29, 11:01 PM
Jim_ Wrote:Thanks,

gbpvr_compact.
I don't believe so, but I'm not sure if the SQL database will need compacting anyway?
Gbpvr_compact is a UncleJohnsBand utility, should probably ask him if it needs updating for v97. When I tried v97.7 the access db was growing rather quickly, so it would be worth having again.

Jim
I haven't moved to 97.07 yet, but hope to very soon. After waiting for the software recorder plugin to be converted, now I am wondering if a maintenance release will be coming soon so that I do not have to track down all the patches. It may be that the SQLite DB cleans up after itself better.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
Koenie
Offline

Senior Member

Posts: 356
Threads: 31
Joined: Aug 2005
#6
2006-05-31, 05:30 AM
I am using the 97.7 version for some time now and the SQL database stays constantly around 1.2 mB. I have the impression it makes GBPVR way more responsive. No need for databasecompression it seems.
Regards Koen,

GBPVR 1.4.7
AMD 780G with X2 BE2350, 2gb ram, LCD-TV, Win XP
PVR500, PVR150 & PVC150 MCE MediaMVP D3A, 2 networked clients
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#7
2006-06-30, 01:01 AM
Thought I’d share two more processing mod’s I’ve been using for a while now. Smile
A link for TimeOut.exe is in the first post.

The first one, used in PostProcessing.bat will delay RenameRecording until the file isn’t in use by GBPVR. This eliminates a problem where the file isn’t renamed (RenameRecording errors out) if you’re watching the show when postprocessing.bat is called.

PostProcessing.bat
Code:
:rename
timeout 30
move "%~dpnx1" "%~dp1-%~nx1"
if %ERRORLEVEL% == 1 goto rename:
move "%~dp1-%~nx1" "%~dpnx1"
del "%~dpn1.logo.txt"
RenameRecording -t %1 > rename.log

The ParallelProcessing.bat mod below will allow you to watch the commercials in a selected show, on a specific channel, while avoiding commercials on all the other shows on that channel. I use this one because I like watching “hobby” related commercials, but didn’t want to disable commercial detection for everything on that channel.

Your ComSkip files should be placed in a “Comskip” folder under “devnz\gbpvr” to use this mod. Each time you watch a show, the batch will add a txt file for that show in a “Processed” folder. If you decide you want to watch commercials for a show in the future, just move the appropriate txt file to the “Exclude” folder.
Or create a txt file in the Exclude folder using this example:
GunTec TV (CH-31).txt

ParallelProcessing.bat
Code:
%SystemDrive%
cd "%ProgramFiles%\devnz\gbpvr\comskip"
REM *** Exclude these shows from ComSkip processing ***
IF NOT EXIST "Exclude" MD Exclude
IF NOT EXIST "Processed" MD Processed
for /f "tokens=1 delims=_" %%a in ("%~n1") do SET Exclude=%%a (CH-%2).txt
IF EXIST "Exclude\%Exclude%" echo %date% %Time%>>"Exclude\%Exclude%"
IF NOT EXIST "Exclude\%Exclude%" echo %date% %Time%>>"Processed\%Exclude%"
IF EXIST "Exclude\%Exclude%" GOTO end:
comskip %1
:end
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#8
2006-10-06, 06:29 PM
I'm including this from post another thread. Because transcoding "selected" shows is a frequent request.

Quote:The problem there is I do NOT want to transcode every show I record. Only select ones.
<snip>
Adding this to your PostProcessing.bat will allow you to process only the (Name & Channel-specific) shows you select.

It will collect show names after they finish recording, in the “Exclude” folder.
If you want to process a show the next time its recorded, simply move its "txt" file from the Exclude folder to the “Process” folder. Or you can create the "TVShow (CH-#).txt" file manually after seeing a couple of examples.

If you prefer, you can test drive it. It wont do anything but collect show titles for future use, until you add a command to process, and place a "TVShow (CH-#).txt" file in the "process" folder.

PostProcessing.bat
Code:
CD /d “C:\Program Files\devnz\gbpvr”
REM *** Process specific shows ***
IF NOT EXIST "Exclude" MD Exclude
IF NOT EXIST "Process" MD Process
for /f "tokens=1 delims=_" %%a in ("%~n1") do SET TVShow=%%a (CH-%2).txt
IF EXIST "Process\%TVShow%" echo %date% %Time%>>"Process\%TVShow%"
IF NOT EXIST "Process\%TVShow%" echo %date% %Time%>>"Exclude\%TVShow%"
IF NOT EXIST "Process\%TVShow%" GOTO end:

[B]REM Your process commands go here![/B]
:end
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#9
2006-10-26, 03:43 PM
or you could just replace 'comskip %1' with 'start /w comskip %1' and it won't exit that batch till comskip is done, [which presumably means the recording is also done] and you could add the post batch filename to the end of the parallelprocessing.bat
and any other commands in there adjust to start with start /w ..

like:

start /w comskip %1
post.bat

Big Grin simplicity rules!
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#10
2006-10-26, 06:00 PM (This post was last modified: 2006-10-26, 06:06 PM by Jim_.)
pBS Wrote:or you could just replace 'comskip %1' with 'start /w comskip %1' and it won't exit that batch till comskip is done, [which presumably means the recording is also done] and you could add the post batch filename to the end of the parallelprocessing.bat
and any other commands in there adjust to start with start /w ..

like:

start /w comskip %1
post.bat

Big Grin simplicity rules!

Wouldn’t an even simpler way be to place all the commands in ParalleProcessing.bat without the “start /w” command? Wink

Some people like running cpu intensive (and other) commands using postprocessing.bat because post’s are called after the recording is complete, only one at a time, one after the other. But Post is called immediately after the recording finishes, and does not wait for parallel to close.
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I get SHowanalyzer to run automatically from the postprocessing linfor 2 1,491 2007-12-21, 08:05 PM
Last Post: linfor
  Postprocessing calling question dmporch 10 4,206 2007-12-02, 12:06 AM
Last Post: sgilani
  Convert dvr-ms to mpg in postprocessing.bat dmporch 0 1,295 2007-11-22, 03:15 PM
Last Post: dmporch
  PostProcessing.bat with comskip & RenameRecording Hinde01 10 4,876 2007-08-06, 01:07 AM
Last Post: Hinde01
  RenameRecording/PostProcessing heath11 4 1,728 2007-04-24, 05:33 PM
Last Post: David
  PostProcessing.bat troubles: Clean, rename and retime netwerk23 6 2,858 2007-04-03, 08:25 PM
Last Post: pastro
  PostProcessing.bat keeps launching WMP? volksman 4 2,164 2007-01-02, 01:32 PM
Last Post: volksman
  postprocessing.bat Michael Gentile 2 2,026 2006-03-24, 12:11 PM
Last Post: Michael Gentile
  I have no postprocessing.bat TrunkMonkey 9 2,767 2005-10-04, 08:06 PM
Last Post: rhuss
  ShowAnalyzer, Postprocessing.bat, and comclean? reboot 30 8,929 2005-08-01, 03:37 AM
Last Post: afriend1

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

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

Linear Mode
Threaded Mode