Kodi Community Forum
XBMC Tuxbox Enigma Stream Client (Enigma / Enigma2 Based Dreambox & Dbox2) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: XBMC Tuxbox Enigma Stream Client (Enigma / Enigma2 Based Dreambox & Dbox2) (/showthread.php?tid=23834)

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


- nobody.loopback - 2010-08-27

I cant open this channel, no card or other method.
If tuning to an encrypted channel it will just lead to the problem you described.


- Goga777 - 2010-08-27

does it normal ? is it possible to fix this xbmc deadlock for any encrypted non-available channels ?


- nobody.loopback - 2010-08-28

Currently, I dont have an idea how to get information from the box if it can open the cannel or not.
neither:
http://ip.addr.of.box/xml/currentservicedata
or
http://ip.addr.of.box/xml/streaminfo

looks different if the channel can be opened or not.
The box has a lock on the channel and receives data.

Therefore the only thing which xbmc can do, if you tune to a channel which does not open, is, to wait for a period of time that a valid stream will be sent from the box.
Of course the handling of the problem could be improved so, that it does not block the whole program.


- Goga777 - 2010-08-28

nobody.loopback Wrote:Therefore the only thing which xbmc can do, if you tune to a channel which does not open, is, to wait for a period of time that a valid stream will be sent from the box.
Of course the handling of the problem could be improved so, that it does not block the whole program.

+1
absolutely agree


- nobody.loopback - 2010-08-28

Goga,
I tried that out now on a encrypted channel which I cannot open,
Turns out, what I said before is not correct.
about 2 seconds after I try to tune the channel I get an error message.
So xbmc handles this problem correct.

What you have with the BABY TV channel must be something else.
I tried ORF again today, and it works, so I cant log my ORF problem.

If you turn on debuggin in XMBC,
and, watch the log during the hang, do you see something interesting in the protocol ?


- Goga777 - 2010-08-28

nothing interesting
all my logs are here
http://trac.xbmc.org/ticket/9992


- nobody.loopback - 2010-08-28

The only thing I can read from your logs, is, that (maybe) you (?) tried several times to klick the channel - could this be possible ? klicking a second time if the program waits for a valid PMT will make it hang another time.

other possibities:
do you have changed settings for the tuxbox in the "Advancedsettings.xml" file? If yes, delete the section and try again if this changes something.

Can you bild your own xbmc ?
if yes:
in /xbmc/utils/TuxBoxUtil.cpp, about line: 477 it reads:
Code:
//PMT must be a valid value to be sure that the ZAP is OK and we can stream!
    while(sStrmInfo.pmt.Equals("ffffffffh") && iRetry!=10) //try 10 Times
    {
      CLog::Log(LOGDEBUG, "%s - Requesting STREAMINFO! TryCount: %i!", __FUNCTION__,iRetry);
      GetHttpXML(urlx,"streaminfo");
      iRetry=iRetry+1;
      Sleep(200);
    }

change to
Code:
//PMT must be a valid value to be sure that the ZAP is OK and we can stream!
    while(sStrmInfo.pmt.Equals("ffffffffh") && iRetry!=10) //try 10 Times
    {
      CLog::Log(LOGDEBUG, "%s - Requesting STREAMINFO! TryCount: %i!", __FUNCTION__,iRetry);
      GetHttpXML(urlx,"streaminfo");
      iRetry=iRetry+1;
      Sleep(2);
    }

and try if this makes a difference.
200 seconds * 10 are a long time.


- Goga777 - 2010-08-28

nobody.loopback Wrote:The only thing I can read from your logs, is, that (maybe) you (?) tried several times to klick the channel - could this be possible ? klicking a second time if the program waits for a valid PMT will make it hang another time.

yes, it's possible to click by me several times

Quote:other possibities:
do you have changed settings for the tuxbox in the "Advancedsettings.xml" file? If yes, delete the section and try again if this changes something.

not, I didn't change it
my advancedsettings.xml here is
http://paste.ubuntu.com/485043/

Quote:Can you bild your own xbmc ?

I will do it

I will change only Sleep(200); ---> Sleep(2);


- Goga777 - 2010-08-28

Sleep(2); didn't help
I'm still have xbmc deadlock

my log here is
http://paste.ubuntu.com/485082/


last events

