How do I install it?
Note that this install may not be perfect! This works for me, but
you may need to use some common sense, and you will probably have to
know a little bit about how to use a text editor. Before complaining
that my install sucks (which it does, and I know it - but it will
get better, I promise), try looking through the source and making an
attempt to fix the problem yourself. The biggest problem I forsee right
now is directory pointers: since for some reason PHP wasn't saving all of
my session variables, I had to hard code a lot of directories and paths
into the code. I tried to document them all below, but I may have missed
one or two.
-
Hardware
-
Install your tuner card, and make sure it's working
correctly.
-
Connect all the proper cables wherever they go. Audio
to your audio source, cable/antenna to the appropriate
places, etc.
-
Setup is going to be a personal thing: for my iMicro,
on a crappy 20" tv, I've found that running in 640x480
works the best. I haven't been able to test it on my
27" as it's a state or two away, but I'll update this
once I get a chance.
-
Software
-
Set up RobinHood, PHP, the PHP wrapper, BeScript,
Scheduler, smpeg, and hey as indicated in their
respective manuals. Once these all work, you may proceed.
-
In the directory that you specified in RobinHood as
your HTML root directory, copy the contents of the
zip file.
-
Start up VideoRecorder. Set the File Format and other
recording options. For the recording filename, note that
the directory seems to be hardcoded to /boot/home, so
whatever you name the output file will be saved in that
directory. The partition that my home directory is on didn't
have enough space for a decent sized recording, so I created
a link to a directory on another partition in my home directory,
and then put the filename after that link, and it worked fine.
Mine is set to "/video/tmpVideo.avi" - /video is a link to
"/Biggie/home/video". Remember this filename, as you will
have to change it later in other files. Close VideoRecorder.
-
The following files need to be modified in the following
ways. Yes, I know this is a pain, but I'm having some
issues with PHP not saving session variables, so bear
with me for now - this will hopefully be fixed in the
next release, and everything will be in one convienient
file.
-
<Base Dir>/inc/addRecurring.php
"/BeOS2/home/BeVo/php/config.ini" needs to be
changed to the location of your config.ini file.
-
<Base Dir>/inc/conflict.php
"/BeOS2/home/BeVo/php/config.ini" needs to be
changed to the location of your config.ini file.
-
<Base Dir>/php/config.ini
Modify these values to match your system.
-
<Base Dir>/php/listVideos.php
Modify the line \"video/mpeg\" to the mime-type
of the codec that you're using to record your
videos in, which is set in VideoRecorder.
-
<Base Dir>/php/playVideo.php
Change the "exec" line to match the resolution you
plan on running in.
-
<Base Dir>/scripts/checkRecord.php
Any line that begins with "exec", and contains
a hard coded path needs to be set to match your
system. Note that in the line containing
"mv /Biggie/home/video/tmpVideo.avi /Biggie/home/video/",
tmpVideo needs to be set to whatever you named your
file in VideoRecorder.
There is a string pointing to the config.ini file
that needs to be set here as well.
-
<Base Dir>/scripts/startVideoRecorder.sh
This needs to point to your VideoRecorder application.
-
<Base Dir>/scripts/bs/start.bs
Change "video/tmpVideo.avi" to whatever you put in
the file name field of VideoRecorder.
-
In the Scheduler options, set up a schedule to run
"php <path_to_scripts>/checkRecord.php" however
often you'd like: I've got mine set for every minute.
-
Testing
Open up your web browser, and point it at http://127.0.0.1/index.php
(change accordingly if you've installed into a different directory
under your web root). You should see the main menu. If that works,
chances are the rest of it will work as well. I'll get into testing
your actual config in the usage section.