Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > VDR and Kaffeine

VDR and Kaffeine Discussion, HOWTO: VDR 1.7.0, HDTV and CCcam with budget cards on Ubuntu 8.04 using multiproto at Sharing receivers forum; Introduction Since a couple of weeks I've converted my Windows based HTPC completely to a Linux based HTPC. During this ...

Reply
 
LinkBack Thread Tools Display Modes
HOWTO: VDR 1.7.0, HDTV and CCcam with budget cards on Ubuntu 8.04 using multiproto
Old
  (#1)
shalafi
ECS Master
 
shalafi's Avatar
 
Offline
Posts: 412

Level: 18 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 446
Magic: 137 / 13623
Experience: 87%

Thanks: 127
Thanked 492 Times in 131 Posts
Join Date: Jul 2007
Lightbulb HOWTO: VDR 1.7.0, HDTV and CCcam with budget cards on Ubuntu 8.04 using multiproto - 11-August-2008, 13:29

Introduction

Since a couple of weeks I've converted my Windows based HTPC completely to a Linux based HTPC. During this process, I've tried several DVB applications but because of HDTV and cardsharing, I found out that the Video Disk Recorder project is the one of the best application for DVB-viewing. But VDR is primary used for full DVB cards, while I got a budget card.

During this trial-and-error, it took me around 4 weeks (I could only work on it on several nights or in weekends) to get it completely working. But during a HDD crash I found out I had to do it again. Now I can get VDR up-and-running in a couple of hours.

For those who don't want to use Google, I made a tutorial how I setup VDR in combination with my DVB budget card. I use the following hardware configuration:

- Enclosure : Antec NSK2480 (PSU included)
- Motherboard: Abit A-N78HD with the Geforce 8200 IGP
- CPU : AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
- Memory : Kingston ValueRAM 2 GB DDR2-800 Kit (CL5)
- DVD-drive : LG GGC-H20LRB (DVD-RW, Blu-Ray and HDDVD)
- Harddisk : Samsung SpinPoint T 500GB
- Budgetcard : Hauppauge WinTV NOVA-HD-S2

All this, is connected to a Samsung HD-Ready LCD-TV using the onboard HDMI connector with the nvidia closed sources drivers.

DISCLAIMER: First I want to make one thing very clear. While this HOWTO allows you to get VDR running, I won't go into detail how you can install the compilation suite or other programs or Linux itself. I personally think that Linux knowledge is important before you continue to use Linux as your OS or as your primary DVB frontend.

I use Xubuntu 8.04 X86 myself and network, sound and video was working before starting the use of VDR. For dependencies, I use Ubuntu based apt-get install commands to get it compiled. Be sure to check your own distribution for the correct locations and additional depencies. Furthermore, I use the location /usr/local/src as the default directory. You can offcourse use an other location.

Before starting with this tutorial, make sure your DVB-S or DVB-S2 card is up and running (read: detected by Linux). For the people who use a Hauppauge NOVA-S2-HD or HVR-4000, you can use my other tutorial for that. Also, Igor's repo seems to support S2-3200 based cards as well.

WARNING! When using VDR 1.7.0, you require the multiproto drivers and they must be downloaded installed! I use Igor's repo myself and this works with VDR 1.7.0. This tutorial works for DVB-S and DVB-S2 based budget cards and also DVB-S budget cards require multiproto, even if they don't use it!

All commands which are used here, can be run from a Terminal Session within XFCE, KDE or Gnome or through a SSH connection. With all commands posted here, make sure you are using sudo -s so that your are the user root.

My Xubuntu 8.04 Desktop installation is the X86 edition. While my CPU can run the AMD64 edition, I decided not to do this. Mainly since certain optimalisation isn't entirely complete. So I would reccommend to install the X86 edition for the time being.

1. Xine and FFMpeg

Currently there does not exist a Full DVB-S2 card. Because of this we need to use a software based output plugin with VDR. Since we're going to use xineliboutput, we need additional software up-and-running before we're going to compile VDR and the additional plugins. We're going to use FFMpeg and Xine for this.

FFMpeg:
Code:
cd /usr/local/src
apt-get install build-essential
apt-get install mercurial cvs subversion libncurses-dev
apt-get install autoconf libtool automake pkg-config gettext
apt-get install liba52-0.7.4-dev liblame-dev libvorbis-dev zlib1g-dev libpng12-dev libx11-dev libxv-dev libasound2-dev
apt-get build-dep ffmpeg
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg/
./configure --prefix=/usr --enable-shared --enable-gpl --enable-postproc --enable-libmp3lame --enable-libvorbis --enable-pthreads --enable-swscale
make
make install
ldconfig -v
Xine-Lib 1.2 CVS:
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
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
cd xine-lib-1.2
./autogen.sh --prefix=/usr --with-external-ffmpeg --disable-dxr3 --enable-w32dll --with-w32-path=/usr/local/lib/win32
make
make install
ldconfig -v
Xine-UI CVS
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-20080310200000.tar.bz2
tar xivf xine-ui-cvs-20080310200000.tar.bz2
cd xine-ui
./autogen.sh --prefix=/usr --enable-vdr-keys
make
make install
To test Xine and the other items. You can run the command xine from a Terminal Session (or use ALT-F2 and type xine as the command). If all goes well, the Xine-UI session should now come up. Because you started it for the first time, you can setup some items. For the time being, just press OK. Next you might want to play some media-files to check if the playback function works allright.

2. VDR and plugins

Now that Xine and FFmpeg have been installed. We can start with VDR 1.7.0 and the plugins.

VDR 1.7.0
Code:
cd /usr/local/src
apt-get install libfreetype6-dev libfontconfig1-dev libjpeg62-dev libcap-dev libncurses5-dev libncursesw5-dev
wget ftp://ftp.cadsoft.de/vdr/Developer/vdr-1.7.0.tar.bz2
tar xivf vdr-1.7.0.tar.bz2
wget http://www.linuxtv.org/pipermail/vdr/attachments/20080413/1054bcfb/attachment-0001.bin
mv attachment-0001.bin vdr-1.7.0-h264-syncearly-framespersec-audioindexer-fielddetection-speedup.diff.bz2
bzip2 -d vdr-1.7.0-h264-syncearly-framespersec-audioindexer-fielddetection-speedup.diff.bz2
cd vdr-1.7.0
patch -p1 < ../vdr-1.7.0-h264-syncearly-framespersec-audioindexer-fielddetection-speedup.diff
wget http://shalafi.ath.cx/vdr/Make.config
# WARNING! Edit Make.config and make sure the DVBDIR setting is correct for your configuration!
mkdir /media/video
mkdir -p /usr/lib/vdr/plugins
mkdir -p /usr/lib/vdr/scripts
mkdir -p /etc/vdr/plugins
make
make plugins
make install
cp -a svdrpsend.pl /usr/bin
cp *.conf /etc/vdr/
Xineliboutput 1.0.3 - software output plugin
Code:
cd /usr/local/src/vdr-1.7.0/PLUGINS/src
apt-get install libextractor-dev
wget http://heanet.dl.sourceforge.net/sourceforge/xineliboutput/vdr-xineliboutput-1.0.3.tar.bz2
tar xivf vdr-xineliboutput-1.0.3.tar.bz2
mv xineliboutput-1.0.3 xineliboutput
cd xineliboutput
make
make install
mkdir -p /etc/vdr/plugins/xineliboutput
cp *.mpg /etc/vdr/plugins/xineliboutput/
cd ../../../
make plugins
make install
sc TRUNK - softcam plugin
Code:
cd /usr/local/src/vdr-1.7.0/PLUGINS/src
apt-get install libssl-dev 
hg clone -r trunk http://85.17.209.13:6100/sc
cd ../../
make plugins
make install
mkdir -p /etc/vdr/plugins/sc
cd /etc/vdr/plugins/sc
wget http://shalafi.ath.cx/vdr/cardclient.conf
cd /
wget http://shalafi.ath.cx/vdr/CCcam.tar.bz2
tar xivf CCcam.tar.bz2
OSD Teletext - Teletext plugin
Code:
cd /usr/local/src/vdr-1.7.0/PLUGINS/src
wget http://www.wiesweg-online.de/linux/vdr/vdr-osdteletext-0.5.1.tgz
wget http://www.vdr-portal.de/board/attachment.php?attachmentid=13339
mv attachment.php\?attachmentid\=13339 osdteletext-0.5.1-vdr-1.5.0.diff 
tar xivf vdr-osdteletext-0.5.1.tgz
mv osdteletext-0.5.1 osdteletext
cd osdteletext
patch -p1 < ../osdteletext-0.5.1-vdr-1.5.0.diff
cd ../../../
make plugins
make install
mkdir -p /vtx
Femon - Signal Information plugin
Code:
cd /usr/local/src/vdr-1.7.0/PLUGINS/src
wget http://www.saunalahti.fi/~rahrenbe/vdr/femon/files/vdr-femon-1.6.1.tgz
tar xzvf vdr-femon-1.6.1.tgz
mv femon-1.6.1 femon
cd ../../
make plugins
make install
Bitstreamout - AC/3 output plugin
Code:
cd /usr/local/src/vdr-1.7.0/PLUGINS/src
apt-get install libmad0-dev
wget http://heanet.dl.sourceforge.net/sourceforge/bitstreamout/vdr-bitstreamout-0.89c.tar.bz2
tar xivf vdr-bitstreamout-0.89c.tar.bz2
cd ../../
make plugins
make install
Remote - Remote plugin
Code:
cd /usr/local/src/vdr-1.7.0/PLUGINS/src
wget http://www.escape-edv.de/endriss/vdr/vdr-remote-0.4.0.tgz
tar xzvf vdr-remote-0.4.0.tgz
mv remote-0.4.0 remote
cd remote
sed -i Makefile -e 's/VDRVERSION/APIVERSION/g'
cd ../../
make plugins
make install
EnigmaNG - VDR Skin
Code:
cd /usr/local/src/vdr-1.7.0/PLUGINS/src
wget http://andreas.vdr-developer.org/enigmang/download/vdr-skinenigmang-0.0.6.tgz
tar xivf vdr-skinenigmang-0.0.6.tgz
mv skinenigmang-0.0.6 skinenigmang
cd ../../
make plugins
make install
mkdir -p /etc/vdr/plugins/skinenigmang
cd /etc/vdr/plugins
wget http://andreas.vdr-developer.org/enigmang/download/skinenigmang-logos-xpm-hi-20070702.tgz
wget http://andreas.vdr-developer.org/enigmang/download/skinenigmang-channellogos-xpm-hi-20070702.tgz
wget http://andreas.vdr-developer.org/enigmang/download/skinenigmang-fonts-20080225.tgz
tar xzvf skinenigmang-channellogos-xpm-hi-20070702.tgz
tar xzvf skinenigmang-channellogos-xpm-hi-20070702.tgz
tar xzvf skinenigmang-fonts-20080225.tgz
Skin Reel - VDR Skin
Code:
cd /usr/local/src/vdr-1.7.0/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
mv skinreel-0.0.1 skinreel
cd skinreel
sed -i Makefile -e 's/VDRVERSION/APIVERSION/g'
cp -r skinreel /etc/vdr/plugins/
cd ../../../
make plugins
make install
3. Configuration

Since we now have VDR and the plugins installed. We can continue with the configuration of VDR and other items.

3.1. VDR and Plugins

With the command /usr/bin/vdr --help you get an overview of the options of VDR and it's plugins. This information is very important for configuring VDR or the plugins.

To make life easier, we installed the script /var/bin/runvdr which can be edited with for instance mcedit (apt-get install mc), nano or vi. I use the following configuration myself:
Code:
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/vdr -l 3 \
        -s /var/bin/vdrpoweroff.sh \
        -P sc \
        -P femon \
        -P skinreel \
        -P'xineliboutput -l none -r 37890 -p' \
        -u root \
        $*"

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"
      if test $? -eq 0 -o $? -eq 2; then exit; fi
      echo "`date` reloading DVB driver"
      $KILL $VDRPRG
      sleep 10
      UnloadDriver
      LoadDriver
      echo "`date` restarting VDR"
      done
Pay close attention to the -P items. Those are the plugins which we're going to use and with -P we enable them. Also look closely to for instance xineliboutput how we can add plugin specific options to the startup of VDR. Use the --help switch with the vdr binary, to get the overview off the options from VDR as well as the plugins.

One of the items which could be usefull, is the options with the remote plugin. Since I use the included Hauppauge remote, I use the input portion of the DVB driver. With the remote plugin I can call the input portion of the DVB driver. Since many DVB cards have are included with a remote, you can use the remote plugin to use that remote. To find out what the correct syntax is for the input location, you can do the following:

Code:
[email protected]:~# cd /dev/input/by-path/
[email protected]:/dev/input/by-path# ls -il
total 0
11787 lrwxrwxrwx 1 root root 9 2008-09-06 16:56 pci-0000:00:04.0-usb-0:2:1.3-event- -> ../event2
12213 lrwxrwxrwx 1 root root 9 2008-09-06 16:56 pci-0000:01:06.0--event-ir -> ../event7
12434 lrwxrwxrwx 1 root root 9 2008-09-06 16:56 pci-1-3--event-ir -> ../event8
11766 lrwxrwxrwx 1 root root 9 2008-09-06 16:56 platform-i8042-serio-0-event-kbd -> ../event1
11834 lrwxrwxrwx 1 root root 9 2008-09-06 16:56 platform-i8042-serio-1-event-mouse -> ../event6
11844 lrwxrwxrwx 1 root root 9 2008-09-06 16:56 platform-i8042-serio-1-mouse -> ../mouse1
11855 lrwxrwxrwx 1 root root 9 2008-09-06 16:56 platform-pcspkr-event-spkr -> ../event3
As you can see, my remote is linked to pci-0000:01:06.0--event-ir (or /dev/input/event7) and that's what I use as input for the -i switch with the remote plugin. I don't use the location /dev/input/event7 since this can change when you rmmod and insmod the drivers again. And the ID of the PCI device won't change, so that's propably safer to use.

You can also use the remote plugin to use the lircd driver instead of the input driver. The lircd daemon/driver is needed when we want to use for instance a MCE remote. When we compiled the xine-ui part, we installed the lircd portion and you (hopefully) your remote. If you did not, you can do it again with the command dpkg-reconfigure lirc-modules-source. You can then use the following line in runvdr for using the remote plugin with the lircd:
Code:
-P'remote -l /dev/lircd' \
3.2. DISEqC

As you can see in my signature, I have a Wavefrontier T55 and it's installed with 4 LNB's aiming on 19.2e, 13.0e, 23.5e, 28.2e and 28.5e. The LNB's are then connected to a DISEqC 1.0 switch which uses the AA till BB configuration for switching. To use DISEqC we need to do two things, mainly edit /etc/vdr/diseqc.conf and enable DISEqC in the VDR setup.

As an example, I use the following configuration with my DISEqC switch and DVB card:
Code:
# port 1 option a position a
# port 2 option a position b
# port 3 option b position a
# port 4 option b position b
#
# DISEQC 4/1 setting on TT S2-3200
#
# port 1
S19.2E  11700 V  9750   t v W15 [E0 10 38 F0] W100 [E0 10 38 F0] W100 [E0 11 00] W100 A W15 t
S19.2E  99999 V 10600   t v W15 [E0 10 38 F1] W100 [E0 10 38 F1] W100 [E0 11 00] W100 A W15 T
S19.2E  11700 H  9750   t V W15 [E0 10 38 F2] W100 [E0 10 38 F2] W100 [E0 11 00] W100 A W15 t
S19.2E  99999 H 10600   t V W15 [E0 10 38 F3] W100 [E0 10 38 F3] W100 [E0 11 00] W100 A W15 T
# port 2
S13.0E  11700 V  9750   t v W15 [E0 10 38 F4] W100 [E0 10 38 F4] W100 [E0 11 00] W100 B W15 t
S13.0E  99999 V 10600   t v W15 [E0 10 38 F5] W100 [E0 10 38 F5] W100 [E0 11 00] W100 B W15 T
S13.0E  11700 H  9750   t V W15 [E0 10 38 F6] W100 [E0 10 38 F6] W100 [E0 11 00] W100 B W15 t
S13.0E  99999 H 10600   t V W15 [E0 10 38 F7] W100 [E0 10 38 F7] W100 [E0 11 00] W100 B W15 T
# port 3
S23.5E  11700 V  9750   t v W15 [E0 10 38 F8] W100 [E0 10 38 F8] W100 [E0 11 00] W100 A W15 t
S23.5E  99999 V 10600   t v W15 [E0 10 38 F9] W100 [E0 10 38 F9] W100 [E0 11 00] W100 A W15 T
S23.5E  11700 H  9750   t V W15 [E0 10 38 FA] W100 [E0 10 38 FA] W100 [E0 11 00] W100 A W15 t
S23.5E  99999 H 10600   t V W15 [E0 10 38 FB] W100 [E0 10 38 FB] W100 [E0 11 00] W100 A W15 T
# port 4
S28.2E  11700 V  9750   t v W15 [E0 10 38 FC] W100 [E0 10 38 FC] W100 [E0 11 00] W100 B W15 t
S28.2E  99999 V 10600   t v W15 [E0 10 38 FD] W100 [E0 10 38 FD] W100 [E0 11 00] W100 B W15 T
S28.2E  11700 H  9750   t V W15 [E0 10 38 FE] W100 [E0 10 38 FE] W100 [E0 11 00] W100 B W15 t
S28.2E  99999 H 10600   t V W15 [E0 10 38 FF] W100 [E0 10 38 FF] W100 [E0 11 00] W100 B W15 T
S28.5E  11700 V  9750   t v W15 [E0 10 38 FC] W100 [E0 10 38 FC] W100 [E0 11 00] W100 B W15 t
S28.5E  99999 V 10600   t v W15 [E0 10 38 FD] W100 [E0 10 38 FD] W100 [E0 11 00] W100 B W15 T
S28.5E  11700 H  9750   t V W15 [E0 10 38 FE] W100 [E0 10 38 FE] W100 [E0 11 00] W100 B W15 t
S28.5E  99999 H 10600   t V W15 [E0 10 38 FF] W100 [E0 10 38 FF] W100 [E0 11 00] W100 B W15 T
While we can't enable DISEqC yet, you do this later when you have VDR running. To enable DISEqC within VDR, Press the configured Menu button -> Goto Setup -> Goto LNB -> Set the option Use DISEqC to Yes -> Acknowledge with the configured OK button.

3.3. CCcam and the sc plugin

When you installed the sc plugin, you also installed some of my scripts and certain binaries to get CCcam running. To make one thing clearly, CCcam on Linux/X86 requires a preload so that the sc plugin can read/write the data to unlock the channel.

To make your (and mine ;) ) life easier, I created a init.d script called cccam (/etc/init.d/cccam) which has the options: start (start CCcam), stop (stop CCcam) and restart (restart CCcam) -> Example: /etc/init.d/cccam start. With this script the preload will be done automaticly and it infact starts the /var/bin/run.sh script which then compiles the preload file and starts CCcam in debug mode. WARNING! Never run the CCcam.x86 binary, use the run.sh script instead!

