[Index] [TitleIndex] [WordIndex

Site Index:


Freevo's recordserver is a helper program which is running in the background. It is a standalone persistent process that runs separately from the main freevo process that you see on your TV or monitor. It even does not have to be running on the same machine. Please be aware that it is a network application and your freevo machine should not have wide open access from the internet without a firewall limiting what ports outsiders can connect to. It takes care of your scheduled recordings and favorites. It creates the FXDFiles for the recorded shows and launches the recording application. You must provide the recordserver with the right command for recording. This is done via the variable VCR_CMD in local_conf.py. The recording command depends on the type of your TV card, so have a look at TVConfig for that.

Before you attempt to use the recordserver, you should make sure your TV card is already configured properly. If you can watch a tvshow successfully, you can try to setup the recordserver (The hard work is the TVConfig).

Note : If you open the TV Guide to test TV, take a show that is running at the moment. If you take a show that is still to come, freevo will try to schedule it for recording and as the recordserver is not yet running, you will receive an error.


You will have to tell freevo, where your recordings should be saved:

TV_RECORD_DIR = '/path/to/somedir'

Moreover you can/need change the following config options in local_conf.py :

TV_DATEFORMAT = '%e-%b' # Day-Month: 11-Jun
TV_TIMEFORMAT = '%H:%M' # Hour-Minute 14:05
TV_DATETIMEFORMAT = '%A %b %d %I:%M %p' # Thursday September 24 8:54 am

This is for the name freevo will give recorded files:

TV_RECORDFILE_MASK = '%%m-%%d %%H:%%M %(progname)s - %(title)s'

You can even use a recordserver which is running on a different machine. Just put its name or ip here instead of localhost:

TV_RECORD_SERVER_IP = 'localhost'

It is best when the the recordserver is run by the same user that is also running freevo. Otherwise you will probably get problems with permissions sooner or later. These options give you the possibility to change the uid and gid your recordserver is running with. If you want to run freevo or the recordserver as root, do so at your own risk.


This option tells the recordserver to start every recording X minutes before the scheduled start and also stop it X minutes later than scheduled. This is useful, when the times in the TV guide, are not hundred per cent right. It must be set to a value in seconds although at the moment it has only the precision of one minute.


Start manually

You can start the recordserver manually:

freevo recordserver start

And also stop it manually:

freevo recordserver stop

Start with initscripts

You probably want to have the recordserver running all the time in the background, so it is best if you start it by an initscript at boot time. It is then running independently from freevo, that means you can start and stop freevo, while the recordserver is persistent. The way how you start the recordserver with a initscript depends on your distribution. Maybe there are already scripts copied to the right place by your distributions installation tool, and you just have to edit them to your liking. There are some examples of such scripts in freevo/boot .

One thing to note is that the recordserver will be running as root. The recordserver uses mencoder (analogue) / mplayer (DVB) to record streams so copy/link your channels.conf into /root/.mplayer/ for it to tune your stations


If you emerged freevo from portage :

rc-update add freevo default


With the latest packages in Debian 4.1, most freevo-related services are started by default. To change the default settings, run `dpkg-reconfigure -p low freevo'.

Other distributions

In most distribution, one just has to copy a appropriate script to/etc/init.d/. After that create a link form/etc/rcX.d, where X stands for the runlevel in which you want the recordserver started. The default runlevel is usually 2. The link's name must be of the formSXXrecordserver, where S stands forstart scriptand XX gives a number in what order the scripts are to be called during the init process. The script itself can be one of the example scripts from the freevo package or just something as easy as:

/bin/su - freevo -c "freevo recordserver start"

which starts the recordserver with the rights of the user freevo.


Schedule Favorites

There are two ways to reschedule the favorites when you grab new xmltv listings. You can grab your listings with the freevo tv_grab helper. It will grab the listings, recache them and reschedule the favorites.

To use the tv_grab feature you need to have the following information in your local_conf.py: First the XMLTV file to read from, second what program to use to grab the listings, and third how many days information to grab. Here is an example of my DirecTV setup:

XMLTV_FILE = '/tmp/TV.xml'
XMLTV_GRABBER = '/usr/bin/tv_grab_na_dd'

After completeing the previous settings you need to schedule a cron job to grab the updates as needed, the following example runs at midnight:

0 0  * * *    root    freevo tv_grab > /dev/null

But sometimes it is not possible to grab the listings with the freevo tv_grab helper (if you use a custom script). Then you have to run the freevo reschedulefavorites helper :

freevo schedulefavorites

Of course you don't want to run it manually every day, Add the following example to your crontab, it will recache freevo tvguide (speedup) and reschedule the favorites every day at 3h55 am (I grab my listings at 2h00 am) :

55 03  * * *    root    freevo cache > /dev/null && freevo schedulefavorites > /dev/null

Note that, if the box running freevo is not up and running at that time, then 'cron' will not run the job: in this case you should install 'anacron' as well (see http://en.wikipedia.org/wiki/Anacron )

2014-02-15 05:47