Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > VDR and Kaffeine

VDR and Kaffeine Discussion, VDR ATI/AMD Guide with latest Ubuntu's at Sharing receivers forum; This is my tut for Video disk recorder or vdr as it's known, Using ATI/AMD I would like to thank ...

Reply
 
LinkBack Thread Tools Display Modes
VDR ATI/AMD Guide with latest Ubuntu's
Old
  (#1)
cooler
Member
 
cooler's Avatar
 
Offline
Posts: 38

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 98
Magic: 12 / 3193
Experience: 94%

Thanks: 7
Thanked 13 Times in 7 Posts
Join Date: Jan 2007
VDR ATI/AMD Guide with latest Ubuntu's - 29-April-2011, 01:49

This is my tut for Video disk recorder or vdr as it's known, Using ATI/AMD

I would like to thank everyone who have contributed towards this goal and the previous tutorials from which I learnt a lot. You know who you are, it would not be appropriate to name anyone since am bound to forget someone out. So all you out there, Thanks.

First before we began I like to say that I take no responsibility what so ever and you follow this project at your own risk, should anything goes wrong. This project is suitable for hobbyists and must be attempted if you are competent enough to build necessary parts, and not all work is covered in this project and some Linux understating is a must, as well as some common sense.

let's look at hardware I used, I chose ATI based budged rig for my HD media PC.

I used following inventory

Antec 2480 case with 380w PSU: You can choose anything
Gigabyte ga-ma78gm-us2h: This board is very good as well as 2oz copper it has very easy over-clocking utility with onboard ATI Radion HD3200 with hdmi build in. Plus many more features.
DDR2 800mhz memory: at least 1 gig is need but 2 gig recommended.
Amd Phenom X3 8450 2.1Ghz: This was not such a good choice, but at a time being on budged it was best I could afford, but I recommend buying anything that is above 2.5Ghz even if it is dual core, if you intend to watch HD content
500gig or above HDD: Large size Needed if you intend to keep recordings.
HD TV: Anything between 32 to 50 with hdmi
DVD-drive: choose any
Hauppauge WinTV NOVA-HD-S2:

The above are some of the hardware I used you can choose any you like as long you can get drivers up and running, you should be fine with this project.

Software .
This guide is somewhat updated and works on Ubuntu Karmic 9.10, Lucid 10.04 and Maverick 10.10. We will be using developer vdr version 1.7.17 which has true colour support when until a Plugin is available. There are many Plugins available for vdr you can choose what you want to use but for this guide we will use very basic set of Plugins to get you going.

You should be able to install the required Ubuntu OS and get sound working through HDMI on your own and will not be covered in this guide.

Once you have you os running and you are happy with it, get yourself over to ATI driver wiki here:http://wiki.cchtml.com/index.php/Ubu...dex.php/Ubuntu and install the driver for you ati card. Before rebooting when you have generated your xorg.conf file edit and use following settings.

Sudo gedit /etc/X11/xorg.conf
Code:
# xorg.conf (X.Org X Window System server configuration file) 
# 
# This file was generated by dexconf, the Debian X Configuration tool, using 
# values from the debconf database. 
# 
# Edit this file with caution, and see the xorg.conf manual page. 
# (Type "man xorg.conf" at the shell prompt.) 
# 
# This file is automatically updated on xserver-xorg package upgrades *only* 
# if it has not been modified since the last upgrade of the xserver-xorg 
# package. 
# 
# If you have edited this file but would like it to be automatically updated 
# again, run the following command: 
#   sudo dpkg-reconfigure -phigh xserver-xorg 

Section "ServerLayout" 
	Identifier     "Default Layout" 
	Screen      0  "aticonfig-Screen[0]-0" 0 0 
EndSection 

Section "Files" 
EndSection 

Section "Module" 
EndSection 

Section "ServerFlags" 
	Option	    "Xinerama" "off" 
EndSection 

Section "InputDevice" 
	Identifier  "Generic Keyboard" 
	Driver      "kbd" 
	Option	    "XkbRules" "xorg" 
	Option	    "XkbModel" "pc105" 
	Option	    "XkbLayout" "gb" 
	Option	    "XkbOptions" "lv3:ralt_switch" 
EndSection 

Section "InputDevice" 
	Identifier  "Configured Mouse" 
	Driver      "mouse" 
	Option	    "CorePointer" 
EndSection 

Section "Monitor" 
	Identifier   "aticonfig-Monitor[0]-0" 
	Option	    "VendorName" "ATI Proprietary Driver" 
	Option	    "ModelName" "Generic Autodetecting Monitor" 
	Option	    "DPMS" "true" 
EndSection 

Section "Monitor" 
	Identifier   "0-DFP2" 
	Option	    "VendorName" "ATI Proprietary Driver" 
	Option	    "ModelName" "Generic Autodetecting Monitor" 
	Option	    "DPMS" "true" 
	Option	    "PreferredMode" "1280x720" 
	Option	    "TargetRefresh" "60" 
	Option	    "Position" "0 0" 
	Option	    "Rotate" "normal" 
	Option	    "Disable" "false" 
EndSection 

Section "Monitor" 
	Identifier   "0-DFP1" 
	Option	    "VendorName" "ATI Proprietary Driver" 
	Option	    "ModelName" "Generic Autodetecting Monitor" 
	Option	    "DPMS" "true" 
	Option	    "PreferredMode" "1280x720" 
	Option	    "TargetRefresh" "60" 
	Option	    "Position" "0 0" 
	Option	    "Rotate" "normal" 
	Option	    "Disable" "false" 
EndSection 

Section "Device" 
	Identifier  "aticonfig-Device[0]-0" 
	Driver      "fglrx" 
	Option	    "Monitor-DFP1" "0-DFP1" 
	BusID       "PCI:1:5:0" 
EndSection 

Section "Screen" 
	Identifier "aticonfig-Screen[0]-0" 
	Device     "aticonfig-Device[0]-0" 
	DefaultDepth     24 
	SubSection "Display" 
		Viewport   0 0 
		Depth     24 
	EndSubSection 
EndSection
Install this firmware ONLY if you have a Hauppauge WinTV NOVA-HD-S2
S2-API is the driver standard that will work out of the box starting with kernels 2.6.28. you will not need to install the driver but firmware is still needed.
Code:
 sudo -s
apt-get install unrar -y
rm /lib/firmware/dvb-fe-c*
cd /usr/local/src
wget http://www.hauppauge.de/software/mce/88x_2_122_26109_WHQL.zip
unzip -jo 88x_2_122_26109_WHQL.zip Driver88/hcw88bda.sys
dd if=hcw88bda.sys of=dvb-fe-cx26109.fw skip=75504 bs=1 count=32501
cp dvb-fe-cx26109.fw /lib/firmware/
rm /lib/firmware/dvb-fe-cx24116.fw
ln -s /lib/firmware/dvb-fe-cx26109.fw /lib/firmware/dvb-fe-cx24116.fw
Reboot
You know you have the drivers installed and running when you see under
/dev/dvb/adapter0/ follwing.
Code:
 crw-rw----+ 1 root video 212, 1 2009-03-15 16:22 demux0
crw-rw----+ 1 root video 212, 2 2009-03-15 16:22 dvr0
crw-rw----+ 1 root video 212, 0 2009-03-15 16:22 frontend0
crw-rw----+ 1 root video 212, 3 2009-03-15 16:22 net0
w_scan: Scan util
An English Howto for w_scan can be found here
The latest w_scan can be found here

Time to test your hardware is working
Open the terminal and type.
Code:
 cd Desktop
wget http://wirbel.htpc-forum.de/w_scan/w_scan-20110306.tar.bz2
tar jxvf w_scan-20110306.tar.bz2
cd w_scan-20110306
cp w_scan /usr/local/bin/
mkdir /etc/vdr
# Next line will scan dvb-s and dvb-s2 channels on Astra1
w_scan -fs -s S19E2 -o7 >> /etc/vdr/channels.conf
If you see a list of channels being scanned, your hardware is working.


You can skip this step if you want, as xine-lib doesn't support VAAPI at the moment

XVBA
Is a Video acceleration for ATI cards to use VAAPI
Down load the latest libva1 deb package from here if needed.
http://www.splitted-desktop.com/~gbe...bva/pkgs/i386/
http://www.splitted-desktop.com/~gbeauchesne/libva/
and xvba from here
http://www.splitted-desktop.com/~gbe...ne/xvba-video/

cd in to the download dir and install it
cd /usr/local/src
mkdir libva
cd libva
[/code]
you can directly build packages from the extracted libva directory:
Code:
 
sudo -s
wget http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/i386/libva1_0.32.0-1+sds2_i386.deb
wget http://www.splitted-desktop.com/~gbeauchesne/xvba-video/xvba-video_0.7.8-1_i386.deb
wget http://www.splitted-desktop.com/~gbeauchesne/libva/libva_0.32.0-1+sds2.tar.gz 

tar xivf libva_0.32.0-1+sds2.tar.gz
cd libva-0.32.0
dpkg-buildpackage -rfakeroot -uc -us
cd ../ 
dpkg -i libva1_0.32.0-1+sds2_i386.deb 
dpkg -i libva1-dbg_0.32.0-1+sds2_i386.deb 
dpkg -i libva-dev_0.32.0-1+sds2_i386.deb 
dpkg -i libva-driver-i965_0.32.0-1+sds2_i386.deb 
dpkg -i xvba-video_0.7.8-1_i386.deb
You have xvba and vaapi installed when you type in terminal#
vainfo and you should see
Code:
 vainfo 
libva: libva version 0.32.0-sds2 
Xlib:  extension "XFree86-DRI" missing on display ":0.0". 
libva: va_getDriverName() returns 0 
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so 
libva: va_openDriver() returns 0 
vainfo: VA API version: 0.32 
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8 
vainfo: Supported profile and entrypoints 
      VAProfileH264High               :	VAEntrypointVLD 
      VAProfileVC1Advanced            :	VAEntrypointVLD
FFmpeg x264
This little piece of software is part or the better known VLC
We are about to compile our own. You can find more info on HOWTO: Install and use the latest FFmpeg and x264 more info on compiling x264

Code:
 sudo apt-get remove ffmpeg x264 libx264-dev
Get all of the packages you will need to install FFmpeg and x264 (you may need to enable the universe and multiverse repositories):

Code:
 sudo apt-get update
sudo apt-get install build-essential git-core checkinstall yasm texi2html \
    libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev \
    libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev \
    libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev
Install x264
Code:
 cd /usr/local/src
git clone git://git.videolan.org/x264
cd x264
./configure --enable-pthread --enable-shared
make
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
    awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
    --fstrans=no --default
Install FFMPEG
Code:
 cd /usr/local/src
sudo -s
apt-get build-dep ffmpeg
rm -rf /usr/include/ffmpeg
sudo rm /usr/local/bin/ffmpeg
apt-get install build-essential libmp3lame-dev libfaad-dev libxvidcore4-dev 
apt-get install mercurial cvs subversion libncurses-dev 
apt-get install autoconf libtool automake pkg-config gettext libfaac-dev 
apt-get install liba52-0.7.4-dev libvorbis-dev zlib1g-dev libpng12-dev libx11-dev libxv-dev libasound2-dev
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg/
#in next line if you have trouble compiling it try removing --enable-shared
./configure --prefix=/usr --enable-gpl --enable-nonfree --enable-postproc --enable-libmp3lame --enable-libvorbis --enable-pthreads --enable-libx264 --enable-libtheora enable-libfaac --enable-libxvid --enable-shared

make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no \
    --deldoc=yes --fstrans=no --default

ldconfig -v
Xine-Lib 1.2 CVS

Hopefully there might be a patch in the future for XVBA to use VAAPI (bit like VDPAU) only better which will reduce the cpu usage and power consumption to handle HD Media. Or if the the project gets moved to Mplayer.

Code:
 cd /usr/local/src
apt-get install libcdio-dev libvcdinfo-dev
hg clone http://hg.debian.org/hg/xine-lib/xine-lib-1.2
cd xine-lib-1.2
Add windows codecs 
wget http://www8.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
tar xivf essential-20071007.tar.bz2
mv essential-20071007 /usr/local/lib/win32
ln -s /usr/local/lib/win32 /usr/local/lib/codecs
./autogen.sh --prefix=/usr --with-external-ffmpeg --disable-dxr3 --enable-w32dll --with-w32-path=/usr/local/lib/win32
make -j3
checkinstall --fstrans=no --install=yes --pkgname=libxine2-dev --pkgversion "1.2.svn`date +%Y%m%d`-12ubuntu3"
ldconfig -v
If make fails then edit gedit /usr/local/src/xine-lib-1.2/src/audio_dec Look for -ldts_pic and add -lm after it.

Xine-UI

Code:
 cd /usr/local/src
apt-get install libxt-dev
# WARNING! We're going to install LIRCD and with this you can configure your remote if you want it used through LIRCD
apt-get install lirc lirc-modules-source lirc-x liblircclient-dev
wget http://home.vrweb.de/~rnissl/xine-ui-cvs-20090617220000.tar.bz2
tar jxvf xine-ui-cvs-20090617220000.tar.bz2
cd xine-ui
./autogen.sh --prefix=/usr --enable-vdr-keys
make
make install

If you get error edit the file in question and remove duplicate menu entry
Backup Your System
At this stage I strongly suggest you backup your system in-case anything goes wrong you can recover it. You can use this step at any-time in the guide, but a must at the end too and save it to dvd so in-case of loss you can easily get your system back.

Code:
 
sudo su
cd /
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys --exclude=/media /
At the end you will get an a tar exit error or something but that is normal and you should have file named backup.tgz in your roor folder.  To restore type at root
tar xvpfz backup.tgz -C /
WARNING: this will overwrite every single file on your partition with the one in the archive.
Just make sure that, before you do anything else, you re-create the directories you excluded:
Code:
mkdir proc
mkdir lost+found
mkdir mnt
mkdir sys
etc...
And when you reboot, everything should be the way it was when you made the backup!
Please be careful with the backup file.
More info about this and how it works can be found here: http://ubuntuforums.org/showthread.php?t=35087


Lets Continue and configure the Hauppauge remote control that comes with the NOVA HD-S2
Code:
sudo dpkg-reconfigure lirc
Select Hauppauge Nova-T 500, press next
1.Select None, press next
2.Select something ending with --event-ir, press ENTER
mine looks like this:
/dev/input/by-path/pci-0000:01:0a.0--event-ir

Either the Nova-T 500 remote is not identical to the Nova-HD-S2 one
or the config files for the Nova-T 500 are buggy, but some 10 keys were dead.
Create the next 5 files to have a fully working Hauppaugge Nova-HD-S2 RCU

The following file is ONLY for the Hauppaugge Remote that comes with the NOVA-HD-S2.If your remote is not the one that comes with the Hauppagge S2-HD check this for help.
Code:
 sudo gedit /etc/udev/rules.d/55-local.rules
Add to it
Code:
KERNEL=="event*", ATTRS{vendor}=="0x14f1", SYMLINK="input/irremote"
The next file will ensure lirc has full access to your Hauppaugge Remote
Code:
sudo gedit /usr/share/hal/fdi/preprobe/20thirdparty/10-ignore-cx88-ir.fdi
and add
Code:
<deviceinfo version="0.2">
−
<device>
−
<match key="info.product" contains_ncase="cx88 IR">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>
The next 4 files will basically leave the remote that came with your Hauppaugge NOVA-HD-S2 fully configured
with all keys working as they should
Code:
mkdir -p /etc/vdr/plugins
sudo gedit /etc/vdr/keymacros.conf
Code:
# Remote control key macros for VDR
# Format:
# macrokey  key1 key2 key3...
# macrokey  @plugin key1 key2 key3...
# See man vdr(5)

Red       Recordings
Green     Schedule
Yellow    Info
Blue      Timers
sudo gedit /etc/vdr/remote.conf
Code:
LIRC.Up         ArrowUp
LIRC.Down       ArrowDown
LIRC.Left       ArrowLeft
LIRC.Right      ArrowRight
LIRC.Ok         Enter
LIRC.0          0
LIRC.1          1
LIRC.2          2
LIRC.3          3
LIRC.4          4
LIRC.5          5
LIRC.6          6
LIRC.7          7
LIRC.8          8
LIRC.9          9
LIRC.Menu       NextSong
LIRC.Back       BackExit
LIRC.Red        Red
LIRC.Green      Green
LIRC.Yellow     Yellow
LIRC.Blue       Blue
LIRC.Info       Menu
LIRC.Stop       Stop
LIRC.Record     Record
LIRC.Play       Play
LIRC.Pause      Pause
LIRC.FastFwd    Fwdwind
LIRC.FastRew    Rewind
LIRC.PrevChannel PrevCh
LIRC.Volume+    VolumeUp
LIRC.Volume-    VolumeDown
LIRC.Mute       Mute
LIRC.Audio      Text
LIRC.Subtitles  Sub
LIRC.Channels   TV
LIRC.Setup      PrevSong
LIRC.Schedule   Guide
LIRC.Recordings Videos
LIRC.Schedule   Pictures
LIRC.Power 	Power
KBD.Up         00000000001B5B41
KBD.Down       00000000001B5B42
KBD.Menu       000000000000006D
KBD.Ok         000000000000000D
KBD.Back       000000000000007F
KBD.Left       00000000001B5B44
KBD.Right      00000000001B5B43
KBD.Red        000000001B5B5B41
KBD.Green      000000001B5B5B42
KBD.Yellow     000000001B5B5B43
KBD.Blue       000000001B5B5B44
KBD.0          0000000000000030
KBD.1          0000000000000031
KBD.2          0000000000000032
KBD.3          0000000000000033
KBD.4          0000000000000034
KBD.5          0000000000000035
KBD.6          0000000000000036
KBD.7          0000000000000037
KBD.8          0000000000000038
KBD.9          0000000000000039
KBD.Play       000000001B5B5B45
KBD.Pause      0000001B5B31377E
KBD.Stop       0000001B5B31387E
KBD.Record     0000001B5B31397E
KBD.FastFwd    0000001B5B32307E
KBD.FastRew    0000001B5B32317E
KBD.Power      000000000000000A
KBD.Channel+   000000000000002B
KBD.Channel-   000000000000002D
KBD.Volume+    000000001B5B317E
KBD.Volume-    000000001B5B347E
KBD.Mute       0000000000000073
KBD.Audio      0000000000000061
sudo gedit /etc/lirc/lircd.conf
Code:
# brand:                       Hauppauge NOVA-HD-S2
# model no. of remote control: Hauppage NOVA-HD-S2 Snowboard Shape Silver over Black
#

begin remote

 name  NOVA-HD-S2
  bits           16
 eps            30
 aeps          100

 one             0     0
 zero            0     0
  pre_data_bits   16
  pre_data       0x8001
  gap          133325
  toggle_bit_mask 0x8001001C

    begin codes
         Pictures                 0x016F
         Go                       0x0161
         Text                     0x0184
         TV                       0x0179
         Videos                   0x0189
         Music                    0x0188
         Guide                    0x016D
         Radio                    0x0181
         ArrowUp                  0x0067
         ArrowDown                0x006C
         ArrowLeft                0x0069
         ArrowRight               0x006A
         Enter                    0x001C
         BackExit                 0x00AE
         Menu                     0x008B
         PrevCh                   0x019C
         Mute                     0x0071
         VolumeUp                 0x0073
         VolumeDown               0x0072
         ChannelUp                0x0192
         ChannelDown              0x0193
        Record                   0x00A7
         Stop                     0x0080
         Play                     0x00CF
         Pause                    0x0077
         Sub                      0x0172
         Power                    0x0074
         Rewind                   0x00A8
         Fwdwind                  0x00D0
         Sleep                    0x008E
         NextSong                 0x00A3
         PrevSong                 0x00A5
         1                        0x0002
         2                        0x0003
         3                        0x0004
         4                        0x0005
         5                        0x0006
         6                        0x0007
         7                        0x0008
         8                        0x0009
         9                        0x000A
         0                        0x000B
         Red                      0x018E
         Green                    0x018F
         Yellow                   0x0190
         Blue                     0x0191

 
 end codes

end remote
sudo gedit /etc/lirc/hardware.conf
Code:
REMOTE="Hauppauge NOVA-HD-S2"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
# Next 2 lines will work as long as you have just 1 remote 
#Both the event and the by-path value can change so this way works fine
#TEMPIREVENT=`ls /dev/input/by-path/ |grep event-ir`
#REMOTE_DEVICE="/dev/input/by-path/$TEMPIREVENT"
#Next line ONLY if you have the Hauppage NOVA-S2-HD remote control otherwise # and un# the other two before
REMOTE_DEVICE="/dev/input/irremote"
REMOTE_LIRCD_CONF="/etc/lircd.conf"
REMOTE_LIRCD_ARGS=""
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
START_LIRCMD=""
LOAD_MODULES=""
LIRCMD_CONF=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
From the terminal run irw
and press keys on your remote control, you should see codes as you press keys.

VDR 1.7.17
Now we move on to vdr developer version.

First we create the daemon script
/etc/init.d/vdr
Code:
sudo -s
touch /etc/init.d/vdr
chmod 755 /etc/init.d/vdr
gedit /etc/init.d/vdr
Paste following and save.
Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides:          VDR
# Required-Start:    $network
# Required-Stop:     $network
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Description:       Start, Stop or Restart VDR
### END INIT INFO 

# Shell functions sourced from /etc/rc.status:
set -e

# Reset status of this service
# rc_reset

# 
case "$1" in
    start)
        echo -n "Starting VDR "
                /var/bin/runvdr >> /var/log/vdr.log &
        # Remember status and be verbose
        ;;
    stop)
        echo -n "Shutting down VDR "
                killall runvdr
                killall vdr
        # Remember status and be verbose
        ;;
    restart)
        echo -n "Restart VDR "
        $0 stop
        $0 start 

        # Remember status and be quiet
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac
# rc_exit
exit 0
Now we will download and compile VDR 1.7.17 with Extensions-Patch
[code]
cd /usr/local/src
apt-get install libfreetype6-dev libfontconfig1-dev libjpeg62-dev libcap-dev libncurses5-dev libncursesw5-dev liba52-0.7.4-dev libasound2-dev
apt-get build-dep vdr
wget ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.17.tar.bz2
tar xivf vdr-1.7.17.tar.bz2
ln -s vdr-1.7.17 vdr
wget http://copperhead.htpc-forum.de/downloads/extensionpatch/extpngvdr1.7.17v1b9.diff.gz
mv extpngvdr1.7.17.tgz /usr/local/src
tar xivf extpngvdr1.7.17.tgz
cd vdr
patch -p1 < ../extpngvdr1.7.17v1b9.diff
sudo gedit /usr/local/src/vdr/Make.config

