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
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
Hauppauge Nova-T PCI
Hauppauge Nova-S PCI
BlackGold Dual T2, S2 PCI
1x 2TB SATA
Windows 7 Pro