Kodi Community Forum
Live TV doesn't work on Openelec [tvheadend server] - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166)
+---- Thread: Live TV doesn't work on Openelec [tvheadend server] (/showthread.php?tid=148646)

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


RE: Live TV doesn't work on Openelec [tvheadend server] - CommanderROR - 2013-03-29

I did not test this myself yet, but if FernetMenta can get 50 Channels to work, how can it be that others can't get it to work at all? Some other parameters must be involved here...


RE: Live TV doesn't work on Openelec [tvheadend server] - serxx - 2013-03-29

Doesn't work for me.
XBMC seems slower. Channel change results black screen most of the time.
I have SD channels with h264 + mpeg audio.


RE: Live TV doesn't work on Openelec [tvheadend server] - ntadej - 2013-03-29

SD an HD channels are working for me, but with severe audio sync issues and aspect ratio problems. Switching is also much slower than on a PC (maybe due to slower CPU).


RE: Live TV doesn't work on Openelec [tvheadend server] - doveman2 - 2013-03-29

Yeah, it seems I have to set the aspect ratio and turn interlace on every time I change channel, so if there could be a default interlace on for all TV channels that doesn't affect video playback that would help. Hopefully a way to make the aspect ratio automatic can be found as well.


RE: Live TV doesn't work on Openelec [tvheadend server] - FernetMenta - 2013-03-29

vnsi sends a stream change as the first packet immediately followed by an i-frame. At this time all streams have correct parameters, a subsequent stream change causes no close/open. This might be the reason why vnsi works fine with my patches.
If any stream gets reconfigured on a stream change, player sets caching to done even if it was in pvr caching state. This is the reason why you may observe longer channel switching times. Before you got accidently shorter one because pvr buffering did not engage.

I will provide another patch to prevents pvr buffering to get interrupted. I think that this causes oxm player to stall.


RE: Live TV doesn't work on Openelec [tvheadend server] - dhead - 2013-03-30

Hi FernetMenta, thanks for the fixes.
With rbej OpenELEC build from yesterday I can confirm that with tvheadend I get misc results,
sometimes the client tune in without an issue and sometime I get black screen and no audio.
With vnsi (latest commit of opdenkamp frodo tag) I get 100% success.

p.s. I'm not sure who's to blame but somehow xbmc constantly crashing after few channels switches, didn't waste time to look more into it, maybe this is due to power issue regarding usb wireless adapter.

p.s.2 rbej, please include FernetMenta's newer commits I would love to test that.


RE: Live TV doesn't work on Openelec [tvheadend server] - rbej - 2013-03-30

(2013-03-28, 16:26)FernetMenta Wrote: I did some tests with vnsi and also got some negatives every now and then. I did some changes which resulted in 100% success during my last test when I tried approximately 50 channel switches: 576i, 720p, and 1080i.

The first one fixes incorrect usage of the stalled flag in omx audio player. This triggered re-enabling of pvr caching state because player was thinking audio stream has stalled:
https://github.com/FernetMenta/xbmc/commit/8cad73f01fbd2ac23c3e5ad33b2e8a52681f1ff1

The second prevents cachstate switching from pvr to done at a time it's not desired. I have no idea why teletext was commented in omx player but this job was only half done:
https://github.com/FernetMenta/xbmc/commit/cbe9458ed3f9c590edf3ad9835d295f4e9d6373e

https://github.com/popcornmix/xbmc/commit/e058feabcfbade15700294f4ea54e1a6ab2b6712

Maybe better solution in your first patch will be:

Quote:if(/*iLevel < 10 &&*/ m_output_stalled && m_av_clock->OMXAudioBuffer() && (m_endtime.tv_sec - m_starttime.tv_sec) > 1)

What do you think??.


RE: Live TV doesn't work on Openelec [tvheadend server] - FernetMenta - 2013-04-01

Note that I have squashed commits yesterday. Not sure if you picked current ones.

Quote:What do you think??.

Well, you run into problem when reusing flags for a different purpose.