Copy and paste the following in the Make.config
Code:
#
# User defined Makefile options for the Video Disk Recorder
#
# Copy this file to 'Make.config' and change the parameters as necessary.
#
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: Make.config.template 2.1 2009/01/18 10:46:13 kls Exp $

### The C compiler and options:

CC       = gcc
CFLAGS   = -g -O2 -Wall

CXX      = g++
CXXFLAGS = -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses

ifdef PLUGIN
CFLAGS   += -fPIC
CXXFLAGS += -fPIC
DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
endif

### The directory environment:

#DVBDIR   = /usr/local/src/s2-liplianin/linux
#DVBDIR   = /usr/src/v4l-dvb/linux
MANDIR   = /usr/local/man
BINDIR   = /usr/bin

LOCDIR   = /usr/share/locale
PLUGINDIR= ./PLUGINS
PLUGINLIBDIR=  /usr/lib/vdr/plugins
VDRSCRIPTDIR = /usr/lib/vdr/scripts
VIDEODIR = /media/video/vdr
CONFDIR  = /etc/vdr

### The remote control:

LIRC_DEVICE = /dev/lircd
#RCU_DEVICE  = /dev/ttyS1

## Define if you want vdr to not run as root
#VDR_USER = vdr

### VDR-Extensions:
# Comment the patches you don't need
# DVDCHAPJUMP needs DVDARCHIVE enabled
# DVDARCHIVE needs LIEMIEXT enabled
# SORTRECORDS needs LIEMIEXT enabled
# you can only enable MENUORG or SETUP



