Jump to content


Photo

Stream stop


  • Please log in to reply
119 replies to this topic

#1 Siki78

  • Senior Member
  • 55 posts

+2
Neutral

Posted 4 December 2015 - 21:48

Hello to all!

Today sops the strem for us. Can someone help us to find where is a problem

Attached Files



Re: Stream stop #2 janejak

  • Senior Member
  • 284 posts

+11
Neutral

Posted 4 December 2015 - 22:02

it same her with me

Attached Files



Re: Stream stop #3 WanWizard

  • PLi® Core member
  • 70,552 posts

+1,813
Excellent

Posted 4 December 2015 - 23:00

Pretty clear, both URL's return an HTTP 403: Forbidden. So you don't have access to that URL, usually that means authentication is needed.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Stream stop #4 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 4 December 2015 - 23:21

I think that it is due of this commit: https://github.com/O...c64d537c17bfb48

 

He cut the link after '&' thinking that it is a header.



Re: Stream stop #5 Siki78

  • Senior Member
  • 55 posts

+2
Neutral

Posted 4 December 2015 - 23:23

Can we write our useragent they follow him i think that is a problem. On vlc and kodi works but with specific useragent. Thanks for replay

Re: Stream stop #6 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 5 December 2015 - 07:55

I think that it is due of this commit: https://github.com/O...c64d537c17bfb48

 

He cut the link after '&' thinking that it is a header.

Extra headers are parsed only after '#' delimiter. In link there is no delimiter, so nothing is cut.

 

Can we write our useragent they follow him i think that is a problem. On vlc and kodi works but with specific useragent. Thanks for replay

Sure, you can add it in bouquet like this:

#SERVICE 4097:0:0:0:0:0:0:0:0:0:http%3a//151.252.32.234:8080/stream/?channel=rts1&stream=1mb&sp=nettvplus?u=USER#User-Agent=CustomUserAgent:ChannelName


Re: Stream stop #7 mdshd

  • Senior Member
  • 140 posts

+3
Neutral

Posted 5 December 2015 - 10:47

Could you add the UserAgent for 1:0:1 streams for the next update, so we do not have to use 4097:0?


ET10000


Re: Stream stop #8 Siki78

  • Senior Member
  • 55 posts

+2
Neutral

Posted 5 December 2015 - 12:13

That is Problem doesnt works good like with 1:0:1 bild is not stable

#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//151.252.32.234%3a8080/stream/?channel=nettvinfo&stream=1mb&sp=nettvplus?u=USER#User-Agent=Linux-Android 5.0.1#User-Agent=Linux-Android 5.0.1:NetTV Plus Info Kanal
This stream works witout valid user you can try it


Edited by Siki78, 5 December 2015 - 12:16.


Re: Stream stop #9 littlesat

  • PLi® Core member
  • 57,186 posts

+699
Excellent

Posted 5 December 2015 - 13:06

Likely that patch needs to do more than only checking/splitting the url on a &.... But add a bit more to it...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Stream stop #10 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 5 December 2015 - 13:32

Could you add the UserAgent for 1:0:1 streams for the next update, so we do not have to use 4097:0?

Sure, I will create patch for it

 

That is Problem doesnt works good like with 1:0:1 bild is not stable

#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//151.252.32.234%3a8080/stream/?channel=nettvinfo&stream=1mb&sp=nettvplus?u=USER#User-Agent=Linux-Android 5.0.1#User-Agent=Linux-Android 5.0.1:NetTV Plus Info Kanal
This stream works witout valid user you can try it

So it's working for you with 4097, when you provide custom User-Agent? I thought that we were talking about 4097(gstreamer) and not 1(TS source) from the beginning.

For 1(TS source) there is currently hardcoded User-Agent to "Enigma2".

 

Likely that patch needs to do more than only checking/splitting the url on a &.... But add a bit more to it...

We are not checking/splitting url on '&', we use this delimiter only for extra headers. We split url and extra headers by '#'



Re: Stream stop #11 Siki78

  • Senior Member
  • 55 posts

+2
Neutral

Posted 5 December 2015 - 14:26

It would be great if you can create patch for 1:0:1 ref. Thanks a lot

Re: Stream stop #12 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 5 December 2015 - 16:18

https://github.com/O...nigma2/pull/115

 

With above patches, is your stream working.

 

Everything looks to be ok now, here are some tests:

#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777/path:test_dvb_without_headers