Also, before starting VDR, make sure you have the CCcam instance running. It can take a while before the CCcam run is completed. Configuring CCcam can be done using the file /var/etc/CCcam.cfg.

When we installed the sc plugin, you may have notices you also downloaded a file called cardclient.conf (full location: /etc/vdr/plugins/sc/cardclient.conf). This configuration file is allready configured for use with CCcam. All CAID's from VDR will be put through CCcam with the current config. You can also edit the file and add newcamd, gbox, camd3, etc connections as well. Just remember, the priority is based upon the location. The 1st line is the 1st to be checked if it can open the channel.

3.4. Channels.conf

The default channels.conf is a bit empty, only some FTA channels from Astra 19.2e are there. If you want to add other channels and or sats, you can use the pre-scanned files from the Linowsat Settings VDR channels.conf page. With wget or a browser you can download the files. If you want to add multiple sats, be sure to download the file you want and cat it to the channels.conf (example: cat all.conf >> /var/etc/channels.conf).

The channels.conf itself, is just plain text file. So you can edit it with an editor and change it to your liking. Just make sure you have shutdown VDR before editing the file, otherwise your contributions will be overwritten. Items starting with :-> are infact bouquets names. With the config from linowsat, it's been set on the transponder and satellite. But offcourse you can add your own bouquet and change it for instance the provider.