TTXTSUBS = 1
SETUP = 1
STREAMDEVEXT = 1
YAEPGHD = 1
YAEPG = 1

#ROTOR = 1
#ANALOGTV = 1
#ATSC = 1
#CHANNELSCAN = 1
#CMDRECCMDI18N = 1
#CMDSUBMENU = 1
#CUTTERLIMIT = 1
#CUTTERQUEUE = 1
#CUTTIME = 1
#DDEPGENTRY = 1
#DELTIMESHIFTREC = 1
#DOLBYINREC = 1
#DVBSETUP = 1
#DVDARCHIVE = 1
#DVDCHAPJUMP = 1
#DVLFRIENDLYFNAMES = 1
#DVLRECSCRIPTADDON = 1
#DVLVIDPREFER = 1
#EM84XX = 1
#GRAPHTFT = 1
#HARDLINKCUTTER = 1
#JUMPPLAY = 1
#LIEMIEXT = 1
#LIRCSETTINGS = 1
#LNBSHARE = 1
#MAINMENUHOOKS = 1
#MENUORG = 1
#NOEPG = 1
#OSDMAXITEMS = 1
#PARENTALRATING = 1
#PINPLUGIN = 1
#PLUGINAPI = 1
#PLUGINMISSING = 1
#PLUGINPARAM = 1
#SETTIME = 1
#SOFTOSD = 1
#SOURCECAPS = 1
#SORTRECORDS = 1
#STREAMDEVEXT = 1
#TIMERCMD = 1
#TIMERINFO = 1
#VALIDINPUT = 1
#VOLCTRL = 1
#WAREAGLEICON = 1
#YAEPG = 1

