Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > VDR and Kaffeine

VDR and Kaffeine Discussion, HOWTO: VDR 1.7.8, HDTV, VDPAU and CCcam with budget cards on Ubuntu 9.04 using S2API at Sharing receivers forum; Some extra stuff: Xine Keymap, Setting Vdr-Xine to autostart(vdr deamon script included) and Vdr-xine quick launcher icon(works with gnome only):(just ...

Reply
 
LinkBack Thread Tools Display Modes
Old
  (#31)
jackblow33
Junior Member
 
jackblow33's Avatar
 
Offline
Posts: 10

Level: 2 [♥ Bé-Yêu ♥]
Life: 0 / 25
Magic: 3 / 658
Experience: 0%

Thanks: 2
Thanked 4 Times in 4 Posts
Join Date: Jan 2009
04-August-2009, 14:39

Some extra stuff: Xine Keymap, Setting Vdr-Xine to autostart(vdr deamon script included) and Vdr-xine quick launcher icon(works with gnome only):(just a quick C&P from a thread somewere)
------------------------------------------------------------
PART 1: My Vdr auto start Scripts: ------
------------------------------------------------------------
Let's put some scripts in /usr/local/bin, just C&p the next lines to your command line terminal:
/usr/local/bin/vdrpoweroff
Code:
#!/bin/bash

/sbin/poweroff
chmod a+x /usr/local/bin/vdrpoweroff

------------------------------------------------------
/etc/init.d/vdr
Code:
#!/bin/sh

# To be copied to: /etc/init.d
# And type: 
### BEGIN INIT INFO
# Provides:          VDR
# Required-Start:   
# Required-Stop:     
# Default-Start:     0 1 2 3 4 5 6
# Default-Stop:     
# 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
#
echo "Vdr init.d script using: $1" >> /var/log/vdr.log & 
case "$1" in
    start)
        echo -n "Starting VDR "
   /usr/local/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
chmod a+x /etc/init.d/vdr; update-rc.d vdr defaults

-------------------------------------------------------------------------
/usr/local/bin/runvdr
Code:
#!/bin/bash

# runvdr: Loads the DVB driver and runs VDR
#
# If VDR exits abnormally, the driver will be reloaded
# and VDR restarted.
#
# In order to actually use this script you need to implement
# the functions DriverLoaded(), LoadDriver() and UnloadDriver()
# and maybe adjust the VDRPRG and VDRCMD to your particular
# requirements.
#
# Since this script loads the DVB driver, it must be started
# as user root. Add the option "-u username" to run VDR
# under the given user name.
#
# Any command line parameters will be passed on to the
# actual vdr program.
#
# See the main source file vdr.c for copyright information and
# how to reach the author.
#
# $Id: runvdr 2.0 2006/05/14 16:02:05 kls Exp $

VDRPRG="/usr/local/bin/vdr"
VDRCMD="$VDRPRG -c /etc/vdr -E /var/vdr -l 3 \
        -s /usr/local/bin/vdrpoweroff \
        -P sc \
        -P femon \
        -P skinreel \
        -P skinenigmang \
        -P'xine -r' \
        -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 0
}

# 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 hasnt 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
chmod a+x /usr/local/bin/runvdr
-----------------------------------------------

PART 2:
---------------------------------------------------------------------------------------
2.1 Setting Vdr-Xine to autostart
2.2 Controlling Vdr-xine with a Keyboard with this Vdr install
2.3 Xine quick launcher (icon) on your desktop
---------------------------------------------------------------------------------------

--------------------------------------------------------
2.1 Setting Vdr-Xine to autostart ---
--------------------------------------------------------
Make the frontend(Vdr-xine) start up on boot
using your Ubuntu menu, you can go to: System, Preferences, Startup Applications, and click add. Here we paste the command line you use to start the Vdr-xine.
We can use this command line with Xine-lib or Xine-vdpau:
Code:
Name: Vdr-xine (or anything you want)
Command: xine --no-gui --no-splash -f --verbose=2 -A alsa -L --post vdr_video --post vdr_audio --post upmix_mono "vdr:/tmp/vdr-xine/stream#demux:mpeg_pes"
Comment:(optional, put what you want here)