To go through the bouquets, just watch a channel and press the button which is configured for left and right. When you are at your wanted bouquet, simply press the configured button for OK and it will change to the first channel in the bouqet.

3.5. Running VDR

If you have configured the runvdr script, we can now start VDR. Also for your convinience I made a init.d script called vdr (full location: /etc/init.d/vdr). With the options start, stop and restart you can start, stop or restart the VDR process. The output of VDR is being written to the file /var/log/user.log. So if it fails, be sure to check that file for information about the error.

Since we use the xineliboutput plugin, we use the vdr-sxfe frontend to watch the VDR output. Before starting vdr-sxfe, you might want to edit the /etc/vdr/svdrphosts.conf file to include your network configuration.

To start vdr-sxfe, simply login into your X-session and when the desktop is shown, open a Terminal Session and type the following:

Code:
vdr-sxfe --video=xv --aspect=16:9 --fullscreen --width=1280 --height=720 --nokbd --post=tvtime:method=Linear,cheap_mode=1,pulldown=0,use_progressive_frame_flag=1
With the above option the vdr-sxfe binary will start. You can change the width and height to your liking (I have my system configured for [email protected]). Ultimately you can use a frontend like oxine or Linux MMS to start vdr-sxfe. But to be honest, this is outside of this tutorial ;)