### You don't need to touch the following:

ifdef DVBDIR
INCLUDES += -I$(DVBDIR)/include
endif

ifdef ANALOGTV
DEFINES += -DUSE_ANALOGTV
endif

ifdef ATSC
DEFINES += -DUSE_ATSC
endif

ifdef CHANNELSCAN
DEFINES += -DUSE_CHANNELSCAN
endif

ifdef CMDRECCMDI18N
DEFINES += -DUSE_CMDRECCMDI18N
endif

ifdef CMDSUBMENU
DEFINES += -DUSE_CMDSUBMENU
endif

ifdef CUTTERLIMIT
DEFINES += -DUSE_CUTTERLIMIT
endif

ifdef CUTTERQUEUE
DEFINES += -DUSE_CUTTERQUEUE
endif

ifdef CUTTIME
DEFINES += -DUSE_CUTTIME
endif

ifdef DDEPGENTRY
DEFINES += -DUSE_DDEPGENTRY
endif

ifdef DELTIMESHIFTREC
DEFINES += -DUSE_DELTIMESHIFTREC
endif

ifdef DOLBYINREC
DEFINES += -DUSE_DOLBYINREC
endif

ifdef DVBSETUP
DEFINES += -DUSE_DVBSETUP
endif

ifdef DVDARCHIVE
ifdef LIEMIEXT
DEFINES += -DUSE_DVDARCHIVE
endif
endif

