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 … 16 17 18 19 20 … 125 Next »
Need Post Processing help

 
  • 0 Vote(s) - 0 Average
Need Post Processing help
Withbothfeet
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Dec 2006
#1
2007-01-06, 04:07 PM
What I am trying to do is have recorded live TV shows without commercials, start to finish, with an accurate timeline, renamed, etc...
I figure padding the recording by 1 min at the start and finish while recording, then using comskip, comclean, retime and rename would do the trick. But...

The doc's for retime show an example of:
move “%~dpn1.mpg” “%~dpn1_faulty.mpg”
retime “%~dpn1_faulty.mpg” “%~dpn1.mpg”
comskip %1
rectracker %1 > rectracker.log


Wouldn't this "retime" the video prior to removing commercials? That is fine as long as I can run it again after removing the commercials to again correct the timeline.

What I "think" will work is:
comskip %1
call comclean %1
move “%~dpn1.mpg” “%~dpn1_faulty.mpg”
retime “%~dpn1_faulty.mpg” “%~dpn1.mpg”
RenameRecording.exe -t %1 > rename.log


OR even

move “%~dpn1.mpg” “%~dpn1_faulty.mpg”
retime “%~dpn1_faulty.mpg” “%~dpn1.mpg”
comskip %1
call comclean %1
move “%~dpn1.mpg” “%~dpn1_faulty.mpg”
retime “%~dpn1_faulty.mpg” “%~dpn1.mpg”
RenameRecording.exe -t %1 > rename.log


The example's "%~dpn1.mpg" part confuses me, as the video files do not have "dpn1" in the file name. So I am not sure what that will do.

Any of you knowledgeable/guru's have an example for me to cut and paste?
Or direct me to a more favorable way to accomplish my desired results?
Or even direct me to a thread where this has been covered?

I am a GBPVR noob. Yes I did some searches but didn't really find what I was looking for.

Thanks in advance!

PS - I'm an infrastructure guy, not a programmer... be gentle with me. Smile
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#2
2007-01-06, 06:09 PM
I would start by running comskip during the recording in Parallelprocessing.bat
Then run comclean to remove the commercials. Next, retime it if necessary, then rename it.
Your parallelprocessing.bat will look like this:
Code:
comskip %1
CALL comclean %1
MOVE “%~dpn1.mpg” “%~dpn1_faulty.mpg”
RETIME “%~dpn1_faulty.mpg” “%~dpn1.mpg”
RENAMERECORDING.exe -t %1 > rename.log
This lets comskip finish almost immediately as the recording is finished, then comclean will remove the ads. You must have comclean outputting the file with the original gbpvr name, or the MOVE and RETIME won't find the file.
The %~dpn1 is the default original name of the show.
If comclean is renaming it, nothing will work, so the flow is like this:
Code:
comskip identifies commercials.
comclean cuts the commercials, renaming the uncut file to _original, and renaming the cut file to %~dpn1 (the original name).
You rename using the MOVE command.
retime does it's thing on the file, producing a retimed file, with the original name.
renamerecording gives it the actual show name.
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
Withbothfeet
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Dec 2006
#3
2007-01-07, 04:35 AM
Thanks reboot!
I'll give that a try.
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#4
2007-01-07, 09:31 AM
Many Batch files with have a %1 or %2 etc

“%~dpn1.mpg” simply (or difficultly) breaks up the Files spec passed into a batch file from a %1, so that it can be modifiyed. (eyes glossed over yet)

d=Drive
p=Path
n=Filename without the extension

Let's say the when a Batch runs, the first parameter receieved in the %1 was:

"c:\tv\Recorded\television_show.mpg"

Well, if I wanted to rename just the extension from .mpg to .avi for example I could use: “%~dpn1.avi” because %~dpn1 is really c:\tv\Recorded\television_show

Check out this great page for more information...

http://www.robvanderwoude.com/parameters.html
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Withbothfeet
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Dec 2006
#5
2007-01-07, 03:03 PM
Thanks for that explanation and link zehd. That cleared things up.

Reboot (or anyone else), I manually ran the parallelprocessing.bat file on a recording to test it out, but got a file name error when it gets to the MOVE “%~dpn1.mpg” “%~dpn1_faulty.mpg” portion of the process.

I assume thats where it fails, because it happens right after comclean.
Here it is:

