Kodi Community Forum
[LINUX] HOW-TO get Live TV with VDR working in XBMC for Linux - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- Thread: [LINUX] HOW-TO get Live TV with VDR working in XBMC for Linux (/showthread.php?tid=45314)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


- splinux - 2009-03-23

splinux Wrote:I tried r18173, but it is worser. I sometimes have vdr segmentation faults when switching channels, or a message channel blocked. When I try to play an iso file (dvd) I get a screen with flashing color blocks, lines, ... but no image. I saw one of your message about the r18188. Is it worth to try that one ?
What is the roadmap for the future ? When do we except to see the "TV" module inside the trunk xbmc ?
thanks,

sp
I compiled the last svn, and also with that one, I can't play iso files.
Any idea what it could be ?
thanks,
sp


- splinux - 2009-03-24

splinux Wrote:I compiled the last svn, and also with that one, I can't play iso files.
Any idea what it could be ?
thanks,
sp

*****that problem is solved by erasing my ./xbmc directory*****


- splinux - 2009-03-24

I have a new problem now !
I compiled the patched streamdev plugin from the first post with vdr-1.7.0. The compile was ok, but when I start VDR, I get :
vdr: /usr/local/lib/vdr/libvdr-streamdev-server.so.1.7.0: undefined symbol: ZN10cIndexFile3GetEiPtPxPbPi
any idea ?

thanks,

sp


- sosi - 2009-03-24

Hi,

Try : make clean-plugins
make clean
make
make plugins

then reinstall vdr


- freezy - 2009-03-24

By the way, Alwin is working on an updated Patch, so you might as well wait for it, since it probably will give you much less of a headache than my hack for 1.7.4...


- h.udo - 2009-03-24

That's great news, freezy.
Especially because unified-pvr branch isn't ready for inclusion on 9.04, AFAIK.


- 1455 - 2009-03-26

As I understand it, there are two ways to built the XBMC+VDR:
1.According first page of this topic (for example as on http://image006.mylivepage.ru/chunk6/974269/2287/chlist.png )
This has been done.
2. Another way - Python plugin: http://forum.xbmc.org/showthread.php?tid=36988

My Q:
I need to build XBMC as on: http://www.youtube.com/watch?v=N5VRujituS0&feature=related
In other words, when i press the "TV" button i been waiting VDR-OSD with plugins and own skins.
I am interested how it can be done? In this case needed a second method?


- rickx - 2009-03-26

Yes, that's another method. I assume he configured lirc to call scripts which switch between xbmc and vdr - i.e. close one, then open the other, and back. I'd seen this method with mythtv, but for vdr it's the first time. And...it seems a very nice solution. Would be interesting to hear from the author...


- freezy - 2009-03-26

Note that the Python version doesn't require any "building", you put the script into the right folder and it should work. I didn't test it though, and I'm not sure how it is still maintained.


- h.udo - 2009-03-26

1455 Wrote:As I understand it, there are two ways to built the XBMC+VDR:
1.According first page of this topic (for example as on http://image006.mylivepage.ru/chunk6/974269/2287/chlist.png )
This has been done.
2. Another way - Python plugin: http://forum.xbmc.org/showthread.php?tid=36988

My Q:
I need to build XBMC as on: http://www.youtube.com/watch?v=N5VRujituS0&feature=related
In other words, when i press the "TV" button i been waiting VDR-OSD with plugins and own skins.
I am interested how it can be done? In this case needed a second method?

http://forum.xbmc.org/showthread.php?tid=42205

I'm trying to do this my self, since alwinus patch/unified-pvr is not going into 9.04. Would be great to have something like that working.

Any ideias as to the simplest/best method?


- 1455 - 2009-03-27

Yes it works. Thanks for the link.
Download skin:
Code:
svn co https://xboxmediacenter.svn.sourceforge.net/svnroot/xboxmediacenter/MediaStream
In Home.xml find "My TV Shows Button" and add:
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>
------------------>
In /usr/local/share/xbmc/skin/MediaStream/language/English add 2 lines at the end:
Code:
<------------------------------
  <string id="31905">TV</string>
  <string id="31906">Watch</string>
</strings>
script "XBMC-VDR" for vdr-xine (0.9.1)
XBMC - the first, VDR - the second place:
Code:
#!/bin/bash

        vdr -c /PATH/vdr -v /PATH/video --localedir=/PATH/vdr/locale --lib=/PATH/vdr/plugins/lib -P'sc' -P'xine -r' -P'reelchannelscan' -P'rotor' -P'chanman' -P'chanorg' -P'cpumon' -P'femon' -P'mplayer -M /PATH/vdr/plugins/mplayer.sh' -P'mp3' -P'fepg' -P'filebrowser' -P'hdmonitor' -P'osdteletext' -P'prefermenu' -P'sleeptimer' -P'netconfig' -P'skinreel' -P'skinenigmang -f /PATH/vdr/plugins/skinenigmang/fonts -l /PATH/vdr/plugins/skinenigmang/hqlogos' -P'manual' -P'aide' -P'ripit' -P'systeminfo' -P'devstatus' -P'webvideo' -P'iptv' -P'sked' -P'radio -f /PATH/vdr/plugins/radio' -P'games' &

while [ 1 -eq 1 ];
    do
        xbmc -fs
        xine -f --post vdr_video --post vdr_audio --post upmix_mono "vdr:/tmp/vdr-xine/stream#demux:mpeg_pes"
    done
Similarly, VDR - first and XBMC - second.
Code:
<--------------------------
while [ 1 -eq 1 ];
    do
        xine -f --post vdr_video --post vdr_audio --post upmix_mono "vdr:/tmp/vdr-xine/stream#demux:mpeg_pes"
        xbmc -fs  
    done
VDR file commands.conf where we need to add:
Code:
1 Close VDR: /usr/local/bin/exit.sh
2 Reboot HTPC?: sudo reboot
3 Shut down HTPC?: sudo halt
4 Start XBMC: pkill -9 xine
...........................................>
where exit.sh:
Code:
pkill -9 XBMC-VDR
pkill -9 xbmc
pkill -9 xine
pkill -9 vdr
passwordless sudoers
Code:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
# Uncomment to allow members of group sudo to not need a password
#%sudo ALL=NOPASSWD: ALL
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%Put-your-User-Name ALL=NOPASSWD: ALL
Seems this is the simplest method.


- philter - 2009-03-27

That method kills vdr right? So while you are watching XBMC your VDR is not running...and no timers can record. Maybe have two startup scripts for VDR...one with the output plugin (whatever you use to see TV) and one without the output plugin. When you kill vdr to start xbmc, you kill vdr, then startup the 2nd vdr script with no output plugin...leaving the output of your vidcard free for xbmc. Then when xbmc is killed, you kill the 'no ouptut' vdr instance and re-run the normal vdr startup script.

Would that work?


- freezy - 2009-03-27

Guys...
How about keeping discussions about the script approach here and the native approach in this thread? Would make things easier to sort through...


- 1455 - 2009-03-28

Quote:That method kills vdr right?
No. Kills vdr only script exit.sh, which is intended to return to the X.
The script "XBMC-VDR" is resident in memory and then runs a XINE or XBMC unless yourself do't want to stop this script. Vdr and this script not unloaded from memory.

Return of vdr to xbmc - via vdr OSD command "Start XBMC".
It operates as a switch between the xbmc and xine, that can't be run simultaneously. All this reminds swings. Swap in the script xbmc and xine, you can change the firing order XBMC <-> xine.
It is tested and works if only the "WatchTV"-button closing XBMC.


- joolz - 2009-03-30

can we get this documented on the wiki?