ERROR:root:Host: 127.0.0.1
User-Agent: Enigma2
Accept: */*
Connection: close

localhost.localdomain - - [05/Dec/2015 16:11:52] code 404, message File not found
localhost.localdomain - - [05/Dec/2015 16:11:52] "GET /path HTTP/1.1" 404 -
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777/path#CustomHeader1=Header1&User-Agent=CustomUserAgent&CustomHeader2=Header2:test_dvb_headers_with_path

ERROR:root:Host: 127.0.0.1
User-Agent: CustomUserAgent
CustomHeader1: Header1
CustomHeader2: Header2
Accept: */*
Connection: close

localhost.localdomain - - [05/Dec/2015 16:13:31] code 404, message File not found
localhost.localdomain - - [05/Dec/2015 16:13:31] "GET /path HTTP/1.1" 404 -
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777#CustomHeader1=Header1&User-Agent=CustomUserAgent&CustomHeader2=Header2:test_dvb_headers_without_path

ERROR:root:Host: 127.0.0.1
User-Agent: CustomUserAgent
CustomHeader1: Header1
CustomHeader2: Header2
Accept: */*
Connection: close

localhost.localdomain - - [05/Dec/2015 16:14:13] "GET / HTTP/1.1" 200 -
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777#CustomHeader1=Header1&CustomHeader2=Header2:test_dvb_headers_without_path_without_useragent

ERROR:root:Host: 127.0.0.1
User-Agent: Enigma2
CustomHeader1: Header1
CustomHeader2: Header2
Accept: */*
Connection: close

localhost.localdomain - - [05/Dec/2015 16:14:52] "GET / HTTP/1.1" 200 -
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777/path#CustomHeader1=Header1&CustomHeader2=Header2:test_dvb_headers_with_path_without_useragent

ERROR:root:Host: 127.0.0.1
User-Agent: Enigma2
CustomHeader1: Header1
CustomHeader2: Header2
Accept: */*
Connection: close

localhost.localdomain - - [05/Dec/2015 16:16:07] code 404, message File not found
localhost.localdomain - - [05/Dec/2015 16:16:07] "GET /path HTTP/1.1" 404 -

testserver:

import SimpleHTTPServer
import SocketServer
import logging
PORT = 7777
class ServerHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):

    def do_GET(self):
        logging.error(self.headers)
        # whatever else you would like to log here
        SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)

Handler = ServerHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()


Re: Stream stop #13 mdshd

  • Senior Member
  • 140 posts

+3
Neutral

Posted 5 December 2015 - 18:55

1. How can I download this file and where to the file over ftp?

2. Should I add after user for every stream this line in the adress? Or it is not needed? #User-Agent=Linux-Android 5.0.1#User-Agent=Linux-Android 5.0.1


ET10000


Re: Stream stop #14 mdshd

  • Senior Member
  • 140 posts

+3
Neutral

Posted 5 December 2015 - 19:08

I mean the patch. How to download and where to replace?


ET10000


Re: Stream stop #15 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 5 December 2015 - 19:21

@mx3L, maybe I missed something, but User-Agent we can specify if we use the service from a bouquet.
But what for example with 3rd-party plugins that are for playback used 4097, but whose links we can not change?



Re: Stream stop #16 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 5 December 2015 - 19:39

@mdshd

You have to wait until it's reviewed and pushed by OpenPli team, then download new image/use update.

 

@Taapat

just use service reference path:

url = getVideoLink()
url = url + "#User-Agent=CustomUserAgent&CustomHeader=Header"
sref = eServiceReference(4097, 0, url)
session.nav.playService(sref)


Re: Stream stop #17 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 5 December 2015 - 19:49

Yes, but I mentioned a 3rd-party plugins, because it is possible that we can not change their source code.
Perhaps, we need to return the possibility set the User-Agent in the config?
In any case, I write only in theory, and I do not know any plugin where they should be needed.



Re: Stream stop #18 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 5 December 2015 - 19:59

So for backwards compatibility with non-open source or abandoned plugins, you want to add old way of setting User-Agent header via config?

 

I guess we could do that, so both options are available, but I think rather plugin's authors should update their plugins, since it's clearly more flexible now and we don't need to set globally User-Agent for every service via config.



Re: Stream stop #19 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 5 December 2015 - 21:47

@Taapat

From second reading of my post, it sounds to me kind of rude, so my apology If it sound that way for you too, It was not my intention at all. I would like to hear also opinion about this from PliTeam.

 

@mdshd

I can see that my pull request was pushed :), so I guess tomorrow it will be available for a test.



Re: Stream stop #20 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 5 December 2015 - 21:53

Do not need apologize.
I wrote that it is only in theory, and maybe it's really just another reason not to use non-open source or abandoned plugins.
I personally also do not like those.




7 user(s) are reading this topic

0 members, 7 guests, 0 anonymous users