ifdef DVLRECSCRIPTADDON
DEFINES += -DUSE_DVLRECSCRIPTADDON
endif

ifdef DVLVIDPREFER
DEFINES += -DUSE_DVLVIDPREFER
endif

ifdef DVLFRIENDLYFNAMES
DEFINES += -DUSE_DVLFRIENDLYFNAMES
endif

ifdef EM84XX
DEFINES += -DUSE_EM84XX
endif

ifdef GRAPHTFT
DEFINES += -DUSE_GRAPHTFT
endif

ifdef HARDLINKCUTTER
DEFINES += -DUSE_HARDLINKCUTTER
endif

ifdef JUMPPLAY
DEFINES += -DUSE_JUMPPLAY
endif

ifdef LIEMIEXT
DEFINES += -DUSE_LIEMIEXT
endif

ifdef LIRCSETTINGS
DEFINES += -DUSE_LIRCSETTINGS
endif

ifdef LNBSHARE
DEFINES += -DUSE_LNBSHARE
endif

ifdef MAINMENUHOOKS
DEFINES += -DUSE_MAINMENUHOOKS
endif

ifdef MENUORG
DEFINES += -DUSE_MENUORG
else
ifdef SETUP
DEFINES += -DUSE_SETUP
endif
endif

ifdef NOEPG
DEFINES += -DUSE_NOEPG
endif

ifdef OSDMAXITEMS
DEFINES += -DUSE_OSDMAXITEMS
endif

ifdef PARENTALRATING
DEFINES += -DUSE_PARENTALRATING
endif

ifdef PINPLUGIN
DEFINES += -DUSE_PINPLUGIN
endif

ifdef PLUGINMISSING
DEFINES += -DUSE_PLUGINMISSING
endif

ifdef PLUGINPARAM
DEFINES += -DUSE_PLUGINPARAM
endif

ifdef ROTOR
DEFINES += -DUSE_ROTOR
endif

ifdef SETTIME
DEFINES += -DUSE_SETTIME
endif

ifdef SOFTOSD
DEFINES += -DUSE_SOFTOSD
endif

ifdef SOURCECAPS
DEFINES += -DUSE_SOURCECAPS
endif

ifdef SORTRECORDS
ifdef LIEMIEXT
DEFINES += -DUSE_SORTRECORDS
endif
endif

ifdef STREAMDEVEXT
DEFINES += -DUSE_STREAMDEVEXT
endif

ifdef TIMERCMD
DEFINES += -DUSE_TIMERCMD
endif

ifdef TIMERINFO
DEFINES += -DUSE_TIMERINFO
endif

ifdef TTXTSUBS
DEFINES += -DUSE_TTXTSUBS
endif

ifdef VALIDINPUT
DEFINES += -DUSE_VALIDINPUT
endif

ifdef VOLCTRL
DEFINES += -DUSE_VOLCTRL
endif

ifdef WAREAGLEICON
DEFINES += -DUSE_WAREAGLEICON
endif

ifdef YAEPG
DEFINES += -DUSE_YAEPG
endif
And final commands
Code:
sudo -s
mkdir -p /media/video/vdr
mkdir -p /usr/lib/vdr/plugins
mkdir -p /usr/lib/vdr/scripts
mkdir -p /etc/vdr/plugins
make
sudo checkinstall --pkgname=vdr pkgversion="1.7.17:$(./version.sh)" --backup=no \ 
    --deldoc=yes --fstrans=no --default
cp -a svdrpsend.pl /usr/bin
cp *.conf /etc/vdr/
VDR Plugins and automation (including CCcam scripts)
In the I've included the most basic plugins for more.

Have a look here for patches:

and here in German (many more plugins)

In terminal type.

Code:
sudo -s
gedit /var/bin/runvdr
Code:
#!/bin/sh 
export LANG=en_EN 
export LC_COLLATE=en_EN 

PATH=/usr/local/bin:$PATH 

VDRPRG="/usr/bin/vdr" 
VDRCMD="/usr/bin/vdr -c /etc/vdr -E /var/epgvdr --lirc --no-kbd -l 1 -P sc -P'xine -r' -P streamdev-server -P setup -P skinsoppalusikka -P femon" 
ALL_PLUGINS="-P pluginsetup `grep -s - /etc/vdr/plugins/plugin_setup_runvdr.conf`" 


KILL="/usr/bin/killall -q -TERM" 

# Detect whether the DVB driver is already loaded 
# and return 0 if it *is* loaded, 1 if not: 
DriverLoaded() 
{ 
  return 1 
} 

# Load all DVB driver modules needed for your hardware: 
LoadDriver () 
{ 

  return 0 

} 

# Unload all DVB driver modules loaded in LoadDriver(): 
UnloadDriver () 
{ 

  return 0 

} 

# Load driver if it hasn't been loaded already: 
if ! DriverLoaded; then 
   LoadDriver 
   fi 

while (true) do 
      eval "$VDRCMD $ALL_PLUGINS -u root $*" 
      if test $? -eq 0 -o $? -eq 2; then exit; fi 
      echo "`date` reloading DVB driver" 
      $KILL $VDRPRG 
      killall -9 xine 
      sleep 10 
      UnloadDriver 
      LoadDriver 
      echo "`date` restarting VDR" 
      done
Code:
chmod 755 /var/bin/runvdr
(Optional)Femon - Signal Information plugin http://www.linuxtv.org/vdrwiki/index.php/Femon-plugin

