[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) |
- dubstar_04 - 2010-01-20 Goga777 Wrote:btw - did you install any patches for vdr 1711 and streamdev ? no i just compiled the basic source code and it seems to work well with xbmc. - Goga777 - 2010-01-21 strange - here is http://xbmc.svn.sourceforge.net/viewvc/xbmc/branches/pvr-testing2/xbmc/pvrclients/vdr-streamdev/patches/ several patches for vdr and streamdev why they need then ? btw - another pvr2 video http://www.youtube.com/watch?v=Fi0VcpWoSxY - dubstar_04 - 2010-01-22 Goga777 Wrote:strange - here is http://xbmc.svn.sourceforge.net/viewvc/xbmc/branches/pvr-testing2/xbmc/pvrclients/vdr-streamdev/patches/ Some of the patches are quite old and may well be included in the source. I will build VDR with the patches next week and see what difference it makes. Некоторые пятна довольно старая и вполне может быть включено в источнике. Я создам VDR с пятнами на следующей неделе и посмотрим, что он делает разницы. - Goga777 - 2010-01-22 I have tested vdr 1711 + svn pvr2 + cvs streamdev (I didn't install any patches). I have very unstable work - xbmc very often hunged up, the channels aren't switching any clue ? - pkrzaczk - 2010-01-22 HI, I found some radio and tv channels that won't work in xbmc-pvr ... but they seam to work great in vdr-xine configuration and even in vdr- streamdev when watching the channel throught VLC player. The Tv channels are encoded so You won't be able to test them ... but i found one FTA radio station that doesn't work either. It's a polish radio station on S13.0E sataelite. This is the radio channel You can test on .. its FTA: ZLOTE PRZEBOJE;CYFROWY POLSAT S.A.:12284:HC34M2O0S0:S13.0E:27500:0:4369=POL:0:0:10519:113:7900:0 The xbmc log: http://krzaczek.pastebin.com/m54e04358 The only difference between a working channel and one that doesn't work i found in xbmc log is 20:59:44 T:139910994147600 M:1505427456 INFO: ffmpeg[911B3910]: No Program I have no idea what it means .. but it's the only difference .. the video and audio streams are under No Program .. when on a working channel it's something like Program XXXX. Some info: Ubuntu 9.10 xbmc-pvr rev 26948 from the prv-testing2 vdr 1.7.10 with streamdev-server 0.5.0-pre with patches from xbmc/pvrclients/vdr-streamdev/patches/ - Goga777 - 2010-01-23 with svn pvr2 branch _ cvs streamdev with parent rate patch and vdr 1711 I have very instable work - sometimes xbmc crashed, sometimes hung up. IN log I can see a lot of messages like this 17:01:40 T:3001752464 M: 88903680 ERROR: PVR: VDRClient for streamdev/127.0.0.1:2004 - Client returns bad error (-3) after SignalQuality 17:01:40 T:2963123088 M: 88903680 ERROR: OpenDemuxStream - Error creating demuxer 17:01:41 T:3001752464 M: 88408064 ERROR: AddOnLog: PVRDLL/VDRClient for streamdev: CVTPTransceiver::SendCommand - Failed with code: 500 (Unknown Command "LSTQ") 17:01:41 T:3001752464 M: 88408064 ERROR: PVR: VDRClient for streamdev/127.0.0.1:2004 - Client returns bad error (-3) after SignalQuality 17:01:41 T:2895514512 M: 88346624 DEBUG: AddOnLog: PVRDLL/VDRClient for streamdev: buffer usage: 70% (tid=23539) 17:01:41 T:2895514512 M: 88182784 DEBUG: AddOnLog: PVRDLL/VDRClient for streamdev: buffer usage: 80% (tid=23539) 17:01:42 T:3001752464 M: 88182784 ERROR: AddOnLog: PVRDLL/VDRClient for streamdev: CVTPTransceiver::SendCommand - Failed with code: 500 (Unknown Command "LSTQ") 17:01:42 T:3001752464 M: 88182784 ERROR: PVR: VDRClient for streamdev/127.0.0.1:2004 - Client returns bad error (-3) after SignalQuality 17:01:42 T:2895514512 M: 88182784 DEBUG: AddOnLog: PVRDLL/VDRClient for streamdev: buffer usage: 90% (tid=23539) 17:01:42 T:2895514512 M: 88182784 DEBUG: AddOnLog: PVRDLL/VDRClient for streamdev: buffer usage: 100% (tid=23539) 17:01:43 T:3001752464 M: 87998464 ERROR: AddOnLog: PVRDLL/VDRClient for streamdev: CVTPTransceiver::SendCommand - Failed with code: 500 (Unknown Command "LSTQ") 16:59:08 T:3001752464 M:104833024 ERROR: PVR: VDRClient for streamdev/127.0.0.1:2004 - Client returns bad error (-3) after SignalQuality 16:59:09 T:3032704896 M:104833024 ERROR: convert_checked failed 16:59:09 T:2943568784 M:104833024 DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/446.pvr) 16:59:10 T:3032704896 M:104833024 ERROR: convert_checked failed 16:59:10 T:3001752464 M:104833024 ERROR: AddOnLog: PVRDLL/VDRClient for streamdev: CVTPTransceiver::SendCommand - Failed with code: 500 (Unknown 16:59:10 T:3032704896 M:104833024 ERROR: convert_checked failed 16:59:10 T:3032704896 M:104833024 ERROR: convert_checked failed 16:59:10 T:3032704896 M:104833024 ERROR: convert_checked failed full log http://pastebin.com/f1cdf8638 http://pastebin.com/f193afeef as you can see - sometimes XBMC is using ffmpeg for h264 channels - not vdpau - why ? crashlogs are here http://pastebin.com/f7abdeedc http://pastebin.com/f4381f78e in streamdev log I can see Jan 23 12:10:34 arvdr vdr: [2874] Streamdev: Setting data connection to 127.0.0.1:58989 Jan 23 12:10:34 arvdr vdr: [4204] streamdev-writer thread started (pid=2562, tid=4204) Jan 23 12:10:34 arvdr vdr: [4205] streamdev-livestreaming thread started (pid=2562, tid=4205) Jan 23 12:10:34 arvdr vdr: [4206] receiver on device 1 thread started (pid=2562, tid=4206) Jan 23 12:10:34 arvdr vdr: [4207] TS buffer on device 1 thread started (pid=2562, tid=4207) Jan 23 12:10:35 arvdr vdr: [4207] TS buffer on device 1 thread ended (pid=2562, tid=4207) Jan 23 12:10:35 arvdr vdr: [4206] buffer stats: 152468 (3%) used Jan 23 12:10:35 arvdr vdr: [4206] receiver on device 1 thread ended (pid=2562, tid=4206) Jan 23 12:10:35 arvdr vdr: [4209] receiver on device 1 thread started (pid=2562, tid=4209) Jan 23 12:10:35 arvdr vdr: [4210] TS buffer on device 1 thread started (pid=2562, tid=4210) Jan 23 12:10:35 arvdr vdr: [4210] TS buffer on device 1 thread ended (pid=2562, tid=4210) Jan 23 12:10:35 arvdr vdr: [4209] buffer stats: 21620 (0%) used Jan 23 12:10:35 arvdr vdr: [4209] receiver on device 1 thread ended (pid=2562, tid=4209) Jan 23 12:10:35 arvdr vdr: [4211] receiver on device 1 thread started (pid=2562, tid=4211) Jan 23 12:10:35 arvdr vdr: [4212] TS buffer on device 1 thread started (pid=2562, tid=4212) Jan 23 12:10:36 arvdr vdr: [2562] switching to channel 21 Jan 23 12:10:36 arvdr vdr: [2562] [core.pids] 0: tune to same source/transponder Jan 23 12:10:40 arvdr vdr: [2874] streamdev-server: Detaching current receiver Jan 23 12:10:44 arvdr vdr: [2856] ERROR: 1 ring buffer overflow (188 bytes dropped) Jan 23 12:10:44 arvdr vdr: [4205] streamdev-livestreaming thread ended (pid=2562, tid=4205) Jan 23 12:10:47 arvdr vdr: [2874] ERROR: streamdev-writer thread 4204 won't end (waited 3 seconds) - canceling it... Jan 23 12:10:47 arvdr vdr: [2874] buffer stats: 1127060 (29%) used Jan 23 12:10:52 arvdr vdr: [2874] Streamdev: Setting data connection to 127.0.0.1:49597 Jan 23 12:10:52 arvdr vdr: [4246] streamdev-writer thread started (pid=2562, tid=4246) Jan 23 12:10:52 arvdr vdr: [4247] streamdev-livestreaming thread started (pid=2562, tid=4247) Jan 23 12:11:46 arvdr init: Switching to runlevel: 3 Jan 23 12:11:46 arvdr lircd-0.8.3[2398]: read() failed Jan 23 12:11:46 arvdr lircd-0.8.3[2398]: Connection reset by peer Jan 23 12:11:46 arvdr lircd-0.8.3[2398]: removed client Jan 23 12:11:46 arvdr vdr: [2874] client (VTP) 127.0.0.1:38140 has closed connection Jan 23 12:11:46 arvdr vdr: [2874] streamdev: closing streamdev connection to 127.0.0.1:38140 Jan 23 12:11:46 arvdr vdr: [4247] streamdev-livestreaming thread ended (pid=2562, tid=4247) Jan 23 12:11:46 arvdr vdr: [4246] streamdev-writer thread ended (pid=2562, tid=4246) Jan 23 12:11:46 arvdr vdr: [2874] buffer stats: 0 (0%) used Jan 23 12:10:40 arvdr vdr: [2874] streamdev-server: Detaching current receiver Jan 23 12:10:44 arvdr vdr: [2856] ERROR: 1 ring buffer overflow (188 bytes dropped) Jan 23 12:10:44 arvdr vdr: [4205] streamdev-livestreaming thread ended (pid=2562, tid=4205) Jan 23 12:10:47 arvdr vdr: [2874] ERROR: streamdev-writer thread 4204 won't end (waited 3 seconds) - canceling it... Jan 23 12:10:47 arvdr vdr: [2874] buffer stats: 1127060 (29%) used Jan 23 12:10:52 arvdr vdr: [2874] Streamdev: Setting data connection to 127.0.0.1:49597 Jan 23 12:10:52 arvdr vdr: [4246] streamdev-writer thread started (pid=2562, tid=4246) Jan 23 12:10:52 arvdr vdr: [4247] streamdev-livestreaming thread started (pid=2562, tid=4247) Jan 23 12:11:46 arvdr init: Switching to runlevel: 3 - pkrzaczk - 2010-01-23 Hi Goga7777 To get rid of these messages You have to apply some patches to the streamdev-server - streamdev-cvs221109-AddFemonV1.diff - this will remove the SignalQuality error "Client returns bad error (-3) after SignalQuality" - streamdev-cvs221109-AddCallbackMsg.diff - this will remove the "Failed with code: 500 (Unknown Command "LSTQ")" from what I can rememeber You can find theme here: http://trac.xbmc.org/browser/branches/pvr-testing2/xbmc/pvrclients/vdr-streamdev/patches Pawel - Goga777 - 2010-01-23 thanks - will do it I supposed that those patches already in cvs streamdev - dubstar_04 - 2010-01-24 Does the search function work for anyone? How to build VDR - dubstar_04 - 2010-01-24 The following is a very brief look at how i build VDR for testing with xbmc. please note this is not a complete how to and does not cover things like dependencies or build tools. Make a vdr directory in your home folder and move to it: Code: mkdir -v vdr Download VDR: Code: wget ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.11.tar.bz2 Download streamdev: Code: cvs -d:pserver:[email protected]:/var/cvsroot co streamdev Unarchive VDR: Code: tar -xf vdr-1.7.11.tar.bz2 change directory into the vdr file: Code: cd vdr-1.7.11 Copy the Make.config file and edit it: Code: cp Make.config.template Make.config Code: gedit Make.config This is what i use for my system: LOCDIR = /usr/lib/locale PLUGINDIR= ./PLUGINS PLUGINLIBDIR= /usr/lib/vdr/plugins VIDEODIR = /media/media/vdr CONFDIR = /etc/vdr Copy Streamdev to plugins folder: Code: cp -r ~/vdr/streamdev streamdev Return to the vdr folder, then make VDR and plugins and install from a .deb: Code: cd ../../ Once VDR has been installed move the streamdev folder to the plugins folder; Code: sudo cp -r ~/vdr/vdr-1.7.11/PLUGINS/src/streamdev/streamdev /etc/vdr/plugins/streamdev place your channels.conf in /etc/vdr This is how i scan for channels (Northwest UK): Channel Scanning with w_scan: w_scan -ft -c GB -o7 >> channels.conf or Channel Scanning with scan: scan -o vdr -u /usr/share/dvb/dvb-t/uk-WinterHill > channels.conf set up access to vdr and streamdev: Code: sudo gedit /etc/vdr/svdrphosts.conf Code: sudo gedit /etc/vdr/plugins/streamdev/streamdevhosts.conf start vdr and streamdev: Code: vdr -P streamdev-server as a daemon: Code: vdr -d -P streamdev-server Please bear in mind that i only use this for testing and this does not include any patches. Thanks, Dubstar_04 - Goga777 - 2010-01-24 I recommend to use scan-s2 with s2 api support instead of scan http://mercurial.intuxication.org/hg/scan-s2/ I'm using also these 3 patches for cvs streamdev http://xbmc.svn.sourceforge.net/viewvc/xbmc/branches/pvr-testing2/xbmc/pvrclients/vdr-streamdev/patches/streamdev-cvs221109-AddFemonV1.diff?view=log http://xbmc.svn.sourceforge.net/viewvc/xbmc/branches/pvr-testing2/xbmc/pvrclients/vdr-streamdev/patches/streamdev-cvs221109-AddCallbackMsg.diff?view=log http://xbmc.svn.sourceforge.net/viewvc/xbmc/branches/pvr-testing2/xbmc/pvrclients/vdr-streamdev/patches/streamdev-cvs170110-VDR1.7.11ParentalRating.patch?view=log The patch http://xbmc.svn.sourceforge.net/viewvc/xbmc/branches/pvr-testing2/xbmc/pvrclients/vdr-streamdev/patches/streamdev-cvs170110-allowStopRecording.patch?view=log I didn't install - no need - Goga777 - 2010-01-24 very-very often I have situation when xbmc hung up (freezing) after of switching on some channel - see the full log on pastebin for SVN:27127 http://pastebin.com/f7f602e3d Code: 14:53:25 T:3032328064 M: 72884224 NOTICE: DVDPlayer: Opening: pvr://channels/tv/all/344.pvr - Goga777 - 2010-01-24 I removed ~/.xbmc/userdata/Database/MyTV1.db and tried again. Anyway I had another case of xbmc freezing , but in the log there's another lines logs from vdr and streamdev here http://paste.org.ru/?pzl4fr xbmc.log here is http://slil.ru/28539090 Code: 15:25:53 T:2905496464 M: 52133888 ERROR: PVR: No video or audio data available after 5 seconds, playback stopped here is another xbmc_crashlog-20100124_192111.log It happened when I tried during of watching dvb mpeg2 channel to choice the schannels list http://pastebin.com/f34c12c75 Another epg problem - rdoac - 2010-01-25 I am using the latest svn (as of today) and now have a new problem with the epg. I am in the US/Chicago timezone, my date command in linux shows date Mon Jan 25 09:29:51 CST 2010 I also have xmbc set for Chicago, however the epg info, once loaded says "No info available" for every channel. When I go into a channel and have a look at the schedule for the day, listings start about 6 hours later, although the times are correct on the schedule. My guess is that some code was introduced that hardcoded a GMT or equivalent timezone test to make sure that expired epg entries don't show up, unfortunately, this throws away 6 hours of epg.. Also, I use the pvrinput plugin. For some reason, radio channels do not work, although tv does. An example channels.conf line for radio is: Code: FM 103.1MHz-WGFB;Adult Contemporary:103100:PVRINPUT|RADIO:P:0:0:300:305:0:1452:0:0:0 - splinux - 2010-01-29 dubstar_04 Wrote: Is the STREAMDEVEXT=1 and PARENTALRATING=1 not necessary anymore ? Also for vdr-1.7.10 ? thanks sp |