Can someone provide a debug log when running the most recent patches from yesterday:
https://github.com/FernetMenta/xbmc/commit/4740084d5573d79ae1096d5a2cd1fa70a1266e68


https://github.com/FernetMenta/xbmc/commit/eacf9a512d118e50a9777ae05460a2a344a408e6


RE: Live TV doesn't work on Openelec [tvheadend server] - rbej - 2013-04-01

(2013-04-01, 16:11)FernetMenta Wrote: Note that I have squashed commits yesterday. Not sure if you picked current ones.

Quote:What do you think??.

Well, you run into problem when reusing flags for a different purpose.

Can someone provide a debug log when running the most recent patches from yesterday:
https://github.com/FernetMenta/xbmc/commit/4740084d5573d79ae1096d5a2cd1fa70a1266e68


https://github.com/FernetMenta/xbmc/commit/eacf9a512d118e50a9777ae05460a2a344a408e6

Please test it:

http://www.mediafire.com/?csrpxwdx01pmhrs


RE: Live TV doesn't work on Openelec [tvheadend server] - nyebi - 2013-04-01

I think it really is getting better.
I tried the latest rbej build with the Tvheadend PVR plugin and the first channel always starts without a problem now. The aspect ratio is also correct, but after a channel switch i only get black screen. If i restart XBMC, i can watch another channel.

Debug log:
http://pastebin.com/Hbr60hyi

Thank you for your efforts!


Re: Live TV doesn't work on Openelec [tvheadend server] - madpanter - 2013-04-01

Great that we are getting progres. But has the bug been isolated or are this workarounds?


RE: Live TV doesn't work on Openelec [tvheadend server] - amanita - 2013-04-02

(2013-04-01, 18:39)rbej Wrote: Please test it:

http://www.mediafire.com/?csrpxwdx01pmhrs

I' ve tested about 40 SD channels with the vdr-addon on the RPi successfully. I am using your build of march 28th.
There are no strange issues anymore. With tvheadend I got some problems, like black screen and no audio/sync sync.
The Python proxy script is working, but than the RPi lock up or freezes.

With the vdr-addon, vnsi pvr client and a dvb device connected, I can watch SDTV with the RPi. There are some issues also, like no audio at the first channel or if the signal quality is really bad, than it runs out of audio/video sync. But channel switching is ok and streaming from or to the device works fine. There is a loss of audio sync, but mostly, if the signal quality is bad. With a good signal I could watch SDTV (sorry can't test HD channels). It's not perfectly, but it's working and a better solution than the tvheadend server.

I can't use your current builds, because there are an error at loading the firmware for two tested DVB-T devices.
I dont't know why, but the firmware file is not found (it's still there at /lib/firmware). I think that should be common for
all devices who need a firmware to run. Maybe you can correct this. I really would like to test your current builds.

Thanks in advance


RE: Live TV doesn't work on Openelec [tvheadend server] - dhead - 2013-04-02

(2013-04-01, 18:39)rbej Wrote: Please test it:

http://www.mediafire.com/?csrpxwdx01pmhrs

With tvheadend It looks to me a step back.

http://xbmclogs.com/show.php?id=9044


RE: Live TV doesn't work on Openelec [tvheadend server] - FernetMenta - 2013-04-02

There is another problem with causes loss of sync on the protocol:
https://github.com/opdenkamp/xbmc-pvr-addons/pull/181/

This is work in progress but worth some testing.


RE: Live TV doesn't work on Openelec [tvheadend server] - navster - 2013-04-02

I can confirm that FernetMenta's patches have indeed fixed the bulk of the channel change issues within my setup, when using VDR on a Ubuntu backend system connected to UK Freeat service steaming only MPEG2 content to my RPi client.

However a handful of channels, which appear to have a weaker signal are unwatchable and unfortunately these are the channels I often watch, so I have reverted to using TVHeadend instead with the Videos>Files>HTSP work around for now, I also prefer TVHeadend's web management dashboard!

Thank you very much to FernetMenta for your dilligence, which will probably form the basis of the generic fix for the RPi live TV issues.