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


- semerchet - 2009-05-09

ibydos Wrote:hi,
But I cant download the patch, seems it is gone.

Try

Code:
wget http://www.xbmc.org/trac/raw-attachment/ticket/5595/xbmc-svn19616-pvr.patch.gz

For xineliboutput try the cvs-version:

Code:
cvs -z3 -d:pserver:[email protected]:/cvsroot/xineliboutput co vdr-xineliboutput



- biggles - 2009-05-09

beckynet Wrote:Hello tmpdir

do :

apt-get install xv
apt-get purge libxine2-dev

and after that redo the part about Xine Library

after you can compile xineliboutput

@+ Olivier

Where can I find a repository for xv?
I only get:
"Package xv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package xv has no installation candidate"


- semerchet - 2009-05-09

biggles Wrote:Where can I find a repository for xv?
I only get:
"Package xv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package xv has no installation candidate"

Code:
sudo apt-get install libxv-dev



- ibydos - 2009-05-09

hi,

thanks for you help, got build 19616 running now.
Same bugs as others reported before (no HDTV with VDPAU enabled for example). But its still pretty cool and I think the bugs are getting fixed sooner or later.

There is one last thing I need help with... ...the remote.
Remote is a IR Reciever connected to my WinTV NOVA S2-HD.

I got lirc up and running. With irw iam getting the input:

Code:
root@xbmc:~# irw
000000008001001c 00 OK NovaS2
00000000800100cf 00 Play NovaS2
0000000080010080 00 Stop NovaS2
0000000080010077 00 Pause NovaS2

I googled a bit howto get it working with XBMC, some say I need to edit lircd.xml others say keymap.xml others say I need both. Sadly I couldnt find both files on any of the xbmc dirs nor in ~/.xbmc/userdata

Thats what I did then:
Created both files in ~/.xbmc/userdata (lircd.xml and keymap.xml).

Still no success. Help please Huh

P.S. Here are my created files:
(I just configed OK Play Stop Pause for now)
http://91.121.154.212/~usr/xbmc/lircmap.xml
http://91.121.154.212/~usr/xbmc/keymap.xml


- tmpdir - 2009-05-10

hey beckynet, sorry for the late response busy weekend Wink

thanks for the suggestion... it solved my problem.


- semerchet - 2009-05-10

ibydos Wrote:hi,
There is one last thing I need help with... ...the remote.
Remote is a IR Reciever connected to my WinTV NOVA S2-HD.
[/url]

Hi, in my /usr/local/share/xbmc/system/Lircmap.xml is a predefined remote device Hauppauge_350:

Code:
<remote device="Hauppauge_350">
                <pause>Pause</pause>
                <stop>Stop</stop>
                <forward>Forward</forward>
                <reverse>Rewind</reverse>
                <left>Left</left>
...
        </remote>

All what you need is a lircd.conf like this:

Code:
begin remote

  name  Hauppauge_350
...

Of course the remote keys should be have the same names.

Greetings from Berlin


- WBFT - 2009-05-11

Hi, when trying to configure xbmc as described in your guide I get,

Code:
checking for strdup... yes
checking for strerror... yes
checking for memmove... yes
checking for getpgrp... yes
checking for setpgrp... (cached) yes
checking for gettimeofday... yes
checking for major... yes
checking for getaddrinfo... no
Fatal: You must get working getaddrinfo() function.
       or you can specify "--disable-ipv6".
/usr/share/xbmc/linuxport/XBMC
configure: error: Submodule xbmc/lib/libPython/Python failed to configure
root@MediaStation:/usr/share/xbmc/linuxport/XBMC#

Tried this and tried to reinstall some packages but that wasnt the solution.
Code:
sudo aptitude update && sudo aptitude install build-essential

Any ideas?

(running Jaunty)


- 007korek - 2009-05-14

Hello!

Do you know the latest xbmc version which can be patched with xbmc-svn19616-pvr.patch? It means the patch is appled without any fails.

Thanks.


- SmSpillaz - 2009-05-15

So I seem to have gotten -that- close but not quite there yet. Rolleyes

I've gotten everything compiled and up and running, there are just a few caveats from getting the whole thing to link together.

Firstly - with VDR, I've gone from 'No Signal' to somewhat of a signal but apparantly one that Xine has trouble dealing with, so I get output like this when running 'vdr-sxfe --video=xshm' (I have to use XShm because xineliboutput wasn't configured with xv at the time. Not sure if that makes much of a difference though).

The problem isn't the card or the channels.conf for that matter as they both work fine with kaffeine and MeTV

