Linux HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - 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 watch Live TV in XBMC for Linux with Tvheadend, the easy way! (/showthread.php?tid=91716) |
RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Pyromaniac - 2012-08-04 maybe a problem with the permissions of /dev/dvb/adapter* ? RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Balthazar - 2012-08-04 Can you elaborate? This is what mine are set at: bob@mediaserver:~$ ls -l /dev/dvb/adapter0/ total 0 crw-rw----+ 1 root video 212, 0 Aug 4 01:08 demux0 crw-rw----+ 1 root video 212, 1 Aug 4 01:08 dvr0 crw-rw----+ 1 root video 212, 2 Aug 4 01:08 frontend0 RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Pyromaniac - 2012-08-04 hm, maybe "you" are not in the "video"-group? try this command: "sudo chmod o+rw /dev/dvb/* -R" this will grand "others" (everyone) the rights to read and write to the device. after that, restart tvheadend and see if the adapter appears in the list. edit: if it works, as far as I know, the best way would be to add your accound (the account TVHeadend uses) to the group "video" HowTo: http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/ RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Balthazar - 2012-08-04 No joy. Did: sudo chmod o+rw /dev/dvb/* -R sudo adduser bob video reboot bob@mediaserver:~$ ls -l /dev/dvb/adapter* /dev/dvb/adapter0: total 0 crw-rw----+ 1 root video 212, 0 Aug 4 11:17 demux0 crw-rw----+ 1 root video 212, 1 Aug 4 11:17 dvr0 crw-rw----+ 1 root video 212, 2 Aug 4 11:17 frontend0 /dev/dvb/adapter1: total 0 crw-rw----+ 1 root video 212, 3 Aug 4 11:17 demux0 crw-rw----+ 1 root video 212, 4 Aug 4 11:17 dvr0 crw-rw----+ 1 root video 212, 5 Aug 4 11:17 frontend0 Still nothing in dropdown list. RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Pyromaniac - 2012-08-05 ok...hm... after this command: sudo chmod o+rw /dev/dvb/* -R the permissions should look like this: /dev/dvb/adapter*: total 0 crw-rw--rw+ 1 root video 212, 0 Aug 4 11:17 demux0 crw-rw--rw+ 1 root video 212, 1 Aug 4 11:17 dvr0 crw-rw--rw+ 1 root video 212, 2 Aug 4 11:17 frontend0 but after every reboot, they are set to "the usual "crw-rw----" automatically you could try this: edit /etc/rc.local and add on the "end of the file"* "sudo chmod o+rw /dev/dvb/* -R" this will set the permissions to "everyone" to set and "read" the dvb-c/s/t signal *: end of file: has to end with: exit 0 so, the last command has to be before the "exit 0" command RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Balthazar - 2012-08-06 (2012-08-05, 02:15)Pyromaniac Wrote: ok...hm... That didn't work. Permissions were reset after I logged in. I also tried making a simple shell script and putting it in /etc/init.d Code: #! /bin/sh but that didn't work either. I can execute sudo chmod o+rw /dev/dvb/* -R and the permissions change, but the tvheadend interface doesn't work, I'm guessing because the service was started before the permissions were properly set. I also tried this script Code: #!/bin/bash but that didn't work either. FWIW I'm using an ATSC hdhomerun, in case that makes any difference, but I don't think it does at this point. I haven't gotten far enough along for that to be an issue! RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Pyromaniac - 2012-08-06 (2012-08-06, 05:11)Balthazar Wrote: but that didn't work either. I can execute sudo chmod o+rw /dev/dvb/* -R and the permissions change, but the tvheadend interface doesn't work, I'm guessing because the service was started before the permissions were properly set. I also tried this script if TVHeadend started before you changed the permission, then this will have no effekt to the already running TVHeadend. the last idea that I have is this: start you htpc, then change the permissions: sudo chmod o+rw /dev/dvb/* -R get the PID of the running tvheadend: pidof tvheadend (this will output a number which you set in the next command) kill the runnning TVHeadend with the pid-number from the command above: sudo kill PIDNUMBER restart tvheadend: tvheadend now look again at the tvheadend-GUI (be sure to really reload the page, otherwise you'll see cached options --> no tv-card) if this will not work, I'm out of ideas RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Balthazar - 2012-08-07 OK, getting closer Pyromaniac! Your suggestion to stop tvheadend, change permissions and restart tvheadend worked! Going off of that I modified my start-up script to look like this: Code: #!/bin/bash After reboot permissions are set correctly: Code: bob@mediaserver:~$ ls -l /dev/dvb/adapter* Only one problem, I still can't find my adapter in the drop down menu! Stopping the service and restarting it in the terminal I can see tvheadend can see my adapters: Code: bob@mediaserver:~$ tvheadend At least I feel like we're making progress.... RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Pyromaniac - 2012-08-08 Hm, TVHeadend says "[WARNING]:v4l: /dev/video0: Device does not have a tuner, device skipped", so it seems like you can't use your HDHomeRun at the moment, but not because of the permissions. But I think thats the reason you can't seen your device in the drop down menu. Can you tell me what this HDHomeRun-Device is? Searching with google tells me it is an TV-receiver-over-Ethernet? But your log tells me "via PCI". What kind of device is it? RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Begall - 2012-08-09 dev/video0 is a camera connected via USB, I don't think it's relevant. You should probably try getting tvheadend from either the latest git source or using the Pulse Eight version and seeing if that changes anything, as the 2.12 version you have there is nearly 2 years old. RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - c-shadow - 2012-08-09 I recently upgraded tvheadend from pulse eight PPA and noticed the option to save the TV stream as .TS is missing.... again. Original 2.12 version from tvheadend site was only doing MKV container, then some more recent versions from pulse had the option to stream to TS and now again only MKV. Is there any other source for tvheadend binary with this option? RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - bilbonvidia - 2012-08-29 https://github.com/tvheadend/tvheadend If you build this it does, Not sure but maybe these debs have the option too: https://www.lonelycoder.com/redmine/projects/tvheadend/wiki/download RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - SofaKng - 2012-08-29 Yeah, the option is called "Pass-through" (in the Git version). RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - cowfodder - 2012-09-05 (2012-08-04, 14:56)Balthazar Wrote: Having some trouble setting this up with my hdhomerun. Here is what I have so far (Ubuntu 12.04) Try Code: sudo service tvheadend stop I just ran into a lot of issues getting the same thing setup, and it basically came down to the dvbhdhomerun-utils not starting before tvheadend. I did use the script from the thread you linked eventually, but only after I got everything else working. I also ran into and error with getting the echo command to load the driver at boot. My system would not allow this command as sudo, so I had to su and use the root account to do it. It does work, eventually. *edit* I'm assuming you've also looked at this guide. RE: HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - bas.t - 2012-09-12 @dushmaniac: EPG issue Using todays master of tvheadend and your master branch, the epg does not show in the right order and has several channel labels mixed up. Your Eden -pvr branch + tvheadend's master branch don't have this issue. Maybe you can fix this. Thanks in advance. Never mind, I just noticed that pvr is in main now. I have build that one and all is well. |