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] - Jönke - 2013-05-10

Thanks ! For this fix , no more black screen for me Smile


RE: Live TV doesn't work on Openelec [tvheadend server] - pootler - 2013-05-10

Okay - I have to ask this !



Has ABSOLUTELY ANYONE (be it raspbmc, openelec, xbian you name it)
managed to watch live tv continuously on the Raspberry Pi for an hour or two without audio/video sync dropping?

Don't care if its tvheadend or vdr - ANYBODY?Smile

Pootler


RE: Live TV doesn't work on Openelec [tvheadend server] - Ned Scott - 2013-05-11

Yes, but only directly from an HDHomeRun Prime and not using a PVR backend server at all.


RE: Live TV doesn't work on Openelec [tvheadend server] - Jönke - 2013-05-11

(2013-05-10, 23:03)pootler Wrote: Okay - I have to ask this !
Has ABSOLUTELY ANYONE (be it raspbmc, openelec, xbian you name it)
managed to watch live tv continuously on the Raspberry Pi for an hour or two without audio/video sync dropping?
Don't care if its tvheadend or vdr - ANYBODY?Smile
Pootler

No issue here after 2,5 hours of sd -live tv playback from Tvheadend server (not on Pi )
Tested on Openelec, Rbej Frodo r14059 build (02/04/2013) with this https://dl.dropboxusercontent.com/u/6902...ux-arm.zip

No timeshift enabled on backend and xbmc settings is sync playback to display and method video clock drop/dupe audio

edit, same for me:
"But I still have to stretch to 16:9 or 4:3 manually. It does not read aspect from the stream. If I select "normal", and that should be the default (get aspect from stream), then aspect is wrong"


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

(2013-05-09, 17:37)dhead Wrote: Great, that fix the aspect ratio issue for me.
Tested on Openelec, Rbej Frodo r14059 build (02/04/2013)

p.s. if anyone want to try it with Frodo
https://dl.dropboxusercontent.com/u/6902100/HT/pvr.hts-linux-arm.zip
Does not work for me.
It does solve CROPPING from left and right (when stretching some of the picture was cropped from left and right). But I still have to stretch t0o 16:9 or 4:3 manually. It does not read aspect from the stream. If I select "normal", and that should be the default (get aspect from stream), then aspect is wrong.
But at least now it's possible to manually set it for each channel. So it's a step forward. Now Live TV is usable, but not yet perfect.

Thank you for your effort.


RE: Live TV doesn't work on Openelec [tvheadend server] - pootler - 2013-05-11

okay edit to my original post!

Okay - I have to ask this !
Has ABSOLUTELY ANYONE (be it raspbmc, openelec, xbian you name it)
managed to watch live tv continuously on the Raspberry Pi - (both front and backend on the Pi) for an hour or two without audio/video sync dropping?
Don't care if its tvheadend or vdr - ANYBODY?
Pootler


RE: Live TV doesn't work on Openelec [tvheadend server] - popcornmix - 2013-05-12

(2013-05-09, 10:34)DarkMike Wrote: Aspect ratio problem resolved.
below patch for xbmc-pvr-addons

I checked with Adam Sutton and he thought the patch was sensible. He suggested you submit the patch as a pull request.


RE: Live TV doesn't work on Openelec [tvheadend server] - Kives - 2013-05-12

Patch resolves blask screen issue but automatic aspect ratio sensing doesn't work for everybody.

In Finland DVB-T TS-stream contains only mpeg2 encoded channels. Could this be the source for the auto-AR problem?

Could someone with a working system confirm the stream encoding, mpeg4 or mpeg2?

I'm now running official 3.02, all in one Pi.


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

(2013-05-12, 18:55)Kives Wrote: Patch resolves blask screen issue but automatic aspect ratio sensing doesn't work for everybody.

In Finland DVB-T TS-stream contains only mpeg2 encoded channels. Could this be the source for the auto-AR problem?

Could someone with a working system confirm the stream encoding, mpeg4 or mpeg2?

I'm now running official 3.02, all in one Pi.