Code:
cd /usr/local/src/vdr/PLUGINS/src
wget http://www.saunalahti.fi/~rahrenbe/vdr/femon/files/vdr-femon-1.7.9.tgz
tar xzvf vdr-femon-1.7.9.tgz
ln -s femon-1.7.9 femon
cd /usr/local/src/vdr/
make plugins
make install-plugins
(Optional) Streamdev plugin (needed if you plan to use XBMC or streaming it to your other PC or media around the house or even still to Motorola Zoom tablet when it has plugin available.) Hopefully. http://streamdev.vdr-developer.org/
We added to Make.config above the following line (after SETUP = 1 )
Code:
STREAMDEVEXT = 1
Code:
cd /usr/local/src/vdr/PLUGINS/src
wget http://projects.vdr-developer.org/attachments/download/497/vdr-streamdev-0.5.1.tgz
tar xivf vdr-streamdev-0.5.1.tgz
sudo mkdir -p /etc/vdr/plugins/streamdev
cd streamdev
sudo cp streamdev/streamdev-server/streamdevhosts.conf /etc/vdr/plugins/streamdev
sudo cp streamdev/streamdev-server/streamdevhosts.conf /etc/vdr/vdrsvdrphosts.conf
cd /usr/local/src/vdr/
make plugins
make install-plugins
Optional Skin Soppalusikka plugin
Plugins homepage:
http://www.saunalahti.fi/~rahrenbe/vdr/soppalusikka/

