![]() |
[OLD] 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: [OLD] HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! (/showthread.php?tid=51945) 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
- Gujs - 2010-09-07 Hi Ruud, I already prepared a fix for this. I will try to upload new version today late at night. - Ruud - 2010-09-07 Gujs Wrote:Hi Ruud, I already prepaired fix for this. I will try to upload new version today late at night.Thanks, looking forward to this patch. Thanks for all your work! regards, Ruud. - Ruud - 2010-09-08 Gujs Wrote:Hi Ruud, I already prepared a fix for this. I will try to upload new version today late at night.Hi Gujs. just tested your patch and it is not working as expected. remember that after your previous patch the time was off +2 hours in XBMC but when setting a timer (recording) e.g. 22:00 hours (=+2) then in TVHeadend this recording would show up with the correct recording time being 20:00 hours. Now with this patch the time in XBMC is correct but when setting the timer / recording for a program starting on 20:00 hours, the recording in TVHeadend will show up at 18:00 hours (= -2 hours). Hope you can work with this information otherwise please let me know what you need to troubleshoot. Oh, and when from within XBMC trying to remove a timer I get the message: "PVR server is not compatible.... please try again" -> I am running a unpatched 2.11 tvheadend installation. Could that have something to do with it? regards, Ruud. - decay - 2010-09-09 Hm, launchpad down, just when i wanted to give -svn another try. I got xbmc live running fine with a htsp:// source but want to try the pvr-testing2 branch. Is it recommended to switch to pvr-testing2 (especially in terms of WAF, is it usable right now?). Thanks for the great work btw ![]() - decay - 2010-09-09 Cool, got it installed, pvr.hts has been installed, let's see what happens when i get home and able to test a bit. - decay - 2010-09-09 Ok, working as expected, Live-TV displays fine through the hts addon, EPG shows everything 2h early. I.e. Running program 1800-1900 shows information from the program running 16-1700. Same for recording. Tvheadend used is 2.7, should probably upgrade that to 2.11. edit: forgot to mention that i'm on GMT+2 currently, so it seems a simple timezone matter at the first glance. - pinthenet - 2010-09-10 I've been experiencing regular crashes with recent pvr_testing packages. In the latest version (2pvr~10.08~svn33599-lucid1 ) xbmc often crashes when starting a channel. Usually XBMC restarts but yesterday I had to reboot once. In earlier versions (a week or so ago) it often crashed the first time I tried to select EPG within LiveTV. I can't spot anything in the log file or crash log yet, but I'm still looking I realise it's not final software but I'd be interested to know if anyone else has similar issues, in case it's something with my setup. Thanks John - Nick8888 - 2010-09-10 I finally got commercial skipping to work with tvheadend using comskip.exe and wine. Here's the script for anyone that wants it, just change the variables marked EDIT. Only use it if you understand what its doing because I will not be responsible if anything goes wrong. Code: #!/bin/sh Based on script by Ruud and a few others on the net. Run in tvheadend with "~/path/to/script.sh %f %b" Basically converts mkv to mpg then creates an edl file and copies it to mkv folder. Log file in /var/log/tvheadendpp.log I didn't trust myself with deleting any files so feel free to add that yourself. Code: ffmpeg -v 10 -i "$MKVVIDEO" -acodec copy -vcodec libx264 -vpre veryfast -s hd480 -b 500k "$TRANSCODEPATH$b.edl" </dev/null >>/var/log/posttvheader.log 2>&1 I haven't done much testing with the actual commercial skipping but I have seen it is not working 100%. I think the comskip.ini will have to be tweaked a little too. I tried with mythcommflag but was never able to get it to work standalone with the --skipdb option (it would work fine with recordings from mythtv which had info in the database but for some reason it would not work with the exact same file with the skipdb option) If anyone has that working I can provide some extra lines of the script to convert the mythtv edl to a xbmc standard. - Nick8888 - 2010-09-11 Okay, I've found out why comskip isn't finding commercials so well.. it doesn't like the output of and struggles to decode some video/audio: Code: ffmpeg -v 10 -i "$MKVVIDEO" -vcodec copy -acodec copy "$MPGVIDEO" I've changed it to Code: ffmpeg -v 10 -i "$MKVVIDEO" -vcodec copy -ab 128k "$MPGVIDEO" and it now finds all the commercials very accurately but with massive a/v sync issues. Ive tried experimenting with -copyts 1 and -async 1 but had no luck. I'm hoping someone has a solution to getting tvheadend output to a comskip compatible file. EDIT: I should add, mythtv's output works flawlessly.. When I re-encode mythtvs output with ffmpeg, it becomes a little more unreliable but still in sync. EDIT2: Code: ffmpeg -v 10 -i "$MKVVIDEO" -vcodec mpeg2video -sameq -acodec copy -f vob -copyts "$MPGVIDEO" Just testing out the donators version of comskip now to see if it helps at all. Problem with the other settings seems to be some dropped frames or something at the beginning of some mkvs. All the commercial breaks were off by 30secs in those files. Quote:Output #0, mpeg, to '/home/nick/Recordings/NCIS.2010-09-10.mpg': Here's part of my ffmpeg log showing the sync problem. 768(frames) divided by 25(fps) = ~30sec When comskip tries to find the commercials, the audio and video are out of sync by the same amount and the commercial breaks in the edl occur 30seconds early. EDIT3: Just realised when playing back the original problematic files in xbmc, while it plays fine, the playtime begins at 0.30 and cannot be skipped back before that time. It does not skip 30seconds of video, rather there is something there which is erroneous. When I transcode the file, the new one has 30 seconds of grey and no sound at the beginning which helps comskip create a valid edl. I'm starting to think its a bug with how tvheadend creates the mkv. Fixing this would save alot of video transcoding time which I am currently doing to make the edl (which are working great!!). - moontan77 - 2010-09-13 anyone know of any android media players that play tvheadend rtsp streams without transcoding? with a lot of android tablest due out over the next few months that can handle mpeg2, it would be great to be able to watch tvheadend streams on a tablet. The current archos 5 (which i have) should be able to handle the streams aswell. - kurai - 2010-09-13 On a slightly off topic tangent ... One major problem I have with TvHeadend is that it locks up the kernel on USB unplug event when suspending/hibernating. Does anyone know if VDR has the same issue ? - tsint - 2010-09-13 Do you have a script to unload/load the tuner modules when you suspend/resume? This is my sleep script, /etc/pm/sleep.d/66_tuner Code: #!/bin/sh Perhaps this only works if you have a PCI-tuner... - petie74 - 2010-09-13 Great, thanx for this, always need to fix but never got around to and you help leading me to a Hauppauge PVR-150 solution. Cheers http://ubuntuforums.org/showthread.php?t=678822 - kurai - 2010-09-13 tsint Wrote:Do you have a script to unload/load the tuner modules when you suspend/resume? Doh - it never even occured to me to take the (now) obvious route, and create an additional sleep script. :o Looks like the tvheadend init.d script exits and detaches from modules cleanly, so doesn't even require me to rmmod the stuff for my USB Avermedia A850 tuner. All works fine now - thanks tsint. ![]() - peely - 2010-09-14 decay Wrote:Ok, working as expected, Live-TV displays fine through the hts addon, EPG shows everything 2h early. I have the same issue in the UK, XBMC shows the tvheadend EPG data an hour early as we're currently in DST, being GMT + 1. Tvheadend shows the correct data and both my server and client are in the same timezone. N. |