[LINUX] HOW-TO get Live TV with VDR working in XBMC for Linux

  Thread Rating:
  • 14 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mwfv Offline
Junior Member
Posts: 21
Joined: Oct 2007
Reputation: 0
Post: #41
When i patch the Streamdev look like this

Code:
cd /home/vdr/src/vdr/PLUGINS/src
cvs -d:pserver:anoncvs@vdr-developer.org:/var/cvsroot login
cvs -d:pserver:anoncvs@vdr-developer.org:/var/cvsroot co streamdev
wget http://trac.xbmc.org/raw-attachment/ticket/5595/streamdev-cvs050209_xbmc-v3.patch
patch -p0 < streamdev-cvs050209_xbmc-v3.patch

output
Code:
patching file Makefile
[b]Hunk #1 FAILED at 61[/b].
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file server/connectionVTP.c
patching file server/connectionVTP.h
patching file server/recplayer.c
patching file server/recplayer.h
Oo
find quote
knatsch Offline
Member
Posts: 74
Joined: May 2007
Reputation: 0
Post: #42
Do a
Code:
cvs update -C -D 2/5/09
before applying the patch.
find quote
knatsch Offline
Member
Posts: 74
Joined: May 2007
Reputation: 0
Post: #43
I also got a problem.
I can see my channel list in xbmc, but I can't get a tv signal. When I click on a channel, nothing happens.
In xbmc.log there is the following suspicious line but I don't know how to fix that:
Code:
ERROR: CDVDPlayer::OpenInputStream - error opening [tv://3]
I am running xbmc with the newest patch from alwinus (r17664) and the backend is a patched vdr-1.7.2 with patched streamdev.

edit: Streaming to vlc is possible
(This post was last modified: 2009-02-15 16:09 by knatsch.)
find quote
megacrypto Offline
Senior Member
Posts: 219
Joined: Apr 2008
Reputation: 0
Post: #44
im getting an error while trying to compile streamdev:
Code:
cvs -d:pserver:anoncvs@vdr-developer.org:/var/cvsroot login
cvs -d:pserver:anoncvs@vdr-developer.org:/var/cvsroot co streamdev
wget http://trac.xbmc.org/raw-attachment/ticket/5595/streamdev-cvs050209_xbmc-v3.patch
cd streamdev
cvs update -C -D 2/5/09
cd ..
patch -p0 < streamdev-cvs050209_xbmc-v3.patch

this is what i get:
Code:
Plugin streamdev:
make[1]: Entering directory `/home/mega/src/vdr-1.7.0-br/PLUGINS/src/streamdev'
g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -fPIC -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"streamdev"' -I/home/mega/src/v4l-dvb/linux/include -I../../../include -I. -o server/connectionVTP.o server/connectionVTP.c
server/connectionVTP.c: In constructor ‘cLSTEHandler::cLSTEHandler(cConnectionVTP*, const char*)’:
server/connectionVTP.c:119: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:124: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In constructor ‘cLSTEHandler::cLSTEHandler(cConnectionVTP*, const char*)’:
server/connectionVTP.c:119: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:124: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In constructor ‘cLSTEHandler::cLSTEHandler(cConnectionVTP*, const char*)’:
server/connectionVTP.c:119: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:124: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In member function ‘bool cLSTEHandler::Next(bool&)’:
server/connectionVTP.c:171: warning: format not a string literal and no format arguments
server/connectionVTP.c: In constructor ‘cLSTCHandler::cLSTCHandler(cConnectionVTP*, const char*)’:
server/connectionVTP.c:337: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:353: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In constructor ‘cLSTCHandler::cLSTCHandler(cConnectionVTP*, const char*)’:
server/connectionVTP.c:337: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:353: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In constructor ‘cLSTCHandler::cLSTCHandler(cConnectionVTP*, const char*)’:
server/connectionVTP.c:337: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:353: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In member function ‘bool cLSTCHandler::Next(bool&)’:
server/connectionVTP.c:381: warning: format not a string literal and no format arguments
server/connectionVTP.c:404: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In constructor ‘cLSTTHandler::cLSTTHandler(cConnectionVTP*, const char*)’:
server/connectionVTP.c:445: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:449: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:457: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In constructor ‘cLSTTHandler::cLSTTHandler(cConnectionVTP*, const char*)’:
server/connectionVTP.c:445: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:449: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:457: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In constructor ‘cLSTTHandler::cLSTTHandler(cConnectionVTP*, const char*)’:
server/connectionVTP.c:445: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:449: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c:457: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
server/connectionVTP.c: In member function ‘bool cLSTTHandler::Next(bool&)’:
server/connectionVTP.c:477: warning: format not a string literal and no format arguments
server/connectionVTP.c:493: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
./server/connectionVTP.h: In constructor ‘cConnectionVTP::cConnectionVTP()’:
./server/connectionVTP.h:36: warning: ‘cConnectionVTP::m_LSTTHandler’ will be initialized after
./server/connectionVTP.h:30: warning:   ‘RecPlayer* cConnectionVTP::m_RecPlayer’
server/connectionVTP.c:501: warning:   when initialized here
server/connectionVTP.c: In member function ‘bool cConnectionVTP::CmdREAD(char*)’:
server/connectionVTP.c:800: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘long unsigned int’
server/connectionVTP.c: In member function ‘bool cConnectionVTP::CmdPLAY(char*)’:
server/connectionVTP.c:857: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 5 has type ‘uint32_t’
server/connectionVTP.c:848: warning: unused variable ‘recordings’
server/connectionVTP.c: In member function ‘bool cConnectionVTP::CmdLSTR(char*)’:
server/connectionVTP.c:1218: error: ‘const class cRecordingInfo’ has no member named ‘GetEvent’
server/connectionVTP.c:1221: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘tEventID’
server/connectionVTP.c:1221: warning: format ‘%ld’ expects type ‘long int’, but argument 6 has type ‘int’
server/connectionVTP.c:1221: warning: too many arguments for format
server/connectionVTP.c: In member function ‘bool cConnectionVTP::CmdFRAM(const char*)’:
server/connectionVTP.c:1565: warning: unused variable ‘recording’
server/connectionVTP.c: In member function ‘bool cConnectionVTP::Respond(int, const char*, ...)’:
server/connectionVTP.c:1598: warning: ignoring return value of ‘int vasprintf(char**, const char*, char*)’, declared with attribute warn_unused_result
make[1]: *** [server/connectionVTP.o] Error 1
make[1]: Leaving directory `/home/mega/src/vdr-1.7.0-br/PLUGINS/src/streamdev'

*** failed plugins: streamdev

make: *** [plugins] Error 1

sorry for the lengthy error output
find quote
knatsch Offline
Member
Posts: 74
Joined: May 2007
Reputation: 0
Post: #45
I did patch with "patch -p1"
find quote
hotzenplotz5 Offline
Junior Member
Posts: 25
Joined: Sep 2008
Reputation: 0
Post: #46
@megacrypto
i guess wrong source ?!
Code:
/home/mega/src/vdr-1.7.0-

it should be 1.7.2 ?!
find quote
alcoheca Offline
Team-XBMC Developer
Posts: 256
Joined: Feb 2008
Reputation: 5
Post: #47
megacrypto Wrote:im getting an error while trying to compile streamdev:
Code:
server/connectionVTP.c: In member function ‘bool cConnectionVTP::CmdLSTR(char*)’:
server/connectionVTP.c:1218: error: ‘const class cRecordingInfo’ has no member named ‘GetEvent’

VDR must be patched according to the instructions.

BIG HINT -> vdr-1.7.2_GetRecordingEvent.patch
find quote
knatsch Offline
Member
Posts: 74
Joined: May 2007
Reputation: 0
Post: #48
I fixed my problem posted above.
After installing the newest patch for xbmc, xbmc itself said that my backend was faulty.
So I reinstalled vdr and streamdev. Now I can watch TV Big Grin
find quote
megacrypto Offline
Senior Member
Posts: 219
Joined: Apr 2008
Reputation: 0
Post: #49
why am i getting this error when i try to make vdr
Code:
dvbdevice.h:19:2: error: #error VDR requires Linux DVB driver API version 5.0!

i did a fresh re-install of everything and following the steps as the guide

update:

found this on linuxtv.org (http://linuxtv.org/pipermail/vdr/2008-De...18839.html) which basically says:
Quote:- Added a note about 'Id' being obsolete to the description of cDevice::PlayAudio().
- Switched to the new S2API driver API, which was decided to become the official
DVB API in the kernel (based on patches from Igor M. Liplianin, Niels Wagenaar
and Edgar Hucek). VDR now uses the S2API driver from http://linuxtv.org/hg/v4l-dvb.
In order to correctly detect DVB-S2 capable devices, you need to apply the patch
from ftp://ftp.cadsoft.de/vdr/Developer/v4l-d...ility.diff to
the driver source, because the S2API doesn't provide a way of telling whether a
device can handle DVB-S2 transponders.
- The cDvbTuner::IsTunedTo() function now also checks the symbol rate in case of
DVB-S and DVB-C.
- Improved handling PES video packets with zero length when converting from TS to PES.
For good replay in Transfer Mode on full featured DVB cards you may want to apply
the patch from ftp://ftp.cadsoft.de/vdr/Developer/av711...buf_test_1
to the driver (thanks to Oliver Endriss).

why did this error not come up 2 days ago when i first installed it? do i need to patch something? and plz, if yes, can anyone provide the command to what and where?

thanks
(This post was last modified: 2009-02-16 01:18 by megacrypto.)
find quote
megacrypto Offline
Senior Member
Posts: 219
Joined: Apr 2008
Reputation: 0
Post: #50
well, i managed to surpass the above problems (except the remote one) and now i have vdr running one machine ... and i have xbmc patched and running on another, but xbmc gives me this msg
Quote:no connection to pvr-server vdr-streamdev is not compatible! check backend settings

this is if i use the port 2004 (which is VDR-to-VDR port on backend)

if i use port 3000 in the TV settings in xbmc (which is the HTTP Server port on backend), and try to go to tv from main menu in xbmc, it freezes.

UPDATE: my bad.... i forgot to enable the IP's in streamdevhosts Eek

Update: now i can see the channels list, but nothing is playing .. will do a log check and post here if i can find anything that looks like an error

Update: after a few restarts ... it worked Smile
(This post was last modified: 2009-02-16 07:17 by megacrypto.)
find quote
Post Reply