Code:
cd /usr/local/src/vdr/PLUGINS/src
wget http://www.saunalahti.fi/~rahrenbe/vdr/soppalusikka/files/vdr-skinsoppalusikka-1.7.2.tgz
tar -xzf vdr-skinsoppalusikka-1.7.2.tgz
ln -s skinsoppalusikka-1.7.2 skinsoppalusikka
mkdir /etc/vdr/plugins/skinsoppalusikka
cp -d skinsoppalusikka/symbols/*.xpm /etc/vdr/plugins/skinsoppalusikka/
cp -d skinsoppalusikka/themes/*.theme /etc/vdr/themes/
cd /usr/local/src/vdr
make plugins
make install-plugins
gedit /var/bin/runvdr
If you followed this tutorial it's done, if not add the option -P skinsoppalusikka \

sc TRUNK - softcam plugin (Needed for CCcam)
Code:
cd /usr/local/src/vdr/PLUGINS/src 
hg clone http://85.17.209.13:6100/sc 
cd sc 
sed -i 's/CSAFLAGS   ?= -Wall -fPIC -g -O3 -mmmx -fomit-frame-pointer -fexpensive-optimizations -funroll-loops/CSAFLAGS   ?= -Wall -fPIC -g -O2 -mmmx -fomit-frame-pointer -fexpensive-optimizations -funroll-loops/' Makefile 
      cd ../../../ 
      make plugins 
      cd PLUGINS/lib/ 
      sudo cp ./* /usr/lib/vdr/plugins/
cd /usr/local/src/vdr/
make plugins
make install-plugins
(Optional) Setup plugin (needed if you want CCcam info or ecm.info or to be able to run bash scripts from VDR)
Make sure you have applied the ExtPatch to VDR and that there is a line in Make.config
that reads:
SETUP = 1
Code:
cd /usr/local/src/vdr/PLUGINS/src
sudo wget http://www.zulu-entertainment.de/files/vdr-setup/vdr-setup-0.3.1-zulu-edition.tgz
sudo tar zxvf vdr-setup-0.3.1-zulu-edition.tgz
sudo ln -s setup-0.3.1-zulu-edition setup
cd setup
sudo mkdir /etc/vdr/plugins/setup
cd /usr/local/src/vdr
sudo make plugins
sudo make install
Now we create a sample menu configuration file

sudo gedit /etc/vdr/plugins/setup/vdr-menu.xml
Code:
<!--
-    VDR Menu-Configuration File
-
-
-   Example:
-
 <menus>
    <system name="Schedule" />
    <system name="Channels" />
    <system name="Timers" />
    <system name="Recordings" />
    <menu name="System">
        <system name="Setup" />
        <system name="Commands" />
        <plugin name="setup" title="My Setup" />
        <command name="myCommand1" execute="/usr/bin/mycommand1" />
        <command name="myCommand2" execute="/usr/bin/mycommand2" confirm="yes" />
        <thread name="myCommand3" execute="/usr/bin/mycommand3" confirm="yes" />
        <plugin name="epgsearch" title="myProgram" />
        <menu name="mySubSubMenu">
            ...
        </menu>
    </menu>
     <menu name="Suche">
        <plugin name="epgsearch" />
        ...
    </menu>
 </menus>
-->
<menus suffix=" ...">
    <system name="Schedule" />
    <system name="Channels" />
    <system name="Timers" />
    <system name="Recordings" />
    <menu name="System">
        <system name="Setup" />
        <system name="Commands" />
        <plugin name="setup" />
    </menu>
    <menu name="CCcam Info">
        <command name="EMC info" execute="cat /tmp/ecm0.info" />
        <command name="CCcam smartcard info" execute="echo entitlements | nc localhost 16000" />
        <command name="CCcam provider info" execute="echo providers | nc localhost 16000" />
        <command name="CCcam online servers" execute="echo servers | nc localhost 16000" />
        <command name="CCcam online shares" execute="echo shares | nc localhost 16000" />
        <command name="CCcam active clients" execute="echo activeclients | nc localhost 16000" />
        <command name="CCcam online clients" execute="echo clients | nc localhost 16000" />
        <command name="QUIT vdr" execute="/etc/init.d/vdr stop" />
        <command name="RESTART CCcam" execute="/etc/init.d/cccam restart" />
        <command name="STOP CCcam" execute="/etc/init.d/cccam stop" />
        <command name="START CCcam" execute="/etc/init.d/cccam start" />
        <command name="Whose card?" execute="cat /tmp/ecm0.info|grep address:" />
        <command name="CCcam info" execute="echo info | nc localhost 16000" />
        <command name="CCcam config" execute="cat /var/etc/CCcam.cfg" />
    </menu>
<menu name="Shutdown or exit">
        <command name="exit to windows" execute="killall xine" />
        <command name="Reboot HTPC" execute="reboot" />
        <command name="Turn Off HTPC" execute="shutdown now -P" />
    </menu>
    <plugin name="yaepghd" />
    <plugin name="pluginsetup" />
</menus>
And ...

sudo gedit /etc/vdr/plugins/setup/vdr-setup.xml
Code:
<setup sysconfigFile="/etc/sysconfig" bootLinux="sudo /sbin/reboot" VDRlibDir="/usr/lib/vdr/plugins">
    <plugins sysconfig="PLUGINLIST">
        <plugin name="setup" info="setup" active="yes" />
    </plugins>
    <menus>
        <menu name="VDR">
            <menu name="OSD" help2="setup_osd.hlp" system="OSD" />
            <menu name="EPG" help2="setup_epg.hlp" system="EPG" />
            <menu name="DVB" help2="setup_dvb.hlp" system="DVB" />
            <menu name="LNB" help2="setup_lnb.hlp" system="LNB" />
            <menu name="CAM" help2="setup_cicam.hlp" system="CAM" />
            <menu name="Menu Edit" help2="setup_editmenu.hlp" system="VDRMenu" />
            <menu name="Recording" help2="setup_record.hlp" system="Record" />
            <menu name="Replay" help2="setup_replay.hlp" system="Replay" />
            <menu name="Miscellaneous" help2="setup_misc.hlp" system="Misc" />
            <menu name="Plugins" system="Plugins" />
        </menu>
        <menu name="Plugins">
            <menu name="Plugins" system="Plugins" />
            <menu name="Plugins activate / deactivate" help2="setup_actplugins.hlp" system="ActPlugins" />
        </menu>
        <menu name="System">
            <entry name="Use Sysconfig" sysconfig="USE_SYSCONFIG" type="bool" value="off" />
        </menu>
    </menus>
</setup>
(Optional) Skin Reel - VDR Skin

Code:
cd /usr/local/src/vdr/PLUGINS/src
wget http://rsync16.de.gentoo.org/files/vdr-skinreel/vdr-skinreel-0.0.1.tgz
tar xzvf vdr-skinreel-0.0.1.tgz
ln -s skinreel-0.0.1 skinreel
cd skinreel
sed -i Makefile -e 's/VDRVERSION/APIVERSION/g'
cp -r skinreel /etc/vdr/plugins/
cd /usr/local/src/vdr/
make plugins
make install
Opetional Skin PearlHd
VDR 1.7.17 now supports new HD Skins which will get rid of old dated look and give it more cool feel to it, makes it look more modern. Until there are more plugins developed and release for now we will use PearHd skin.

In the our Make.config file we have a line with YAEPGHD=1
to call this skin.

More info can be found here in German. http://www.vdr-wiki.de/wiki/index.ph...D#PearlHD_Skin

First we need to install text2skin
Code:
cd /usr/local/src/vdr/PLUGINS/src
git clone git://projects.vdr-developer.org/vdr-plugin-text2skin.git
cd ../../
make plugins
make install-plugins
Then we need yaepgHD
Code:
cd /usr/local/src/vdr/PLUGINS/src
git clone git://projects.vdr-developer.org/vdr-plugin-yaepghd.git yaepghd
cd ../../
make plugins
make install-plugins
Now we need to configure and install PearlHD Skin
Code:
git clone git://projects.vdr-developer.org/skin-pearlhd.git
ln -s skin-pearlhd PearlHD
cd PearlHD
sudo gedit Make.config
For now change  text of the coloured channel-view buttons as shown bellow, later other option could be changed to your liking
save and exit
#
BUTTON_1=Recordings 
BUTTON_2=Schedule 
BUTTON_3=Channel Info 
BUTTON_4=Timers
#

make
make install
sudo gedit /etc/vdr/setup.conf
change these values in the file like so.
Code:
OSDAspect = 1,000000
OSDHeight = 1080
OSDHeightP = 1,000000
OSDLanguage = de_DE
OSDLeft = 0
OSDLeftP = 0,000000
OSDSkin = PearlHD
OSDTop = 0
OSDTopP = 0,000000
OSDWidth = 1920
OSDWidthP = 1,000000
ShowReplayMode = 1
at the end of file add these
Code:
xine.osdExtent.X = 1920
xine.osdExtent.Y = 1080
xine.osdMode = osdBlendScaledAuto
xine.transparencyMode = transparencyOn
xineliboutput.OSD.Size = 1920x1080
xineliboutput.OSD.SoftOSD = 1
save file and select the skin in the menu osd with in vdr and choose theme to your liking.

XINE - VDR Xine plugin, needed to connect to VDR or vdr to vdr over streamdev server.
Code:
cd /usr/local/src/vdr/PLUGINS/src
# vdr-xine-0.9.3 or later are compatible with VDR 1.7.17
wget http://home.vrweb.de/rnissl/vdr-xine-0.9.4.tgz
tar zxvf vdr-xine-0.9.4.tgz
ln -s xine-0.9.4 xine
cd xine/data
mkdir -p /etc/vdr/plugins/xine/
cp *.mpg /etc/vdr/plugins/xine/
cd /usr/local/src/vdr/
make plugins
make install-plugins
For CCcam first lets create the scripts that will run it (DO NOT RUN CCcam.x86 from the command line!)

sudo -s
touch /etc/init.d/cccam
chmod 755 /etc/init.d/cccam
gedit /etc/init.d/cccam
Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides:          CCcam
# Required-Start:    $network
# Required-Stop:     $network
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Description:       Start, Stop or Restart the CCcam softcam
### END INIT INFO 

# Shell functions sourced from /etc/rc.status:
set -e

# Reset status of this service
# rc_reset

# 
case "$1" in
    start)
        echo -n "Starting CCcam "
        /var/bin/run.sh &
        # Remember status and be verbose
        ;;
    stop)
        echo -n "Shutting down CCcam "
                killall run.sh
                killall CCcam.x86
        # Remember status and be verbose
        ;;
    restart)
        echo -n "Restart CCcam "
        $0 stop
        $0 start 
        # Remember status and be quiet
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac
# rc_exit
exit 0
You will need CCcam.x86 in /var/bin and CCcam.cfg in /var/etc but you will need to find them on your own.
Code:
touch /var/bin/run.sh
chmod 755 /var/bin/run.sh
gedit /var/bin/run.sh
And paste there the following code (and save it)
Code:
#!/bin/sh
cd /var/bin
gcc -march=pentium -mmmx -fomit-frame-pointer -fexpensive-optimizations -funroll-loops -fPIC -shared -o ca.so ca.c -ldl
LD_PRELOAD=./ca.so ; export LD_PRELOAD
while [ 1 ];
do
 ./CCcam.x86 -d > /var/log/CCcam.log
done
Finally the CCcam wrapper and setting CCcam to start automatically upon booting, especially handy if you are running a server
as if the process CCcam.x86 dies it will be automatically restarted
Code:
touch /var/bin/ca.c
chmod 755 /var/bin/ca.c
ln -s /etc/init.d/cccam /etc/rc2.d/S50cccam
sudo cp /usr/local/src/vdr/PLUGINS/src/sc/contrib/cccam_ca.c /var/bin/ca.c
Vdr needs to connect to CCcam via cardclient file here /etc/vdr/plugins/sc/cardclient.conf
There are two methods one is direct or second as a client the sc supports both, for the client you will need to create cccam2 line with user and password in you Cccam. Example file as follows and edit to suite your needs.

Sudo gedit /etc/vdr/plugins/sc/cardclient.conf
Code:
#

# Comment lines can start with # or ;

#

# every client line starts with the client name, followed by some arguments:

# 'hostname' is the name of the server

# 'port'     is the port on the server

# 'emm'      is a flag to allow EMM transfers to the server

#            (0=disabled 1=enabled)

# 'caid'     (optional) caid on which this client should work

# 'mask'     (optional) mask for caid e.g. caid=1700 mask=FF00 would allow

#            anything between 1700 & 17FF.

#            Default is 1700 & FF00. If only caid is given mask is FFFF.

#            You may give multiple caid/mask values comma separated

#            (e.g. 1702,1722,0d0c/ff00).

# 'username' is the login username

# 'password' is the login password

#

# radegast client

# radegast:hostname:port:emm/caid/mask

#

# aroureos client

# 'hexbase'

# 'hexserial' card data for which EMM updates should be send

# aroureos:hostname:port:emm/caid/mask:hexbase:hexserial

#

# camd33 client (tcp protocol)

# 'aeskey'   is the AES key (32bytes), disable encryption if missing

# camd33:hostname:port:emm/caid/mask:username:password:aeskey

#

# camd35 client (udp protocol)

# camd35:hostname:port:emm/caid/mask:username:password

#

# cardd client

# cardd:hostname:port:emm/caid/mask:username:password

#

# buffy client

# 'aeskey'   is the AES key (32bytes), disable encryption if missing

# buffy:hostname:port:emm:username:password:aeskey

#

# newcamd client

# 'cfgkey' is the config key (28bytes)

# newcamd:hostname:port:emm/caid/mask:username:password:cfgKey

#

# gbox client

#

# NOTE: hostname & port will be ignore. GBOX must be runnning on the local

# machine. For convinience you should choose localhost:8004

# gbox:hostname:port:emm/caid/mask

#

# ccam client

#

# NOTE: hostname will be ignore. CCcam must be runnning on the local machine

# 'socket' is the name of the camd socket file. For multiple cards add %d

# into the string. This will be replaced with the number 0-3.

# e.g. /var/emu/chroot%d/tmp/camd.socket

cccam:127.0.0.1:9000:1/0000/0000:/tmp/camd.socket

#cccam2:192.168.1.4:12000:0/0/0:vdr:vdrpass

#newcamd:192.168.1.2:9000:1/0000/FFFF/:cccam:cccamlocal:01 02 03 04 05 06 07 08 09 10 11 12 13 14:/tmp/camd.socket
Optional - Rotor Plugin - To move a dish and store positions, gotoX, etc
I don't use this plugin, so not tested, you might need to find patch diff file.
REMOVE in Make.config (if it exists)the line with: # see note at foot of page
ROTOR = 1
Code:
cd /usr/local/src/vdr
cd PLUGINS/src
wget http://ubuntuforums.org/attachment.php?attachmentid=109895&stc=1&d=1239814342
mv attachment.php?attachmentid=109895 rotor-0.1.4S2API.tar.gz
tar zxvf rotor-0.1.4S2API.tar.gz
ln -s rotor-0.1.4S2API rotor
cd ../../
make plugins
make install-install
Lets run the vdr in Terminal type /etc/init.d/vdr start if all went well your vdr should start with plugins.

Now in the terminal type
sudo xine -A alsa -f vdr:///
or
xine --video=xv --aspect=auto -f vdr:///

and enjoy :)

Some tweaks
sudo gedit $HOME/.xine/config
Find uncoment and change lines bellow:
Code:
video.processing.ffmpeg_choose_speed_over_accuracy:1
video.processing.ffmpeg_pp_quality:1
video.processing.ffmpeg_skip_loop_filter:all
video.processing.ffmpeg_thread_count:3
engine.buffers.video_num_frames:22
Final words
I owe thanks to many people from whom I lerant all this, and in the spirit of open soruce I took time to write what I learnt in the hope it might help someone. If you like this tut leave thanks.

This project needs more coders and developers to enhance it and take it further, please contribute anyway you can small or large. Please post anything else relevant or if you know of any more better skins or anything I might have over looked.

Regards
   
Reply With Quote
The Following 6 Users Say Thank You to cooler For This Useful Post:
croke (02-January-2012), dulcet (31-August-2011), gianluca68 (30-April-2011), kapzas (28-July-2011), nicoskid (30-April-2011), Padberwi (08-May-2011)
Old
  (#2)
peje
Junior Member
 
peje's Avatar
 
Offline
Posts: 3

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 2
Magic: 1 / 70
Experience: 10%

Thanks: 1
Thanked 0 Times in 0 Posts
Join Date: Mar 2009
Age: 58
02-May-2011, 19:33

I would advise to set the refresh rate in xorg.conf to 50Hz if you are watching Pal (Europe), to avoid tearing..
cu Peje
   
Reply With Quote
Sponsored Links
Old
  (#3)
cooler
Member
 
cooler's Avatar
 
Offline
Posts: 38

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 98
Magic: 12 / 3193
Experience: 94%

Thanks: 7
Thanked 13 Times in 7 Posts
Join Date: Jan 2007
08-May-2011, 07:46

Quote:
Originally Posted by peje View Post
I would advise to set the refresh rate in xorg.conf to 50Hz if you are watching Pal (Europe), to avoid tearing..
cu Peje
Use best settings supported by your TV, ATI control centre could be used to make changes and scaling adjustments.


I've also tested and this tutorial works with Ubuntu 11.04, apart form remote which needs more work or use remote plugin.
   
Reply With Quote
Old
  (#4)
cooler
Member
 
cooler's Avatar
 
Offline
Posts: 38

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 98
Magic: 12 / 3193
Experience: 94%

Thanks: 7
Thanked 13 Times in 7 Posts
Join Date: Jan 2007
28-July-2011, 07:22

Remember you can use this guide even if you don't have ati card and just want the HD Skin, just ignore the rest and follow from hd skin section
   
Reply With Quote
Old
  (#5)
cooler
Member
 
cooler's Avatar
 
Offline
Posts: 38

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 98
Magic: 12 / 3193
Experience: 94%

Thanks: 7
Thanked 13 Times in 7 Posts
Join Date: Jan 2007
03-September-2011, 20:18

update editing video dir like this VIDEODIR = /media/vdr/video0 will allow you to add more disks or partitions for space for you recordings. Then allow link to each disk in /media/vdr/ dir
video0
video1
and so on.


blackcatblac
Have you complied and installed after applying the patch? Looks as it didn't install properly.

Make sure the path in the Make.config is correct, else try try vdr-1.7.17 version.

Also over time some links might become not working please try and search if anything goes down, and substitute.

Last edited by cooler; 03-September-2011 at 20:29..
   
Reply With Quote
Reply

Bookmarks

Tags
ati/amd, guide, latest, ubuntu's


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox