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) GB-PVR Support (legacy) v
« Previous 1 … 214 215 216 217 218 … 1231 Next »
help with postprocessing batch file and contig.exe

 
  • 0 Vote(s) - 0 Average
help with postprocessing batch file and contig.exe
fluffykeith
Offline

Senior Member

Posts: 398
Threads: 69
Joined: Nov 2007
#1
2008-11-09, 07:52 PM
Hi

I have a post processing batch file and I try to run contig from it.

However sometimes contig seems to hang so I have another script to kill it.

I am not a batch file expert so this is what I've done :

this is the relevent bit of postprocessing:
date /t >> logs\postprocessing.log
time /t >> logs\postprocessing.log

call tidyprocesses.bat

echo Postprocessing.bat invoked on %1 recorded from channel %2 >> logs\postprocessing.log

echo contig >> logs\postprocessing.log
contig.exe "%1" >> logs\postprocessing.log

echo comskip >> logs\postprocessing.log
comskip %1

tidyprocesses.bat contains:
taskkill /im contig.exe /f
exit /B 0


What I get in the log file after a number of recordings is this:

04/11/2008
21:04
Postprocessing.bat invoked on "D:\Recordings\Nature Shock\Nature Shock_20081104_20002100.mpg" recorded from channel 5
contig
Postprocessing.bat invoked on "D:\Recordings\Im Alan Partridge\Im Alan Partridge_20081104_23400020.mpg" recorded from channel 6
contig
Postprocessing.bat invoked on "D:\Recordings\CSI Crime Scene Investigation\CSI Crime Scene Investigation_20081105_00000100.mpg" recorded from channel 20
contig
Postprocessing.bat invoked on "D:\Recordings\Im Alan Partridge\Im Alan Partridge_20081105_02150250.mpg" recorded from channel 6
contig

Whats happening?
As each recording comes along it looks like the postprocessing is just executing the middle bit - it doesn't print the date each time like I'd expect and it doesn't get past the contig command.

Have I missed something?

Cheers

Keith
Old broken setup - Zalman HD160+ box,  AMD Athlon 5400+, 3GB DDR2, Motherboard Gigabyte GA-M61P-S3
Hauppauge Nova-T PCI
Hauppauge Nova-S PCI
BlackGold Dual T2, S2 PCI
1x 2TB SATA
Windows 7 Pro
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2008-11-09, 11:18 PM (This post was last modified: 2008-11-10, 02:29 AM by pBS.)
it's the contig line..
you have to remember that incoming file names may or may not, contain quotes already..
[windows only supplies quotes if they are needed]
so to deal with it, use contig.exe "%~1" >> logs\postprocessing.log
the ~ removes all existing quotes, and add a pair..so you know you always have them, but also that you won't have to many...Smile [eg: ""show.mpg""]

or just remove the quotes from your line, if they need them they'll already be there..
contig.exe %1 >> logs\postprocessing.log
may also want to just include the tidyprocesses in the body instead of an extra batch file..
[add just the taskkill line]

i would use contig "%~dpn1.*" to catch all the files assoc. w/that show..Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
fluffykeith
Offline

Senior Member

Posts: 398
Threads: 69
Joined: Nov 2007
#3
2008-11-10, 10:36 PM
Thanks - I added "%~dpn1.*" seems a good idea.

I remember putting the taskkill in another batch file because it returns an error code which I wanted to ignore as I think it made the batch file bomb out. I'll give it another go and see what happens.

Thanks for the info.

Is there a handy website that contains these obsure batch extensions?

cheers

Keith
Old broken setup - Zalman HD160+ box,  AMD Athlon 5400+, 3GB DDR2, Motherboard Gigabyte GA-M61P-S3
Hauppauge Nova-T PCI
Hauppauge Nova-S PCI
BlackGold Dual T2, S2 PCI
1x 2TB SATA
Windows 7 Pro
fluffykeith
Offline

Senior Member

Posts: 398
Threads: 69
Joined: Nov 2007
#4
2008-11-21, 11:27 AM
This still didn't work form me.

Basically what seems to happen is that contig does not exit

I tried both these:

contig.exe "%~dpn1.*" >> logs\postprocessing.log

contig.exe %1 >> logs\postprocessing.log

The file is still fragmented so contig has not actually done anything except sit there stuck.

If I comment the line out the batch file works.

If I run the command on the command line it works ok.

Any suggestions?

Cheers

Keith
Old broken setup - Zalman HD160+ box,  AMD Athlon 5400+, 3GB DDR2, Motherboard Gigabyte GA-M61P-S3
Hauppauge Nova-T PCI
Hauppauge Nova-S PCI
BlackGold Dual T2, S2 PCI
1x 2TB SATA
Windows 7 Pro
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#5
2008-11-21, 01:08 PM
Big Grin
take a look here: http://forums.nextpvr.com/showthread.php...ontig+EULA
you're stumbling over the EULA
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
fluffykeith
Offline

Senior Member

Posts: 398
Threads: 69
Joined: Nov 2007
#6
2008-12-03, 08:25 PM
Thanks

I checked that thread and my registry and the setting alreaday set to 1 however I added it to the default settings as well.

You will know if its fixed soon !!!!
Old broken setup - Zalman HD160+ box,  AMD Athlon 5400+, 3GB DDR2, Motherboard Gigabyte GA-M61P-S3
Hauppauge Nova-T PCI
Hauppauge Nova-S PCI
BlackGold Dual T2, S2 PCI
1x 2TB SATA
Windows 7 Pro
mmatheny
Offline

Senior Member

Posts: 732
Threads: 113
Joined: May 2006
#7
2008-12-03, 08:46 PM
fluffykeith Wrote:Thanks - I added "%~dpn1.*" seems a good idea.

I remember putting the taskkill in another batch file because it returns an error code which I wanted to ignore as I think it made the batch file bomb out. I'll give it another go and see what happens.

Thanks for the info.

Is there a handy website that contains these obsure batch extensions?

cheers

Keith

http://viswaug.wordpress.com/2007/09/25/...tch-files/
Mike

PVRX2 1.3.11
Community Skin 3.2.4
Community Skin Plugin 3.2.2
Win7 RTM 7600 x32
Comcast Houston (cable co)
ECS 7050M-M2 V2
AMD Phenom 9550 QuadCore
4G RAM
BFG GeForce 9600GT 512mb
160g SATA II (OS)
500g SATA II (DATA)
LG GGC-H20LK Combo drive
Hauppauge WinTV HVR-2250
JVC RX-9010 RX
Samsung PN50A550
fluffykeith
Offline

Senior Member

Posts: 398
Threads: 69
Joined: Nov 2007
#8
2008-12-04, 12:54 PM
Thanks for the link Mike - very handy.

Hey look at that it works - I didnt update the registry field the same as the one in that thread - I already had that. But I did change the default. I checked the registry after and it had created another registry item 2-8-15-blah or something. But it has picked up the default I'd set - great.

Thanks everyone.
I'm slowly getting there - next thing is to automate video redo.

cheers

Keith
Old broken setup - Zalman HD160+ box,  AMD Athlon 5400+, 3GB DDR2, Motherboard Gigabyte GA-M61P-S3
Hauppauge Nova-T PCI
Hauppauge Nova-S PCI
BlackGold Dual T2, S2 PCI
1x 2TB SATA
Windows 7 Pro
mmatheny
Offline

Senior Member

Posts: 732
Threads: 113
Joined: May 2006
#9
2008-12-04, 01:29 PM
I think if you run it manually, it asks for acceptance, and when you accept it adds that registry setting automatically.
Mike

PVRX2 1.3.11
Community Skin 3.2.4
Community Skin Plugin 3.2.2
Win7 RTM 7600 x32
Comcast Houston (cable co)
ECS 7050M-M2 V2
AMD Phenom 9550 QuadCore
4G RAM
BFG GeForce 9600GT 512mb
160g SATA II (OS)
500g SATA II (DATA)
LG GGC-H20LK Combo drive
Hauppauge WinTV HVR-2250
JVC RX-9010 RX
Samsung PN50A550
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  file types of recorded TV paul1 3 3,745 2012-09-30, 05:20 PM
Last Post: sub
  Postprocessing and the recordings database shsw 1 1,532 2010-08-29, 04:46 PM
Last Post: sub
  No Data In the Recorded File zb1 5 2,326 2010-08-24, 01:08 AM
Last Post: zb1
  Path to file being recorded. brianj 5 2,393 2010-08-08, 10:58 PM
Last Post: brianj
  error: failure playing back file yonu 4 2,095 2010-07-12, 12:52 AM
Last Post: yonu
  UK Freesat Scan.cache File jeffers 3 2,112 2010-05-25, 10:34 PM
Last Post: jeffers
  3 AC3Filter instances when playing back a still recording TS file? jksmurf 3 1,963 2010-05-17, 12:30 AM
Last Post: jksmurf
  Recording stops at 4gb file size experiencebliss 5 2,450 2010-05-04, 02:54 AM
Last Post: pBS
  Hauppage HVR-950q, no file created when recording, no pause. donbrowne 5 2,082 2010-04-08, 04:03 PM
Last Post: sub
  ffdshow postprocessing on .ts file playback alibert 2 1,726 2010-04-05, 05:33 AM
Last Post: alibert

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

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

Linear Mode
Threaded Mode