Now when your computer starts, this scripts are run to start Vdr and Xine.
If something goes wrong you can find more info in the logfile: /var/log/vdr.log

------------------------------------------------------------------------------------------
2.2 Controlling Vdr-xine with a Keyboard with this Vdr install --
------------------------------------------------------------------------------------------
Just use mod4(windows button) to control vdr,
Keymaps ex.: Mod4+F12=VDRPowerOff, Mod4+backspace=back, Mod4+g=vdr menu setup, Mod4 + F1=red, Mod4+F2=green, Mod4+F3=yellow, Mod4+F4=blue, Mod4+up=Up, Mod4+down=Down ...
Just read the Keymap file for the rest.
Can grab a complete keymap file here: hxxp://home.vrweb.de/~rnissl/keymap
And copy it to hidden folder(home folder = vdr in this example): /vdr/.xine
Note: ~/.xine/keymap is an hidden files (in nautilus: tab /edit /preferences And select: Show hidden and backup files. After this you have access to your .xine folder).

--------------------------------------------------------------
2.3 Xine quick launcher on your desktop ---
--------------------------------------------------------------
You can have a Xine launcher on you desktop with this:
C & P the command line to terminal and it is important to execute this commands as simple user not as root:
DO NOT RUN THIS AS ROOT
Double-click it and mark it as trusted and you now have the xine icon on your Desktop
Code:
echo "[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=VDR-Xine
Description=xine with vdr enable
Icon=/usr/local/src/xine-ui/misc/desktops/icons/48/xine.png
Exec=xine --no-splash --no-gui -f --verbose=2 -A alsa -L --post vdr_video --post vdr_audio --post upmix_mono "vdr:/tmp/vdr-xine/stream#demux:mpeg_pes"
" >> ~/Desktop/vdr-xine.desktop

Last edited by jackblow33; 04-August-2009 at 19:26..
   
Reply With Quote
The Following User Says Thank You to jackblow33 For This Useful Post:
Flachzange (04-August-2009)
Old
  (#32)
Flachzange
Junior Member
 
Flachzange's Avatar
 
Offline
Posts: 2

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

Thanks: 2
Thanked 0 Times in 0 Posts
Join Date: Aug 2009
04-August-2009, 15:23

thanks jackblow33 for the keymap. Now I can control xine via keyboard and OSD :-)
   
