2005-06-08, 09:57 PM
hi all.
just wondering, i use post processing bat to do some "post processing" that takes about half the time of the length of the recording to process.
What happens if another short recording takes place during this period and the batch file gets called a second time before its run completly the first time. are there any issues with this?
I think with my script setup there might be as i use a hard coded temporary file for my precesssing - as i want to be able to use the origional filename gbpvr generated for the recording so that it still appears in gbpvrs recording listing: see below:
[INDENT]set Bitrate=4000
copy %1 f:\gbconvert\buffer.mpg /Y
del /q %1
mencoder.exe "f:\gbconvert\buffer.mpg" -oac mp3lame -lameopts mode=2:cbr:br=128 -vf scale=480:576 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=%Bitrate% -ffourcc DIVX -o %1
del /q "f:\gbconvert\buffer.mpg"
exit[/INDENT]
Does anyone know how to do a sort of "if exists" option is possible, so that if one buffer file already exists, it instead uses another filename the second time the script runs....
Thanks in advance!!
Pete
just wondering, i use post processing bat to do some "post processing" that takes about half the time of the length of the recording to process.
What happens if another short recording takes place during this period and the batch file gets called a second time before its run completly the first time. are there any issues with this?
I think with my script setup there might be as i use a hard coded temporary file for my precesssing - as i want to be able to use the origional filename gbpvr generated for the recording so that it still appears in gbpvrs recording listing: see below:
[INDENT]set Bitrate=4000
copy %1 f:\gbconvert\buffer.mpg /Y
del /q %1
mencoder.exe "f:\gbconvert\buffer.mpg" -oac mp3lame -lameopts mode=2:cbr:br=128 -vf scale=480:576 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=%Bitrate% -ffourcc DIVX -o %1
del /q "f:\gbconvert\buffer.mpg"
exit[/INDENT]
Does anyone know how to do a sort of "if exists" option is possible, so that if one buffer file already exists, it instead uses another filename the second time the script runs....
Thanks in advance!!
Pete