Freevo

- User Documentation

# DVBConfig

You can use mplayer or xine with DVB.

Create a 'channels.conf', make sure no '/' are in the names (mplayer doesn't like that). Put it into the .mplayer (and .xine) directory in your home. Add your `TV_CHANNELS` configuration to the 'local_conf.py':

    TV_CHANNELS = [
        ( 'ard.de', 'ARD', 'Das Erste RB' ),
        ( 'zdf.de', 'ZDF', 'ZDF' ),
        ( 'ndr.de', 'NDR', 'NDR RB' ),
        ( 'rtl.de', 'RTL', 'RTL Television' ),
        ( 'sat1.de', 'SAT.1', 'SAT.1' ),
        ( 'rtl2.de', 'RTL 2', 'RTL2' ),
        ( 'prosieben.de', 'PRO 7', 'ProSieben' ),
        ( 'kabel1.de', 'KABEL 1', 'KABEL1' ),
        ( 'vox.de', 'VOX', 'VOX' ),
        ( 'n24.de', 'N24', 'N24' ),
        ( 'arte-tv.com', 'ARTE', 'arte' ),
        ( 'C3sat.de', '3SAT', 'Info 3sat' ),
        ( 'superrtl.de', 'Super RTL', 'Super RTL' ),
        ( 'kika.de', 'Kika', 'Doku KiKa' ) ]

The first line is the XMLTV name, the second the Freevo display name and the last the 'channels.conf' name. Use `tv_grab` and after that `tv_grab --query` to get a template for your configuration.

Now switch the VideoGroup to dvb. Add to your 'local_conf.py'

    VIDEO_GROUPS[0].group_type = 'dvb'

If you override in 'local_conf.py' the default `MPLAYER_ARGS` with your own values then be sure that there is a 'dvb' key present.

    MPLAYER_ARGS = { 'dvd'    : '-cache 8192',
                     'vcd'    : '-cache 4096',
                     'cd'     : '-cache 1024 -cdda speed=2',
                     'tv'     : '-nocache',
                     'ivtv'   : '-cache 8192',
                     'dvb'    : '-vf pp=de/fd -cache 1024',
                     'avi'    : '-cache 5000 -idx',
                     'rm'     : '-cache 5000 -forceidx',
                     'rmvb'   : '-cache 5000 -forceidx',
                     'default': '-cache 5000'
                     }

For recording change `VRC_CMD`:

    VCR_CMD = CONF.mplayer + ' -dumpstream -dumpfile %(filename)s "dvb://%(channel)s"'
    TV_RECORDFILE_SUFFIX = '.ts'

This will dump the stream to your disk, just as it is, without any further compression. A usual movie with a length of 90 min, will result in a file of around 3 GB. That is okay if you have a lot of free place and/or if you have just recorded the show for watching it once and then deleting it afterwards but if you want to keep the recording you probably want to transform it to a smaller format. To get an idea of how to achieve that, have a look on "TipsAndTricks".

last edited 2005-01-05 11:00:05 by JohnMolohan
current version: http://freevo.sourceforge.net/cgi-bin/doc/DVBConfig