XBMC and VDR

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sis3970 Offline
Junior Member
Posts: 4
Joined: Dec 2008
Reputation: 0
Post: #1
Hi all,

I have an Ubuntu 8.04 running with VDR. Now I installed XBMC and must say, I like the look and feel.
Now I'm trying to integrate VDR into XBMC as far as technologie allows me to.

On the following youtube movie, there's a guy that has a link in his main menu that swiches over to vdr. Once done, XBMC kicks in again.

http://www.youtube.com/watch?v=_Cl70fq7sn8

Does anyone know how this can be accomplished?

Thanks for your patience!
Sis Wink
find quote
frostwork Offline
Member
Posts: 61
Joined: Aug 2008
Reputation: 0
Post: #2
you can build a pythonscript which launches vdr-sxfe script from xbmc
(ideally from your favorites)

$HOME/.xbmc/scripts/My Scripts/vdr.py :

#!/usr/bin/python
import os
os.system('$HOME/xbmc-scripts/vdr.sh')

and $HOME/xbmc-scripts/vdr.sh :

#!/bin/bash
vdr-sxfe -f xvdr://127.0.0.1


There's also a working (but slow when channelskipping) pluginin available here:
http://forum.xbmc.org/showthread.php?tid=36988
find quote
sis3970 Offline
Junior Member
Posts: 4
Joined: Dec 2008
Reputation: 0
Post: #3
Hi,

Thanks for your reply. I can use this for now.
But in the video, you'll see that there is a nice extra menu item on the main page. This would be better for the wife and kids.
Is this maybe a custom developed version?

Thanks
Sis
find quote
frostwork Offline
Member
Posts: 61
Joined: Aug 2008
Reputation: 0
Post: #4
i don't know the skin used in the video.
maybe you can place there your favorites whereever you want.
find quote
luftdufd Offline
Junior Member
Posts: 2
Joined: Dec 2008
Reputation: 0
Post: #5
I also know this video and there is a trick.
I don't know how this guy made it but i will show you how i did it.
Watch the video carefully. When he presses the Television button in the xbmc menu, xbmc closes ( watch the compiz burn animation and the menu at the bottom of the screen).
This can be achieved easily.
The theme is called Mediastream.
You get it from: http://teamrazorfish.co.uk/mediastream.html
Unzip and move it to the .xbmc/skin/ folder.
You have to edit it.
[EDIT] EDIT THE Home.xml as described in the following posting [/EDIT]
[SKIP]
I just took the My TV Shows button and use it now to start vdr.
edit the file Home.xml in the folder MediaStream/720p folder of the skin.
Search for the item with description "My TV Shows Button"
as here:

PHP Code:
<item id="8">
          <
description>My TV Shows Button</description>
            <
label$LOCALIZE[31008] </label>
            <
label2$LOCALIZE[31011] </label2>
            <
visible>!Skin.HasSetting(HideTVShows)</visible
<
onclick>XBMC.ActivateWindow(MyVideoLibrary,tvshowtitles,return)</onclick>
            </
item
and change the onclick to:
PHP Code:
<item id="8">
             <
description>My TV Shows Button</description>
             <
label$LOCALIZE[31008] </label>
             <
label2$LOCALIZE[31011] </label2>
             <
visible>!Skin.HasSetting(HideTVShows)</visible>
             <
onclick>XBMC.Shutdown()</onclick>
           </
item

From now on when you click on the My TV Shows Button xbmc will close.
[/SKIP]
Next i wrote a little script to start xbmc and vdr alternating.

Put the following code in a file called xbmc_vdr.sh.
I use ShmClient for the Softdevice plugin. If you use vdr-sxfe or something else replace that line with your application.
PHP Code:
#!/bin/bash
while [ -eq 1 ]; 
    do
        
xbmc
        ShmClient 
-f
    done 
start the vdr daemon and execute the xbmc_vdr.sh script.
xbmc should start. Switch the theme to Mediastream and click on the TV Shows button.
The script will loop forever so you have to kill the script to stop the loop Wink

greets luftdufd
(This post was last modified: 2008-12-17 23:24 by luftdufd.)
find quote
luftdufd Offline
Junior Member
Posts: 2
Joined: Dec 2008
Reputation: 0
Post: #6
I just found out how you can make your own menu entry.
Undo your changes of the Home.xml from my previous posting.

Add the following code after </item> of the My TV Shows Button.
PHP Code:
<item id="11">
       <
description>My VDR Button</description>
       <
label$LOCALIZE[31905] </label>
       <
label2$LOCALIZE[31906] </label2>
       <
visible>.HasSetting(HideTVShows)</visible>
       <
onclick>XBMC.Quit()</onclick>
</
item

Next you have to edit your language file in the Mediastream/language folder.
First find the file for your language.
edit the strings.xml by adding the following two lines before the </strings> tag.
<string id="31905">TV</string>
<string id="31906">Watch</string>
If you have done so the last 3 lines of the strings.xml should like like this:
PHP Code:
<string id="31905">TV</string>
  <
string id="31906">Watch</string>
</
strings
now start the xbmc_vdr.sh script and enjoy your new menu entry.

greets luftdufd
(This post was last modified: 2008-12-18 18:39 by luftdufd.)
find quote
sis3970 Offline
Junior Member
Posts: 4
Joined: Dec 2008
Reputation: 0
Post: #7
Laugh

Wow, nice one! Thank you very much.
Although, I changed XBMC.Shutdown() to XBMC.Quit() otherwise the PC rebooted.

One problem with this setup though.
When the focus is in XBMC, my VDR server is still responding to remote control commands.
Is there a way to limit the remote to focused appz only?

Thanks
Sis
find quote
jackyohh Offline
Junior Member
Posts: 28
Joined: Jul 2008
Reputation: 0
Post: #8
enable remote: svdrpsend remo on
disable remote: svdrpsend remo off
find quote
MrCoolSpan Offline
Junior Member
Posts: 10
Joined: Jun 2009
Reputation: 0
Post: #9
I have follow this guide, and i have made the TV button.
i have made the xbmc_vdr.sh script like this

#!/bin/bash
while [ 1 -eq 1 ];
do
xbmc
xine --no-splash -f
done
But every time i start the script xbmc start okay but when i select the TV button xbmc stops and i can see this in the terminal where i strate the xbmc_vdr.sh script

open /dev/sequencer or /dev/snd/seq: No such file or directory
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ""
after 136 requests (135 known processed) with 0 events remaining.

I have also try and add this to the script but just the same
xine --no-splash -f -D --verbose=2 -A alsa -L --post vdr_video --post vdr_audio --post upmix_mono "vdr:/tmp/vdr-xine/stream#demux:mpeg_pes"
I hope that some one can help me
find quote