Resulting cutpoints: 0:0:0 0:5:11 0:10:34 0:16:27 0:20:44
The filename, directory name, or volume label syntax is incorrect.
bbDMUX - version 1.9, by Brent Beyeler (beyeler@home.com)
speed increases by, Apachez and Christian Vogelgsang

Unable to open file C:\Program Files\devnz\gbpvr\⌠C:\Documents.mpg
bbDMUX - version 1.9, by Brent Beyeler (beyeler@home.com)
speed increases by, Apachez and Christian Vogelgsang

Unable to open file C:\Program Files\devnz\gbpvr\⌠C:\Documents.mpg
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.


The "gbpvr\⌠C:\Documents.mpg" part is what bothers me. That doesn't exist, nor is it the name of the file being processed.

Is comclean doing something that I need to change, adjust or tweak?

Any ideas?
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#6
2007-01-07, 05:25 PM
seems like it's messing up with your "Documents and Settings" folder (that would be your current folder in the dos-box?). how did your manually run it? from a dos box? try to drag&drop your testfile on your batch file, that should do fine
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#7
2007-01-07, 06:51 PM
The "%~dpn1.mpg" is the most recent recording done in gbpvr, thus your manual run fails, because you're running it on a file that doesn't exist according to the database.
Do a trial recording to test properly.
You can log everything by putting
Code:
> namehere.log
after each step.
eg. MOVE “%~dpn1.mpg” “%~dpn1_faulty.mpg” > move.log
Alternatively, you can change that line to read
Code:
RENAME “%~dpn1.mpg” “%~dpn1_faulty.mpg” /y
and it should also work.

In your failed example, it's looking for a recording named "DOCUMENTS.MPG" in your root C:/ folder.
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
Withbothfeet
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Dec 2006
#8
2007-01-07, 07:56 PM
Yeah K.S., I ran it from the "C:\Program Files\devnz\gbpvr" directory (in a DOS prompt).

Command syntax:
parallelprocessing.bat "C:\Documents and Settings\Username\My Documents\TV Shows\South Park\South Park_20070107_01000130.mpg"

And you are correct reboot... it wasn't the last thing I recorded. It was a randomly picked file for testing.

Any opinions between comskip and Show Analyzer? Is one better than the other?
I noticed that you (reboot) post to the SA forums. Is that your preference?
I am not having good luck (results) with comskip. Especially when trying to pre/post pad the recordings to make sure I get the show in it's entirety.
Partially because I just figured out it needs to be tuned in. :headslap:

Ok... time for test drive v7.3 build 233 SP9 Wink

parallelprocessing.bat v2.0:
comskip %1 > comskip.log
CALL comclean %1 > comclean.log
MOVE “%~dpn1.mpg” “%~dpn1_faulty.mpg” > move.log
RETIME “%~dpn1_faulty.mpg” “%~dpn1.mpg” > retime.log
RENAMERECORDING.exe -t %1 > rename.log

BBIAB Smile
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#9
2007-01-07, 08:28 PM
I prefer comskip, now that it's been developed and sooooo much easier to tune. Also runs seamlessly with gbpvr in parallel.
I use SA manually, on other stuff, but rarely.
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
Withbothfeet
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Dec 2006
#10
2007-01-07, 11:11 PM
reboot Wrote:I prefer comskip, now that it's been developed and sooooo much easier to tune. Also runs seamlessly with gbpvr in parallel.
I use SA manually, on other stuff, but rarely.

You call THIS easy? :eek:
« 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
  VOmskip build 111: supports live dvr-ms processing erik 3 1,723 2007-10-30, 03:57 PM
Last Post: sub
  Post Processing won't run my Script dgeezer 3 1,844 2007-10-22, 05:19 PM
Last Post: dgeezer
  Post processing Bat HELP atmassie 5 1,980 2007-02-15, 06:39 AM
Last Post: atmassie
  Need Advice...Creating Post Processing Bat homerjr43 1 1,496 2007-02-14, 01:32 AM
Last Post: dgeezer
  Please Help! Streamlining Post Processing MattBurchett 4 2,511 2006-08-19, 08:57 PM
Last Post: doggyfromplanetwoof
  Comskip, comclean2, and other processing. reboot 7 3,463 2005-12-01, 10:59 PM
Last Post: reboot
  Post Video Archive install lock-ups Thanatosil 3 1,941 2005-10-18, 04:15 PM
Last Post: Jeff
  post upgrade question / gbpvr and xrecord tevbill 3 1,357 2005-09-21, 07:55 PM
Last Post: tevbill

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

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

Linear Mode
Threaded Mode