Reply With Quote
Sponsored Links
Old
  (#33)
tomlase
Junior Member
 
tomlase's Avatar
 
Offline
Posts: 7

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

Thanks: 2
Thanked 0 Times in 0 Posts
Join Date: Oct 2008
Age: 34
09-August-2009, 04:12

my problem on installation is that VDR 1.7.8 requires DVB API Version 5...
any ideas what to do guys?
   
Reply With Quote
Old
  (#34)
shalafi
ECS Master
 
shalafi's Avatar
 
Offline
Posts: 412

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

Thanks: 127
Thanked 492 Times in 131 Posts
Join Date: Jul 2007
09-August-2009, 11:52

Quote:
Originally Posted by tomlase View Post
my problem on installation is that VDR 1.7.8 requires DVB API Version 5...
any ideas what to do guys?
You don't have S2API installed or the Make.config doesn't have the right location pointed to your S2API download. Use the S2API tutorial from here and no need to edit Make.config since it's allready configured to use /usr/local/src/s2-liplianin/linux.

//Shalafi


-=[ Ubuntu Linux 9.04 | VDR 1.7.9 | HVR-4000 | eHD | Wavefield T55]=-
   
Reply With Quote
Old
  (#35)
Henkske
Permanent Banned
 
Henkske's Avatar
 
Offline
Posts: 17

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 46
Magic: 5 / 1158
Experience: 86%

Thanks: 26
Thanked 0 Times in 0 Posts
Join Date: Jul 2009
15-August-2009, 11:07

Thanx you for your excellent guide. Finally got it running

Only problem still is that i cant change channels. :)
   
Reply With Quote
Old
  (#36)
atomion
Junior Member
 
atomion's Avatar
 
Offline
Posts: 3

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

Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Aug 2009
15-August-2009, 20:21

I have the exactly same problem as anis - cannot connect xine to VDR.
But VDR is definitely running - no fatal errors in the log, and the sockets in /tmp/vdr-xine/ are there - they are created after starting VDR, and they disappear after stopping it. So why does xine claim it cannot open it. Well, it says there is no input plugin, but what plugin would that be, how can I check it is there or not, how could this happen? Followed all the steps for basic installation, just left out the "special" plugins not needed for a first try.

Quote:
[5122] [input_vdr] vdr_class_get_instance
xine: cannot find input plugin for MRL [vdr:/tmp/vdr-xine/stream#demux:mpeg_pes]

---------------------- (ERROR) ----------------------
got XINE_ERROR_NO_INPUT_PLUGIN.
------------------ (END OF ERROR) -------------------


---------------------- (ERROR) ----------------------
- xine engine error -

There is no input plugin available to handle 'vdr:/tmp/vdr-xine/stream#demux:mpeg_pes'.
Maybe MRL syntax is wrong or file/stream source doesn't exist.
------------------ (END OF ERROR) -------------------
The web is full of questions about that error, just no solution (except obvious things like VDR really not running..)

Very sad thing. Desperately in need of help.. Thanks!
   
Reply With Quote
Old
  (#37)
shalafi
ECS Master
 
shalafi's Avatar
 
Offline
Posts: 412

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

Thanks: 127
Thanked 492 Times in 131 Posts
Join Date: Jul 2007
16-August-2009, 18:59

You've got an old xine and/or xine-ui installed on your configuration. Remove the old xine and/or xine-ui packages through aptitude.

//Shalafi


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

Level: 9 [♥ Bé-Yêu ♥]
Life: 0 / 221
Magic: 39 / 6480
Experience: 84%

Thanks: 12
Thanked 28 Times in 13 Posts
Join Date: Jan 2008
16-August-2009, 22:31

Shalafi:

I try this step (Xine-Lib 1.2 CVS:) and i get the below error

Code:
xine_musepack_decoder.c:56:32: error: musepack/musepack.h: No such file or directory
xine_musepack_decoder.c:84: error: expected specifier-qualifier-list before mpc_reader
xine_musepack_decoder.c:125: error: expected =, ,, ;, asm or __attribute__ before mpc_reader_seek
xine_musepack_decoder.c: In function mpc_reader_get_size:
xine_musepack_decoder.c:168: error: mpc_decoder_t has no member named file_size
xine_musepack_decoder.c: At top level:
xine_musepack_decoder.c:173: error: expected =, ,, ;, asm or __attribute__ before mpc_reader_canseek
xine_musepack_decoder.c: In function mpc_decode_frame:
xine_musepack_decoder.c:211: error: MPC_DECODER_BUFFER_LENGTH undeclared (first use in this function)
xine_musepack_decoder.c:211: error: (Each undeclared identifier is reported only once
xine_musepack_decoder.c:211: error: for each function it appears in.)
xine_musepack_decoder.c:220: error: implicit declaration of function mpc_decoder_decode
xine_musepack_decoder.c:220: warning: nested extern declaration of mpc_decoder_decode
xine_musepack_decoder.c:220: error: mpc_decoder_t has no member named decoder
xine_musepack_decoder.c:211: warning: unused variable buffer
xine_musepack_decoder.c: In function mpc_decode_data:
xine_musepack_decoder.c:272: error: mpc_decoder_t has no member named file_size
xine_musepack_decoder.c:281: error: mpc_decoder_t has no member named reader
xine_musepack_decoder.c:282: error: mpc_decoder_t has no member named reader
xine_musepack_decoder.c:282: error: mpc_reader_seek undeclared (first use in this function)
xine_musepack_decoder.c:283: error: mpc_decoder_t has no member named reader
xine_musepack_decoder.c:284: error: mpc_decoder_t has no member named reader
xine_musepack_decoder.c:285: error: mpc_decoder_t has no member named reader
xine_musepack_decoder.c:285: error: mpc_reader_canseek undeclared (first use in this function)
xine_musepack_decoder.c:286: error: mpc_decoder_t has no member named reader
xine_musepack_decoder.c:303: error: implicit declaration of function mpc_streaminfo_init
xine_musepack_decoder.c:303: warning: nested extern declaration of mpc_streaminfo_init
xine_musepack_decoder.c:303: error: mpc_decoder_t has no member named streaminfo
xine_musepack_decoder.c:305: error: implicit declaration of function mpc_streaminfo_read
xine_musepack_decoder.c:305: warning: nested extern declaration of mpc_streaminfo_read
xine_musepack_decoder.c:305: error: mpc_decoder_t has no member named streaminfo
xine_musepack_decoder.c:305: error: mpc_decoder_t has no member named reader
xine_musepack_decoder.c:314: error: mpc_decoder_t has no member named streaminfo
xine_musepack_decoder.c:315: error: mpc_decoder_t has no member named streaminfo
xine_musepack_decoder.c:324: error: mpc_decoder_t has no member named current_frame
xine_musepack_decoder.c:328: error: implicit declaration of function mpc_decoder_setup
xine_musepack_decoder.c:328: warning: nested extern declaration of mpc_decoder_setup
xine_musepack_decoder.c:328: error: mpc_decoder_t has no member named decoder
xine_musepack_decoder.c:328: error: mpc_decoder_t has no member named reader
xine_musepack_decoder.c:330: error: mpc_decoder_t has no member named decoder_ok
xine_musepack_decoder.c:336: error: mpc_decoder_t has no member named streaminfo
xine_musepack_decoder.c:383: error: mpc_decoder_t has no member named current_frame
xine_musepack_decoder.c:383: error: mpc_decoder_t has no member named streaminfo
xine_musepack_decoder.c:392: error: mpc_decoder_t has no member named decoder_ok
xine_musepack_decoder.c:398: error: implicit declaration of function mpc_decoder_initialize
xine_musepack_decoder.c:398: warning: nested extern declaration of mpc_decoder_initialize
xine_musepack_decoder.c:398: error: mpc_decoder_t has no member named decoder
xine_musepack_decoder.c:398: error: mpc_decoder_t has no member named streaminfo
xine_musepack_decoder.c:409: error: mpc_decoder_t has no member named decoder_ok
xine_musepack_decoder.c:433: error: mpc_decoder_t has no member named current_frame
xine_musepack_decoder.c:433: error: mpc_decoder_t has no member named streaminfo
make[2]: *** [xineplug_decode_mpc_la-xine_musepack_decoder.lo] Error 1
make[2]: Leaving directory `/usr/local/src/xine-lib-1.2/src/audio_dec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/xine-lib-1.2/src'
make: *** [all-recursive] Error 1
[email protected]:/usr/local/src/xine-lib-1.2#


<== - No Local ATM | CCcam | 1Gbps VPS - ==>
   
Reply With Quote
Old
  (#39)
shalafi
ECS Master
 
shalafi's Avatar
 
Offline
Posts: 412

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

Thanks: 127
Thanked 492 Times in 131 Posts
Join Date: Jul 2007
16-August-2009, 22:44

@SeanCorky

Try the following:

Code:
aptitude install libmpcdec-dev
That should solve your musepack problems. It was something introduced in the latest SVN editions of Xinelib 1.2. I've updated the startpost accordingly.

//Shalafi


-=[ Ubuntu Linux 9.04 | VDR 1.7.9 | HVR-4000 | eHD | Wavefield T55]=-
   
Reply With Quote
The Following 2 Users Say Thank You to shalafi For This Useful Post:
mitsus (17-August-2009), SeanCorky (18-August-2009)
Old
  (#40)
atomion
Junior Member
 
atomion's Avatar
 
Offline
Posts: 3

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

Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Aug 2009
17-August-2009, 17:23

Quote:
Originally Posted by shalafi View Post
You've got an old xine and/or xine-ui installed on your configuration. Remove the old xine and/or xine-ui packages through aptitude.
I do not use Ubuntu, but a current milestone of Suse 11.2 (Kernel 2.6.30 and GCC4.4). There was no xine on the system before I started compiling it myself following the instructions. At least I am 99% sure about that. Will continue my struggle tomorrow. Thanks for the reply.
   
Reply With Quote
Reply

Bookmarks

Tags
1.7.8, 9.04, budget, cards, cccam, hdtv, howto:, s2api, ubuntu, vdpau


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