Code:
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1132527208 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 356028493 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 948932760 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1272348372 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 92401912 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 442421705 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 66658 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 2144070204 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 798144554 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1157017174 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1999380981 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1638320297 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 498864829 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1100687401 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 549609830 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1193678857 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1190005047 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 2040611861 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 70499 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 120553176 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1321954730 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 656727208 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 606101353 bytes)
[16906] [input_vdr] Connections closed.
sam@Foxconn-U904:/var/log$ cat ~/vdrlog.log
vdr-sxfe 1.0.3  (build with xine-lib 1.1.90, using xine-lib 1.1.90)

Video driver: xshm

VDR server not given, searching ...
Found VDR server: host 192.168.2.4, port 37890


Press Esc to exit

Terminating...

Secondly, with XBMC itself, I've got streamdev enabled and port 2004 is open, but it seems that XBMC can't connect to it, even though I've added my IP address in the streamdevhosts.conf file.

Image

Thanks in advance for any advice.

- Sm


- sosi - 2009-05-15

Hi,

Quote:[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 1132527208 bytes)
[16952] [input_vdr] TCP: Buffer too small (8192 ; incoming frame 356028493 bytes)

try this one it should work.

http://projects.vdr-developer.org/git/?p=xineliboutput.git;a=snapshot;h=e48ba2c544c66939afe7a700113572f4e43d1634;sf=tgz

Quote:Secondly, with XBMC itself, I've got streamdev enabled and port 2004 is open, but it seems that XBMC can't connect to it, even though I've added my IP address in the streamdevhosts.conf file.

Try localhost -> 127.0.0.1


- SmSpillaz - 2009-05-15

sosi Wrote:Hi,



try this one it should work.

http://projects.vdr-developer.org/git/?p=xineliboutput.git;a=snapshot;h=e48ba2c544c66939afe7a700113572f4e43d1634;sf=tgz
Thanks, I'll try it out now.
Quote:Try localhost -> 127.0.0.1

I've got 127.0.0.1, 255.255.255.0, 192.168.2.4 (My Private IP), 0.0.0.0 specified :/. Is there any way to get a log of why XBMC can't connect or do I need to hunt through the source?


- sosi - 2009-05-15

Quote:Is there any way to get a log of why XBMC can't connect

maybe in / tmp and /var/log/syslog or /var/log/messages for some streamdev messages.


- SmSpillaz - 2009-05-15

Hi again,

Just managed to check out your xineliboutput sources, but it seems to compile with errors, the most important ones being.

Code:
xineliboutput.c:30:24: error: vdr/plugin.h: No such file or directory
xineliboutput.c:31:22: error: vdr/i18n.h: No such file or directory
In file included from xineliboutput.c:34:
config.h:19:24: error: vdr/config.h: No such file or directory
In file included from xineliboutput.c:35:
device.h:15:24: error: vdr/device.h: No such file or directory
device.h:16:23: error: vdr/tools.h: No such file or directory
In file included from xineliboutput.c:36:
setup_menu.h:14:27: error: vdr/menuitems.h: No such file or directory
In file included from xineliboutput.c:38:
media_player.h:14:24: error: vdr/player.h: No such file or directory

Poking around the buildsystem, I noticed that there are a few assumptions that aren't met - so if you do need to use this, do something like:

Code:
cd ~/src/vdr
mkdir include/vdr
cp *.h include/vdr
cd PLUGINS/src/xineliboutput
./configure && make

Testing the code now.

Edit: Ok, that snapshot seems to work. Thanks

Also, with regards to streamdev not talking to xbmc, I didn't find any useful output from logs.
Edit 2: I can telnet to localhost 2004, so not sure why xbmc is playing up. I'm recompiling now
Edit 3: So I've recompiled, but XBMC just dies with a segfault and that same message when I try to add the configuration for a streamdev server. No way to get a backtrace AFAICT, gdb just dies when trying to run xbmc and I can't attach either. I *could* try valgrind though
Edit 3:

Image Big Grin

The segfault was fixed by adding 'm_thread' = NULL to the PVRClientVDR constructor in pvrclient-vdr.cpp


- dubstar_04 - 2009-05-18

does anyone fancy building a deb for testing?

Once you have built xbmc and VDR run:

Code:
dpkg-buildpackage -rfakeroot

In the respective builds before you do a make install?

Its been a while since i last built a deb so there may be a better way to achive this.


Help Timeline - beckynet - 2009-05-21

I use VDR 1.7.7 but the trouble also present in VDR 1.7.4.

In XBMC I can view EPG NOW, EPG NEXT, but in the global view I can only view the channels.

Must I install a plugin in VDR ? Or Patch VDR to view the timeline ?

Thanks a Lot

Olivier