When you start VDR for the first time, you'll need to configure your remote. Just press any key of the remote and follow the onscreen information. It's rather easy to understand and to setup your remote.

4. Some last words and knowhow

VDR is extremely flexible and can be expanded with a lot of plugins. I helped you with the plugins I think will be used the most. Just to make sure, most of the plugins have the option to be configured within VDR. To do this, press the button which is configured for Menu, goto Setup, select plugins and select the plugin you want to configure.

One important thing is, that options set within VDR must be applied by pressing the button which is configured for OK. If you don't do this, your changes will be reset to the original values.

If people encounter problems when viewing HDTV channels or if you can't lock onto a channel. The easiest way to check this, is to see if you get EPG information. If not, check the modulation and settings of the DVB-S2 transponder by going to the channellist, select your channel and press the Red button (edit). Edit the transponder information with the help of the kingofsat.net satellite information. Also, it can take a while before VDR changes the CAID's and that the sc plugin pick them up. Just be patient and eventually the channel will open (if you have correct subscription).

Concerning HDTV, with the following options you can modify the behaviour of ffmpeg when viewing h264 streams. Change these options in $HOME/.xine/config with the editor of your choice. Be sure to shutdown vdr-sxfe and VDR before changing.

Code:
video.processing.ffmpeg_choose_speed_over_accuracy:1
video.processing.ffmpeg_pp_quality:0
video.processing.ffmpeg_skip_loop_filter:all
# number of cores you have in your system:
video.processing.ffmpeg_thread_count:2
Anyway, I hope you like this tutorial. And many thanks to several people, especially cr0w! If you do like this tutorial, please use the Thanks button in this thread!

