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 … 27 28 29 30 31 … 125 Next »
PostProcessing.bat troubles: Clean, rename and retime

 
  • 0 Vote(s) - 0 Average
PostProcessing.bat troubles: Clean, rename and retime
netwerk23
Offline

Junior Member

Posts: 28
Threads: 6
Joined: Sep 2006
#1
2007-04-03, 04:07 PM
Hello!
Short Version
I need to run comskip/clean, rename and retime in the .bat but can't because something isn't right. Can anyone post an example of their postprocessing that includes these items (or the mplayer versions), please?

Long version
I can run the comskip and clean no problem. I then call rename, and it works fine. However, if I then run retime, it fails:

Unable to open file C:\Program Files\gbpvr"M:\CABLETV\Judge.mpg for reading.

Judge.mpg isn't right for the filename, hence it dies. This is my post processing, the relevant bits:

<lots of stuff>
call comclean %1
if EXIST "%~dpn1_original.mpg" del "%~dpn1_original.mpg"

:renamerstep
Rem now I rename the file
RenameRecording.exe %1 >>rename.log

Rem now I try to run retime to fix the VLC streaming bug
rem retime "%1.mpg" "%2.mpg" >>retime.log
:eof

What am I doing wrong? The only thing 'special' about my setup is that my directory structure is c:\Program Files\gbpvr (no devnz). I'm using the stock retime.bat file.
Thanks!
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#2
2007-04-03, 04:24 PM
Since you run RenameRecording before retime (btw, retime is rem'd out), the file name has probably changed, in other words %1 does not hold the name of the renamed file.

You might try running RenameRecording AFTER retime.
netwerk23
Offline

Junior Member

Posts: 28
Threads: 6
Joined: Sep 2006
#3
2007-04-03, 06:10 PM (This post was last modified: 2007-04-03, 06:48 PM by netwerk23.)
JavaWiz Wrote:Since you run RenameRecording before retime (btw, retime is rem'd out), the file name has probably changed, in other words %1 does not hold the name of the renamed file.

You might try running RenameRecording AFTER retime.

Yes, this occurred to me as well. I just reordered the steps and ran a test. The thing is that the renamer step never gets called. I watch the retime process running, then it ends, and that's it. The rename log file has no entry for the test instance, it's like it just ends there.

Does anyone else do the same series of steps, comfix/clean, retime, rename, and if so, can anyone post their postprocessing.bat file?

EDIT
I reread the wiki and it does state to insert the 'retime' part BEFORE any other processing occurs. However, it was my understanding that the retime was necessary because VLC doesn't like the way that comclean repackages the video file after removing the commercials. This would require retime to happen AFTER comclean. Any thoughts?
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#4
2007-04-03, 06:58 PM
Not sure if this is your problem, but if you have already renamed the file, it won't rename again. There are several versions of renamerecording at this point, so you need to be sure you have a version that works with the database you are using with GB-PVR (access or SQLite).

I moved to the AddEpisode program before an updated RenameRecording was released. You may want to give that a try.
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
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#5
2007-04-03, 07:00 PM
Quote:
Yes, this occurred to me as well. I just reordered the steps and ran a test. The thing is that the renamer step never gets called. I watch the retime process running, then it ends, and that's it. The rename log file has no entry for the test instance, it's like it just ends there.

If I recall, retime is a .bat file. In a script if you call a batch file by its name, control is transfered to the file. If you call it with a CALL statement, the batch file is executed, then control is returned to the calling batch file.

So, change the statement from:

retime "%1.mpg" "%2.mpg" >>retime.log
to:
CALL retime "%1.mpg" "%2.mpg" >>retime.log

That may do the trick.
netwerk23
Offline

Junior Member

Posts: 28
Threads: 6
Joined: Sep 2006
#6
2007-04-03, 07:20 PM (This post was last modified: 2007-04-03, 07:38 PM by netwerk23.)
David Wrote:Not sure if this is your problem, but if you have already renamed the file, it won't rename again. There are several versions of renamerecording at this point, so you need to be sure you have a version that works with the database you are using with GB-PVR (access or SQLite).

I moved to the AddEpisode program before an updated RenameRecording was released. You may want to give that a try.
Thank you, I will look into it.

JavaWiz Wrote:If I recall, retime is a .bat file. In a script if you call a batch file by its name, control is transfered to the file. If you call it with a CALL statement, the batch file is executed, then control is returned to the calling batch file.

So, change the statement from:

retime "%1.mpg" "%2.mpg" >>retime.log
to:
CALL retime "%1.mpg" "%2.mpg" >>retime.log

That may do the trick.
Actually, that sound totally reasonable. Retime is a batch file, so I will change postprocessing to CALL instead. Thanks!


OK, update:
After changing to CALL, the entire PP.bat is run. However, retime still errors out about not being able to open the file. So, I'm going to try to switch to the mplayer version and go from there.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#7
2007-04-03, 08:25 PM
Comcut is another alternative that does the cuts and a retime at the end.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Comskip, Comclean, Rename Recording, and Transcoding heath11 18 10,605 2008-03-27, 11:45 PM
Last Post: _Dude_
  Syntax errors running both BBDMUX and Mencoder versions of RETIME jksmurf 3 2,241 2008-02-19, 12:22 AM
Last Post: jksmurf
  Any rename utility that renames before recording? linfor 37 8,441 2008-01-04, 05:08 AM
Last Post: linfor
  How do I get SHowanalyzer to run automatically from the postprocessing linfor 2 1,465 2007-12-21, 08:05 PM
Last Post: linfor
  Postprocessing calling question dmporch 10 4,157 2007-12-02, 12:06 AM
Last Post: sgilani
  Convert dvr-ms to mpg in postprocessing.bat dmporch 0 1,290 2007-11-22, 03:15 PM
Last Post: dmporch
  PostProcessing.bat with comskip & RenameRecording Hinde01 10 4,827 2007-08-06, 01:07 AM
Last Post: Hinde01
  New User Graph Recorder Plugin Troubles fyodor 1 1,307 2007-08-01, 05:08 AM
Last Post: fyodor
  RenameRecording/PostProcessing heath11 4 1,726 2007-04-24, 05:33 PM
Last Post: David
  Using ParallelProcessing & PostProcessing together. Jim_ 19 7,027 2007-04-07, 06:16 PM
Last Post: zehd

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

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

Linear Mode
Threaded Mode