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 … 1028 1029 1030 1031 1032 … 1231 Next »
what happens if....

 
  • 0 Vote(s) - 0 Average
what happens if....
gizzymo
Offline

Junior Member

Posts: 17
Threads: 7
Joined: Mar 2005
#1
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
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#2
2005-06-08, 10:26 PM
My coding is a little rusty, but this should work...
Test on non-critical recordings! Big Grin
Thus:
set Bitrate=4000
IF EXIST f:\gbconvert\buffer.mpg DO buffer2 ELSE DO buffer1

:buffer1
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"
GOTO end

:Buffer2
del /q %1
mencoder.exe "f:\gbconvert\buffer2.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\buffer2.mpg"
GOTO end

:end
exit
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
gizzymo
Offline

Junior Member

Posts: 17
Threads: 7
Joined: Mar 2005
#3
2005-06-08, 10:38 PM
works a treat! Thanks for that, its appreciated!!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



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

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

Linear Mode
Threaded Mode