//Shalafi


-=[ Ubuntu Linux 9.04 | VDR 1.7.9 | HVR-4000 | eHD | Wavefield T55]=-

Last edited by shalafi; 10-January-2009 at 13:28.. Reason: fixed – in - and some minor fixes :)
   
Reply With Quote
The Following 60 Users Say Thank You to shalafi For This Useful Post:
600pvr (13-September-2008), anis745 (29-July-2009), aram (29-August-2009), as02l (19-November-2010), beckysat (05-December-2008), bronx1984 (29-December-2008), caladeira (22-September-2008), cccam4ever (04-January-2009), ciccioscartazza (12-February-2009), Custler (08-September-2009), divxarabe (15-December-2008), doctor_ahmed (25-April-2010), dudumania (18-September-2008), entao (18-September-2008), error61 (11-November-2008), evg_g (30-January-2011), fabiobtr (21-November-2008), FTM2008 (02-February-2009), gigadael (07-November-2008), Gjiaffaar (19-February-2009), hafeez (07-February-2009), hal9k (02-December-2008), himself (01-November-2008), huerso (12-December-2008), IrishGuy (08-October-2008), jobusca (15-November-2008), jumper4000 (23-October-2008), kaneda (03-January-2009), kapzas (14-September-2008), karl04 (15-October-2008), karmu (14-December-2008), kUbbAS (17-October-2008), KuliX (09-October-2008), LunaticOne (31-May-2010), maddox1976 (22-November-2008), mafatalal07 (12-October-2008), Maki_SM (23-September-2008), marcdima (29-January-2009), marcomarco (05-July-2009), masteR (17-September-2008), mona66 (08-February-2009), nicoskid (28-December-2008), omegacorp (06-June-2010), petrus73 (18-January-2009), ramisto (13-December-2008), RevPir (23-September-2008), rictec (13-March-2010), ridi1234 (23-November-2008), rockair (18-September-2008), Roi Danton (23-January-2011), SeCSaT™ (01-November-2008), serverr (24-December-2008), Smurfer (15-September-2008), tomtomhr (11-December-2008), total_confusion (15-September-2008), txutxe (13-December-2008), Ventura900 (14-September-2008), Vulcain (29-December-2008), wiwe (21-January-2009), [Ad0] (14-September-2008)
Old
  (#2)
shalafi
ECS Master
 
shalafi's Avatar
 
Offline
Posts: 412

Level: 18 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 446
Magic: 137 / 13623
Experience: 87%

Thanks: 127
Thanked 492 Times in 131 Posts
Join Date: Jul 2007
13-September-2008, 23:32

Since my website is down (and I won't put it up again because of to many hits) I've decided to give the contents of scripts which are used in the tutorial (tutorial will be changed in the future for this). The only thing you need is CCcam, which you can download from here.

Use an editor like vi, nano or mc to paste the contents in the files which are listed below and be sure to keep capital letters as they are shown!

File:/usr/local/src/vdr-1.7.0/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.0 2008/01/13 12:54:09 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
endif

### The directory environment:

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

LOCDIR   = /usr/share/locale
PLUGINDIR= ./PLUGINS
PLUGINLIBDIR= /usr/lib/vdr/plugins
VIDEODIR = /media/video
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 = root

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

ifdef DVBDIR
INCLUDES += -I$(DVBDIR)/include
endif
File: /var/bin/runvdr
Code:
#!/bin/sh

export LANG=nl_NL
export LC_COLLATE=nl_NL

PATH=/usr/local/bin:$PATH

VDRPRG="/usr/bin/vdr"
VDRCMD="/usr/bin/vdr -c /etc/vdr -E /usr/lib/vdr -l 3 --no-kbd \
                -L /usr/lib/vdr/plugins \
                -s /var/bin/vdrpoweroff.sh \
                -P sc \
                -P'xineliboutput -l none -r 37890 -p' \
                -P femon \
                -P osdteletext \
                -u root \
                $*"

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"
      if test $? -eq 0 -o $? -eq 2; then exit; fi
      echo "`date` reloading DVB driver"
      $KILL $VDRPRG
      sleep 10
      UnloadDriver
      LoadDriver
      echo "`date` restarting VDR"
      done
File: /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
File: /var/bin/ca.c
Code:
/* Evil evil evil hack  - lets newcamd write CWs to a file..
 *
 * Compile as follows:
 * gcc -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o ca.so ca.c -ldl
 *
 * then run newcamd with:
 *
 * LD_PRELOAD=./ca.so ./newcamd.i386 newcamd.conf
 *
 * Will then write CWs to /tmp/newcamhack.cw. A patched (vdr) sc will read
 * these codewords to decode a stream.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#define DEBUG

#if defined(__GNUC__) && !defined(__STRICT_ANSI__)

#include <dlfcn.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <linux/dvb/ca.h>
#include <linux/dvb/dmx.h>
#include <linux/dvb/frontend.h>
#include <linux/ioctl.h>
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>



/* BSDI has this functionality, but not define :() */
#if defined(RTLD_NEXT)
#define REAL_LIBC RTLD_NEXT
#else
#define REAL_LIBC ((void *) -1L)
#endif

static int cafd = -1;
/*static int cafd1 = -1;
static int cafd2 = -1;
static int cafd3 = -1;*/
static int ecm0 = -1;
static int ecm1 = -1;
static int ecm2 = -1;
static int ecm3 = -1;
static int caf;
static char filename[25];
static unsigned char scw[16];
static int gotcw = 0;
static int pids[64];

int sendcw(pid)
{
		
  unsigned char buffer[18];
   struct sockaddr_in saddr;
   int len;
 
   buffer[0]= pid & 0xff;
   buffer[1]= ((pid >> 8) & 0xFF);
   memcpy(&buffer[2], scw, 16);
 
   int ecmso = socket(PF_INET,SOCK_DGRAM,IPPROTO_UDP);
   
   fcntl(ecmso,F_SETFL,O_NONBLOCK);
   bzero(&saddr,sizeof(saddr));
   saddr.sin_family = AF_INET;
   saddr.sin_port = htons(9000);
   saddr.sin_addr.s_addr = inet_addr("127.0.0.1");
   len = connect(ecmso,(struct sockaddr *) &saddr,sizeof(saddr));
    if (len<0)
    	{
     printf("ca.so: Cannot connect UDP socket\n");
     close(ecmso);
     return 0;
   }
     printf("ca.so: Sendcw \n");
   if ( send(ecmso,buffer, 18, 0) == -1 ) { 
     printf("ca.so: Sendcw Error sending cw\n");
   }
   close(ecmso);
 	return 1;
}

ssize_t write (int __fd, __const void *__buf, size_t __n) __wur
{
static int (*func) (int __fd, __const void *__buf, size_t __n) = NULL;
   // printf ("write buffer %s \n",__buf);
  if (!func)
    func = (int (*) (int __fd, __const void *__buf, size_t __n)) dlsym (REAL_LIBC, "write");

//  if (__fd == ecm0) 
// god this is horrible but I can work out why I cant hook the /tmp/ecm0.info open...
  	{
  		if ((!strncmp(__buf,"pid:",4)) && (gotcw))
  			{
  				int pid;
  				 sscanf(__buf+8,"%x",&pid);
  				// we have pid and cw, cool we are ready to gooo...
  				//sendcw(pid);
  				
  				
  			}
  				
  	}
  return (*func) (__fd,__buf,__n);
}	
	



int
open (const char *pathname, int flags, ...)
{
  static int (*func) (const char *, int, mode_t) = NULL;
  va_list args;
  mode_t mode;
	char buffer[255];
 printf ("%s open...\n",pathname);
  if (!func)
    func = (int (*) (const char *, int, mode_t)) dlsym (REAL_LIBC, "open");

  va_start (args, flags);
  mode = va_arg (args, mode_t);
  va_end (args);

  if (strlen(pathname) > 40)
	exit(0);

  if (!strcmp (pathname, "/dev/dvb/adapter0/ca0"))
    {
#ifdef DEBUG
      printf ("hijacking ca0 open...\n");
#endif
		  cafd = (*func) ("/dev/zero", flags, mode);
		  printf("ca0 fd  = %d",cafd);
      return (cafd);
    }
/*  if (!strcmp (pathname, "/dev/dvb/adapter0/ca1"))
    {
#ifdef DEBUG
      printf ("hijacking ca1 open...\n");
#endif
		  cafd1 = (*func) ("/dev/zero", flags, mode);
		  printf("ca1 fd  = %d",cafd1);
      return (cafd1);
    }
  if (!strcmp (pathname, "/dev/dvb/adapter0/ca2"))
    {
#ifdef DEBUG
      printf ("hijacking ca2 open...\n");
#endif
		  cafd2 = (*func) ("/dev/zero", flags, mode);
		  printf("ca2 fd  = %d",cafd2);
      return (cafd2);
    }
  if (!strcmp (pathname, "/dev/dvb/adapter0/ca2"))
    {
#ifdef DEBUG
      printf ("hijacking ca2 open...\n");
#endif
		  cafd3 = (*func) ("/dev/zero", flags, mode);
		  printf("ca3 fd  = %d",cafd2);
      return (cafd3);
    }*/
    if (!strcmp (pathname, "/dev/dvb/adapter0/demux1"))
    {
	return(*func) ("/dev/dvb/adapter1/demux0", flags, mode);
    	//strcpy(pathname,"/dev/dvb/adapter1/demux0");
    }
    if (!strcmp (pathname, "/dev/dvb/adapter0/demux2"))
    {
	return(*func) ("/dev/dvb/adapter2/demux0", flags, mode);

    	//strcpy(pathname,"/dev/dvb/adapter2/demux0");
    }
    if (!strcmp (pathname, "/dev/dvb/adapter0/demux3"))
    {
	return(*func) ("/dev/dvb/adapter3/demux0", flags, mode);
    	//strcpy(pathname,"/dev/dvb/adapter3/demux0");
    }
  if (!strcmp(pathname,"/tmp/ecm.info"))
  	{
  		 printf ("hijacking /tmp/ecm.info open...\n");
  	return (ecm0 = (*func) (pathname,flags,mode));
  }
 
    return (*func) (pathname, flags, mode);
}

static int
cactl (int fd, int request, void *argp)
{
  ca_descr_t *ca = argp;
  ca_caps_t *cp = argp;
  ca_pid_t  *cpd = argp;
  static unsigned char cw[16];
  unsigned char *c;
  char buf[16];
int card =0;
//if (fd == cafd1) card = 1;
//if (fd == cafd2) card = 2;
//if (fd == cafd3) card = 3;	

#ifdef DEBUG
  printf ("hijacking ca%d ioctl,"
	   "(%d : %x - %p): ",card, fd, request, argp);
  switch (request) {
  case CA_RESET:
    printf ("CA_RESET\n");
    break;
  case CA_GET_CAP:
    printf ("CA_GET_CAP\n");
    break;
  case CA_GET_SLOT_INFO:
    printf ("CA_GET_SLOT_INFO\n");
    break;
  case CA_GET_DESCR_INFO:
    printf ("CA_GET_DESCR_INFO\n");
    break;
  case CA_GET_MSG:
    printf ("CA_GET_MSG\n");
    break;
  case CA_SEND_MSG:
    printf ("CA_SEND_MSG\n");
    break;
  case CA_SET_DESCR:
    printf ("CA_SET_DESCR\n");
    break;
  }
#endif

  switch (request)
    {
    case CA_GET_CAP:
      cp->slot_num = 2;
      cp->slot_type = CA_CI|CA_CI_LINK;
      cp->descr_num = 1;
      cp->descr_type = CA_ECD|CA_NDS|CA_DSS;
      return 0;
      
      case CA_SET_PID:
    printf ("CA_SET_PID\n");
    printf ("CA_SET_PID ahha here we are some decent data....\n");
    printf ("CS_SET_PID pid = %d, index = %d\n",cpd->pid, cpd->index);
    if (cpd->index >=0) 
    pids[cpd->index] = cpd->pid;
    return 1;
    case CA_SET_DESCR:
    	sprintf(filename,"/tmp/cw%d",card);
      caf = open(filename, O_WRONLY|O_CREAT,S_IROTH|S_IRUSR);
      c = &(ca->cw[0]);
#ifdef DEBUG
      printf("Parity: %d, Index: %d, CW: %02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx(%d)\n", ca->parity, ca->index, ca->cw[0], ca->cw[1], ca->cw[2], ca->cw[3], ca->cw[4],
		      ca->cw[5], ca->cw[6], ca->cw[7]);
#endif
      if (!ca->parity)
	 memcpy(&cw, c, 8);
      else
	 memcpy(&cw[8], c, 8);
#ifdef DEBUG
      printf("Wrote: %02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx:%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx\n",
		      cw[0], cw[1], cw[2], cw[3], 
		      cw[4], cw[5], cw[6], cw[7], 
		      cw[8], cw[9], cw[10], cw[11], 
		      cw[12], cw[13], cw[14], cw[15]);
#endif
      write (caf, &cw, 16);
      memcpy(scw,cw,16);
      gotcw = 1;
      close (caf);
      sendcw(pids[ca->index]);
    //  rename("/tmp/.canewcamdev", "/tmp/newcamhack.cw");
      break;
    }
  return 0;
}

int
ioctl (int fd, int request, void *a)
{
  static int (*func) (int, int, void *) = NULL;

  if (!func)                                                                    
    func = (int (*) (int, int, void *)) dlsym (REAL_LIBC, "ioctl");             

  if (fd == cafd) {
    return cactl (fd, request, a);
  } 
  
 /* if (fd == cafd1) {
  		return cactl (fd, request, a);
  	}
  if (fd == cafd2) {
  		return cactl (fd, request, a);
  	}
  	*/
  
    return (*func) (fd, request, a); 
  
  return 0;
}

int
close (int fd)
{
  static int (*func) (int) = NULL;
    printf ("Closing %d\n",fd);
  if (!func)
    func = (int (*) (int)) dlsym (REAL_LIBC, "close");

  if (fd == cafd)
  	{
    cafd = -1;
    printf ("Closing ca0...\n");
  }
  if (fd == ecm0)
  	{
  		ecm0 = -1;
  		printf ("Closing ecm0...\n");
  	}
#ifdef DEBUG
  
#endif
  return (*func) (fd);
}

#endif
File: /var/bin/run.sh
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
File: /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
File: /etc/init.d/vdr
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
Make sure that set executable rights for /etc/init.d/cccam, /etc/init.d/vdr, /var/bin/run.sh and /var/bin/runvdr using the chmod a+x [filename] command.

//Shalafi


-=[ Ubuntu Linux 9.04 | VDR 1.7.9 | HVR-4000 | eHD | Wavefield T55]=-

Last edited by shalafi; 28-February-2009 at 17:00..
   
Reply With Quote
The Following User Says Thank You to shalafi For This Useful Post:
marcomarco (05-July-2009)
Sponsored Links
Old
  (#3)
Ventura900
Member
 
Ventura900's Avatar
 
Offline
Posts: 48

Level: 5 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 118
Magic: 16 / 3231
Experience: 75%

Thanks: 2
Thanked 0 Times in 0 Posts
Join Date: Aug 2008
14-September-2008, 00:28

Hello sir :)

thx for all the hard work but im stuck at Xine-Lib 1.2 CVS:

ln –s /usr/local/lib/win32 /usr/local/lib/codecs

i got: no such file or dir error.

created the dir, but then:

ln –s /usr/local/lib/win32 /usr/local/lib/codecs
ln: accessing `–s': No such file or directory
ln: `/usr/local/lib/win32': hard link not allowed for directory

what could be the problem? i am root user in terminal.

regards
   
Reply With Quote
Old
  (#4)
shalafi
ECS Master
 
shalafi's Avatar
 
Offline
Posts: 412

Level: 18 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 446
Magic: 137 / 13623
Experience: 87%

Thanks: 127
Thanked 492 Times in 131 Posts
Join Date: Jul 2007
14-September-2008, 00:29

What was the output when you used the following commands:

Code:
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
//Shalafi


-=[ Ubuntu Linux 9.04 | VDR 1.7.9 | HVR-4000 | eHD | Wavefield T55]=-
   
Reply With Quote
Old
  (#5)
Ventura900
Member
 
Ventura900's Avatar
 
Offline
Posts: 48

Level: 5 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 118
Magic: 16 / 3231
Experience: 75%

Thanks: 2
Thanked 0 Times in 0 Posts
Join Date: Aug 2008
14-September-2008, 00:39

well i deleted the essential folder in win32 and tryed the "mv" line again and the output was nothing. but i see that the folder essential is in the win32 folder again. then tryed the ln -s again and output was:

[email protected]:/usr/local# cd src/
[email protected]:/usr/local/src# ln –s /usr/local/lib/win32 /usr/local/lib/codecs
ln: accessing `–s': No such file or directory
ln: `/usr/local/lib/win32': hard link not allowed for directory
   
Reply With Quote
Old
  (#6)
shalafi
ECS Master
 
shalafi's Avatar
 
Offline
Posts: 412

Level: 18 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 446
Magic: 137 / 13623
Experience: 87%

Thanks: 127
Thanked 492 Times in 131 Posts
Join Date: Jul 2007
14-September-2008, 00:50

Quote:
Originally Posted by Ventura900 View Post
well i deleted the essential folder in win32 and tryed the "mv" line again and the output was nothing. but i see that the folder essential is in the win32 folder again. then tryed the ln -s again and output was:

[email protected]:/usr/local# cd src/
[email protected]:/usr/local/src# ln –s /usr/local/lib/win32 /usr/local/lib/codecs
ln: accessing `–s': No such file or directory
ln: `/usr/local/lib/win32': hard link not allowed for directory
Why do you have the essential folder in win32? The mv command infact moves the essential-xxxx folder and renames it to win32.

If you do ls -il /usr/local/lib/win32 you should see files (dll's, ax's, etc).

Otherwise. Make the folder (mkdir -p /usr/local/lib/win32) and copy the contents of the essential-20071007 folder to the win32 location (cp ./essential-20071007/* /usr/local/lib/win32/).

You sure you don't get an error when uncompressing the tar.bz2 file? You might want to try: tar xjvf essential-20071007.tar.bz2 and follow the normal procedure.

Hm. Somebody else had the same problem. When he typed the command, he didn't had any problems. So perhaps there's a hidden space or a malformed thing in it which breaks the ln command. You might want to try typing it by hand instead of pasting it in putty or terminal.

//Shalafi


-=[ Ubuntu Linux 9.04 | VDR 1.7.9 | HVR-4000 | eHD | Wavefield T55]=-

Last edited by shalafi; 14-September-2008 at 02:01..
   
Reply With Quote
Old
  (#7)
Ventura900
Member
 
Ventura900's Avatar
 
Offline
Posts: 48

Level: 5 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 118
Magic: 16 / 3231
Experience: 75%

Thanks: 2
Thanked 0 Times in 0 Posts
Join Date: Aug 2008
14-September-2008, 11:52

okay now i cleaned up the win32 dir, and pretty sure it looks like it should now.

i followed your advice and typed in the ln -s line manually and that did the difference, so I think i can proceed now :)

thx again champ!
   
Reply With Quote
Old
  (#8)
shalafi
ECS Master
 
shalafi's Avatar
 
Offline
Posts: 412

Level: 18 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 446
Magic: 137 / 13623
Experience: 87%

Thanks: 127
Thanked 492 Times in 131 Posts
Join Date: Jul 2007
14-September-2008, 13:32

And I found the problem. I copied the command from my Dutch tutorial which was written in Word. And Word kinda fckd up the content by implying it was --s (which is then shorted to a long -).

I changed it in the tutorial. It should work correctly now :)

//Shalafi


-=[ Ubuntu Linux 9.04 | VDR 1.7.9 | HVR-4000 | eHD | Wavefield T55]=-
   
Reply With Quote
Old
  (#9)
Ventura900
Member
 
Ventura900's Avatar
 
Offline
Posts: 48

Level: 5 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 118
Magic: 16 / 3231
Experience: 75%

Thanks: 2
Thanked 0 Times in 0 Posts
Join Date: Aug 2008
14-September-2008, 22:51

Yeah i kind of thought that something went wrong in the copy, but thought that it was my browser that made the mixup.

just for others who are going to use the tutorial, there's a couple of "-" thats been converted in to the long "-". just look what the output from the terminal. if theres an error, thats probably the problem.

is it rightly assumed that VDR can't start if the cccam and the sattelite "code" isent set?
i don't got my shareline yet for CCcam. and i get a bunch of errors when trying to start, and assume its because of this lack?

regards.

Last edited by Ventura900; 15-September-2008 at 00:05..
   
Reply With Quote
Old
  (#10)
dudumania
Junior Member
 
dudumania's Avatar
 
Offline
Posts: 1

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

Thanks: 2
Thanked 0 Times in 0 Posts
Join Date: Sep 2008
17-September-2008, 18:03

First of all I want to thank you for the great tutorials. I followed your earlier tutorial to install the HVR-4000 and i installed it without any problems.

Now I want to install VDR with CCcam so i'm having some problems in this section: Xline-Lib 1.2 CVS...The problem is that i done everything that you explained but in the end when i type the "make" command i get this (make: *** No targets specified and no makefile found. Stop.).

When i ran (./autogen.sh --prefix=/usr --with-external-ffmpeg --disable-dxr3 --enable-w32dll --with-w32-path=/usr/local/lib/win32) I got this:

+ Running autopoint: autopoint: *** cvs program not found
autopoint: *** Stop.
done.

then it started to compile and in the end i got this: (config.status: error: cannot find input file: Makefile.in)

can you please help me find the problem?

regards
   
Reply With Quote
Reply

Bookmarks

Tags
1.7.0, budget, cards, hdtv, howto:


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