Hanging Workaround - PVR Runner

Kapitano kapitano72 at gmail.com
Sat Jan 26 14:47:25 EST 2013


On 1/26/2013 21:58 PM, dinkypumpkin wrote:
>
> That's a dud as well.  It ain't the compression, it's the container. 
> Maybe ditch the WinRAR?
>

Gah.

Okay, this is packaged with the nonportable evalation version of WinZip:
http://www.mediafire.com/?gedu93acep3cm3e

...this with the nonportable evaluation WinRAR:
http://www.mediafire.com/?rk2x8tepqccoaw9

...and this with 7zip:
http://www.mediafire.com/?rmfoakaaoi1a1oa

If *those* don't work, these are some unpackaged .exe script files:
PVR_Auto_02_Hours - http://www.mediafire.com/?9i19t9753nz9si0
PVR_Auto_04_Hours - http://www.mediafire.com/?d8g37d0cyemy4yc
PVR_Auto_06_Hours - http://www.mediafire.com/?j73bbww8s4quwac
PVR_Auto_08_Hours - http://www.mediafire.com/?lzndnuuw5i1hy2n
PVR_Auto_10_Hours - http://www.mediafire.com/?89zqtjsi3cocbvi
PVR_Auto_12_Hours - http://www.mediafire.com/?61yw8gxcg9r7kn8

PVR_Runner - http://www.mediafire.com/?lyw3ebxiedk1t7z

PVR_Runner vTask source code - http://www.mediafire.com/?1c46q0g1fcdf2dq

To make Run_PVR.bat, just create a text file in the root of drive C, 
name it "Run_PVR.bat", and paste the following into it:

cd\
c:
cd Program Files
cd get_iplayer
get_iplayer --pvr

Modify it as needed if you keep your GiP installation somewhere else.

And finally the ReadMe...is pasted below:

-----
PVR_Auto & PVR_Runner

This is a workaround for the problem of Get_iPlayer hanging when it 
receives bad streams, or an intermittant signal.

Both PVR_Auto and PVR_Runner call a DOS batch file called Run_PVR.bat, 
which in turn runs the GiP PVR once. If your GiP installation is not in 
C:\Program Files\get_iplayer\, or you want to customise the way it runs, 
you can modify Run_PVR.bat to suit.



If you run PVR_Auto_03_Hours.exe, it will call Run_PVR.bat once every 
three hours. Before each call, it will close down any and all CMD.EXE 
(ie. DOS) windows - including ones running GiP. Thus any GiP windows 
which have hung, will be closed, and then PVR run again.

If you run PVR_Auto_08_Hours.exe, it will call Run_PVR.bat every eight 
hours, and so on.

The PVR_Auto script will loop continiously until you close it in Task 
Manager, or switch off the computer.



PVR_Runner gives you more flexibility. First, it will ask you how many 
iterations to run before exiting - that is, how many times to run PVR. 
The default is 1.

Then it will ask you for the delay between iterations *in seconds*. That 
is, how long it will wait before running PVR again.

1800 seconds = half an hour
3600 seconds = one hour
5400 seconds = one and a half hours
7200 seconds = two hours
9000 seconds = two and a half hours
10800 seconds = three hours
14400 seconds = four hours
18000 seconds = five hours
21600 seconds = six hours

If you enter zero seconds, it will loop forever - or until you kill the 
program in Task Manager or shut down the computer.

I suggest you find a good delay time, calculate it in seconds, and put 
the number on a post-it note next to your computer.

PVR_Runner will not simply close DOS windows like PVR_Auto. If there is 
a DOS window open before it runs PVR, it will wait for up to N seconds. 
The value of N is the next number you enter. The default is 600 - that 
is, ten minutes. This should hopefully give GiP to finish downloads 
before PVR_Runner closes it.

Of course, if no DOS windows are open, it will not wait.

You might want to set PVR_Runner to run PVR every half hour, but wait 
for up to three hours before closing the DOS windows beforehand. 
Obviously it will not run a new PVR while waiting for the old PVR to 
exit. You can experiment with different settings.

The next question is the path of the Run_PVR.bat batch file. The default 
is C:\Run_PVR.bat. Change it if you want to keep the file somewhere else.

If you did *not* enter zero for the number of iterations - that is, if 
you told PVR_Runner to *not* loop forever - it will ask you for the 
delay between finishing the final iteration and shutting down the computer.

If you don't want the computer to shutdown, enter 0. If you *do* want it 
to shutdown, enter the delay in seconds. The default is 600 - ten minutes.

The purpose of the delay is to give you the chance to cancel the 
shutdown. You do this by clicking 'No' on the window which appears after 
the final iteration. To close down without waiting, click 'Yes'. If you 
do nothing, your computer will shutdown when the wait time expires.



This is a quick-and-dirty workaround of the problem of GiP hanging. 
Hopefully GiP will be developed in future to make this redundant. You 
are free to distribute the .EXE files as you wish, and I have included 
the .VXM source files, for if you want to view or edit them in the vTask 
scripting environment.

If you think I screwed up something badly, or you really need the 
default settings changed, you can contact me on kapitano72 at gmail.com. 
However, I'm a busy man, so I can't guarantee to help.



Kapitano
-----



More information about the get_iplayer mailing list