22:25:15 T:2958318448 M:136810496 DEBUG: Open - av_find_stream_info starting
22:25:17 T:2949303152 M:135520256 DEBUG: Thread 2949303152 terminating (autodelete)


- nobody.loopback - 2010-08-28

This should be 1 try to tune the channel from your log:
Code:
22:24:55 T:3022907264 M:126414848    INFO: easy_aquire - Created session to http://192.168.9.85
.
.
22:24:55 T:3022907264 M:126427136   DEBUG: FileCurl::Open(0xbfe7e658) http://192.168.9.85/xml/streaminfo
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Frontend: DVB-S
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Service
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Name: Baby TV
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Reference: 1:0:1:7:300c:13e:820000:0:0:0:
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Provider: RRSat
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Vpid: ffffffffh (-1d)
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Apid: ffffffffh (-1d)
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - PcrPid: ffffffffh (-1d)
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Tpid: ffffffffh (-1d)
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Tsid: 300ch
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Onid: 013eh
22:24:55 T:3022907264 M:126427136   DEBUG: StreamInformations - Sid: 0007h
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Pmt: ffffffffh
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Video Format: n/a
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Supported Crypt Systems: 4a70h Dream Multimedia TV (DreamCrypt)
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Used Crypt Systems: 0500h:  Viaccess (France Telecom)
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Satellite: S13.0E Ku Hot Bird 6/8/9
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Frequency: 10970
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Symbol Rate: 27502
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Polarisation: Horizontal
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Inversion: No
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Fec: 3/4
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Snr: 46%
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Agc: 58%
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - ber: 0
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Lock: No
22:24:55 T:3022907264 M:126431232   DEBUG: StreamInformations - Sync: No.
.
.
.
.
22:24:55 T:3022907264 M:126435328   DEBUG: CreateNewItem - WARNING: Zaping Failed no Zap Point found!
that all happend within 1 second.

next try to tune was:
Code:
22:25:00 T:3022907264 M:126451712   DEBUG: OnKey: 11 pressed, action is Select
that all happend within 1 second, and the second try to tune 5 seconds later.
After that you retried maybe 3 times ?

Also, tuning the channel failed ( lock = NO) if I understand it correct.

If you manually tune the channel from the WEB-interface of the box, and, then use Web-X-TV to watch, or VLC, will that work ?

Looks for me, like something else is wrong in the first place, when xbmc tries to zap to the channel.


- Goga777 - 2010-08-28

xbmc didn't wake up after this test , only reset of my PC can help to reboot computer

nobody.loopback Wrote:This should be 1 try to tune the channel from your log:

yes, correct

FYI - no any "WORKING" message has been during this attempt. It's strange for me

I had only WARNING: Zaping Failed no Zap Point found! in the end of first attempt.

Quote:next try to tune was:
[code]
22:25:00 T:3022907264 M:126451712 DEBUG: OnKey: 11 pressed, action is Select

for second attempt I also didn't have any "WORKING" label

Quote:After that you retried maybe 3 times ?

2 or 3

Quote:Also, tuning the channel failed ( lock = NO) if I understand it correct.

correct

Quote:If you manually tune the channel from the WEB-interface of the box, and, then use Web-X-TV to watch, or VLC, will that work ?

sorry - I can't check that


- nobody.loopback - 2010-08-28

Goga777 Wrote:sorry - I can't check that

? - Even, if you had no physical access to the dreambox, since you have acess to xbmc and xbmc has access to the network, so you have acess to the dreambox, and should be able to use videolan for playback and also use the webif of the box.

If the zapping to the channel fails you are unlikely to watch it anyway, I have no further idea what to do to investigate this problem.
sorry.


- Goga777 - 2010-08-28

ok - I found the way and checked with Web-IF for dreambox
I can tune on all dvb channels without any problem


- Goga777 - 2010-08-29

heres is good sample, when xbmc hunged up for always after ONLY ONE attempt to switch on BabyTV

http://paste.ubuntu.com/485308/


- nobody.loopback - 2010-08-29

ok,
this time the box made it to get a lock on the channel, and, after the 6th try got a valid PMT.
This is a ruDream image, and, does not have zapstream.

When I made the little modification, which finally enabled sucessfull channel switching, I thought, this applies to wether or not your box has zapstream.
Now, this log looks like it does not.

I check this.

btw. zapstream is highly recommended, because it makes zapping and streaming much more reliable. you get zapstream in any Pli image.