Aspect ratio is fixed for me on dvb-t service, h264 codec, 720x576,
the video is upscaled correctly (don't remember the new resolution) and kept as 5:4.


RE: Live TV doesn't work on Openelec [tvheadend server] - Kives - 2013-05-12

Ok. There might be something with the codec used.

My assumption is that h.264 encoded streams announses aspect ratio info differently than mpeg2 encoded streams.

TvHeadEnd client doesn't handle this correctly. Yet.


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

Estonian h264 does not work. I need to set aspect manually. At least there is no more cropping.
On windows and linux desktop everything is ok. Only on Pi auto aspect does not work.

About A/V sync. I've been running Live TV for 9 hours on the same channel and A/V sync is ok. I'm running tvheadend on separate linux server, not on Pi.


RE: Live TV doesn't work on Openelec [tvheadend server] - jack burton - 2013-05-13

(2013-05-09, 10:34)DarkMike Wrote: Aspect ratio problem resolved.
below patch for xbmc-pvr-addons
Code:
diff --git a/addons/pvr.hts/src/HTSPDemux.cpp b/addons/pvr.hts/src/HTSPDemux.cpp
index a999c62..f10b414 100644
--- a/addons/pvr.hts/src/HTSPDemux.cpp
+++ b/addons/pvr.hts/src/HTSPDemux.cpp
@@ -281,11 +281,12 @@ inline void HTSPSetDemuxStreamInfoVideo(PVR_STREAM_PROPERTIES::PVR_STREAM &strea
{
   stream.iWidth  = htsmsg_get_u32_or_default(msg,   "width" , 0);
   stream.iHeight = htsmsg_get_u32_or_default(msg,   "height" , 0);
-  unsigned int den = htsmsg_get_u32_or_default(msg, "aspect_den", 1);
-  if(den)
-    stream.fAspect = (float)htsmsg_get_u32_or_default(msg, "aspect_num", 1) / den;
-  else
-    stream.fAspect = 0.0f;
+  stream.fAspect = 0.0f;
+  unsigned int den = htsmsg_get_u32_or_default(msg, "aspect_den", 0);
+  if (den)
+    stream.fAspect = ((float) htsmsg_get_u32_or_default(msg, "aspect_num", 0)) / den;
+  if (!stream.fAspect && stream.iHeight)
+    stream.fAspect = ((float) stream.iWidth) / stream.iHeight;
   int iDuration = htsmsg_get_u32_or_default(msg, "duration" , 0);
   if (iDuration > 0)
   {
@@ -600,6 +601,7 @@ bool CHTSPDemux::SendSubscribe(int subscription, int channel)
   htsmsg_add_s32(m, "channelId"      , channel);
   htsmsg_add_s32(m, "subscriptionId" , subscription);
   htsmsg_add_u32(m, "timeshiftPeriod", (uint32_t)~0);
+  htsmsg_add_u32(m, "normts", 1);

   if(g_bTranscode)
   {

First block give correct aspect ratio to player if it doens't provided by server.
Second request normalized stream from server. For 3.4 and high TVHeadEnd servers it's resolve blank screen problem if timeshift is not enabled on server.

P.S. I use paspbian distribution so I don't try to build openelec and test on it. But problem really not openelec specific.

Thank You DarkMike.
Have you pulled it to git hub in order to include it in main dev tree ?

Bye.


RE: Live TV doesn't work on Openelec [tvheadend server] - eHeij - 2013-05-13

If you run tvheadend on a seperate server, A/V sync perfectly works.
I think this is due to the slow USB port. can the new USB fix below implemented in Openelec?

sudo apt-get install git-core
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo BRANCH=fiq_split rpi-update

I will try the fix on a clean wheezy install tonight.

Eventually I want a pi with xbmc, tvheadend with DVB-S and oscam. (for the Dutch HD channels)


RE: Live TV doesn't work on Openelec [tvheadend server] - DarkMike - 2013-05-14

(2013-05-12, 15:16)popcornmix Wrote: I checked with Adam Sutton and he thought the patch was sensible. He suggested you submit the patch as a pull request.

I'll create pool request in two days. I want to try variants on RPi and x86 (may be need send zero then aspect ration is not known?)


RE: Live TV doesn't work on Openelec [tvheadend server] - popcornmix - 2013-05-14

(2013-05-14, 11:17)DarkMike Wrote:
(2013-05-12, 15:16)popcornmix Wrote: I checked with Adam Sutton and he thought the patch was sensible. He suggested you submit the patch as a pull request.

I'll create pool request in two days. I want to try variants on RPi and x86 (may be need send zero then aspect ration is not known?)
Yes, zero as aspect ratio will be treated as unknown (so square pixels).