Jump to content


Photo

OpenWebif [E2OpenPlugins]


  • Please log in to reply
1459 replies to this topic

Re: OpenWebif [E2OpenPlugins] #901 bacicciosat

  • Senior Member
  • 540 posts

+100
Excellent

Posted 6 October 2012 - 11:59

Hi all,

my first post here :)

I'm going to commit the changes and progress I've made so far today.
That includes updates to the programme info layer: interface to add a timer, stream programme, zap.
Also some speedup in loading the EPG view - unfortunately the reason why it is so slow seem to be
the template engine.


Have you compiled the template ? The template is slow only when it is not compiled.

Re: OpenWebif [E2OpenPlugins] #902 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,503 posts

+118
Excellent

Posted 6 October 2012 - 12:01

Hi cimarast

Welcome here, Cam you introduce yourself shortly

Greetings

on the Glassfibre 1GB DVB-C...


Re: OpenWebif [E2OpenPlugins] #903 Cimarast

  • Member
  • 14 posts

+5
Neutral

Posted 6 October 2012 - 12:34

Cam you introduce yourself shortly

With pleasure :) -- a have a background of 20 years of Unix and Linux, even more in programming, starting with Pascal (long ago), C, C++, Java, Perl, PHP and more recently Python, SQL and of course HTML, Javascript. I own a VU+ Uno with VTi on it, and found that I don't particularly like the standard EPG that comes with OpenWebif, and aksed myself if I could help to improve it. Thankfully @plnick picked up my first patches.

Re: OpenWebif [E2OpenPlugins] #904 Cimarast

  • Member
  • 14 posts

+5
Neutral

Posted 6 October 2012 - 12:40

Have you compiled the template ? The template is slow only when it is not compiled.

Yes, of course. My tests seem to imply that template variable name lookups are quite slow (VFFSL et.al. methods).
For now I've made a compromise and only re-implemented the inner loop in plain python, that results in a nice 3 times speedup for me.

Re: OpenWebif [E2OpenPlugins] #905 Cimarast

  • Member
  • 14 posts

+5
Neutral

Posted 6 October 2012 - 13:23

I've commited my recent changes and double checked that the tree works on my box; please review, test and bear with me, if I've made mistakes!

Re: OpenWebif [E2OpenPlugins] #906 Happysat

  • Senior Member
  • 697 posts

+43
Good

Posted 6 October 2012 - 16:45

Cimarast very good job!

I dont see any mistakes or errors :)

Octagon SF8008 / TBS5530  DVB-S2/T2 T-85/1.50Mtr/3x90cm (53e 52e 51,5e 28e 25,9e 23e 19e 13e 9e 4e 1w 5w 14w)


Re: OpenWebif [E2OpenPlugins] #907 Edgar

  • Senior Member
  • 292 posts

+7
Neutral

Posted 6 October 2012 - 18:41

Cimarast, it works like a charm :) Nice the feature to change the added timer first before to save it!

VU+ Duo 4K DVB-S2X en DVB-C met Open PLi 7.0


Re: OpenWebif [E2OpenPlugins] #908 koivo

  • Senior Member
  • 69 posts

+6
Neutral

Posted 7 October 2012 - 08:52

Is it possible to show this EPG in a new window?

Re: OpenWebif [E2OpenPlugins] #909 Cimarast

  • Member
  • 14 posts

+5
Neutral

Posted 7 October 2012 - 09:41

I've deliberatly coded it to use a layer, because I really don't like it to use a new window. It's slower, it's another window, ...

Re: OpenWebif [E2OpenPlugins] #910 koivo

  • Senior Member
  • 69 posts

+6
Neutral

Posted 7 October 2012 - 10:14

It was an idea. The layer is very small with only 3 channels to see.
I mean the EPG is better to read in a greater window or in a single window.

Re: OpenWebif [E2OpenPlugins] #911 Cimarast

  • Member
  • 14 posts

+5
Neutral

Posted 7 October 2012 - 10:35

Ah, I think I misunderstood you; but see Homeys last post on the previous page - he attached a new style.css, which gives you much more space for (not only) the EPG. I like it.

Re: OpenWebif [E2OpenPlugins] #912 Happysat

  • Senior Member
  • 697 posts

+43
Good

Posted 7 October 2012 - 13:05

The new style was not commited into OpenWebIF Github thats why they have the old layout.

Maybe one member can put this up so it looks good for all :)

Octagon SF8008 / TBS5530  DVB-S2/T2 T-85/1.50Mtr/3x90cm (53e 52e 51,5e 28e 25,9e 23e 19e 13e 9e 4e 1w 5w 14w)


Re: OpenWebif [E2OpenPlugins] #913 koivo

  • Senior Member
  • 69 posts

+6
Neutral

Posted 7 October 2012 - 17:01

Yeah this is really better but only the current tab ist not placed in the middle.

Edited by koivo, 7 October 2012 - 17:03.


Re: OpenWebif [E2OpenPlugins] #914 PhenomXy

  • Senior Member
  • 120 posts

+3
Neutral

Posted 9 October 2012 - 00:26

cant get picons to show up on webif, my picons are in /media/hdd/picon, creating a simlynk to cf/picons it detects the picons but it doesnt show any. (404 "image/page not found")

Re: OpenWebif [E2OpenPlugins] #915 Silent

  • Member
  • 6 posts

+3
Neutral

Posted 16 October 2012 - 17:35

Great plugin guys :)

Has anyone thought about adding the remotes to the Mobile version? Would obviously need to be scale-able to click the buttons, but it would be great to be able to see the remote and control the box that way.

Re: OpenWebif [E2OpenPlugins] #916 Reaps

  • Member
  • 24 posts

0
Neutral

Posted 19 October 2012 - 10:35

Quick question:

Is there a way to stream in 720p?

I'm currently trying to stream over the Internet, I have all the ports set up and working ok.

Using network bandwidth tools, I can see I am maxing out my 10mbps upload while using 1080.

How do I change to 720 streaming please?

Thanks,
Mark

Re: OpenWebif [E2OpenPlugins] #917 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 22 October 2012 - 07:58

You can only select another stream to accomplish that. The box can only decode, not "encode" and certainly not "recode".

Anyway, it wouldn't help because 720p uses just as much bandwidth as 1080i.
Real musicians never die - they just decompose

Re: OpenWebif [E2OpenPlugins] #918 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 22 October 2012 - 08:20

small reminder:

... Yes it is working well on live streams. However, if one of these channels is recorded and then you attempt to stream the recorded file... then VLC doesn't display.

I guess that the sid value in the '.meta' file would need to be retrieved and used to inform the 'program=sid'.

Within the file usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/models/stream.py there is a procedure "getTS" which can be altered to include the SID required by VLC:

def getTS(self,request):
if "file" in request.args:
  filename = unquote(request.args["file"][0]).decode('utf-8', 'ignore').encode('utf-8')
  if not os.path.exists(filename):
   return "File '%s' not found" % (filename)
# ServiceReference is not part of filename so look in the '.ts.meta' file
  sRef = ""
  if os.path.exists(filename + '.meta'):
   metafile = open(filename + '.meta', "r")
   line = metafile.readline()
   if line:
	sRef = eServiceReference(line.strip()).toString()
   metafile.close()
  if sRef != '':
   progopt="#EXTVLCOPT:program=%d\n" % (int(sRef.split(':')[3],16))
  else:
   progopt=""
  response = "#EXTM3U\n#EXTVLCOPT--http-reconnect=true \n%shttp://%s:%s/file?file=%s\n" % (progopt,request.getRequestHostname(), config.OpenWebif.port.value, quote(filename))
  request.setHeader('Content-Type', 'application/text')
  return response
else:
  return "Missing file parameter"

Perhaps someone who has developer access can commit this enhancement so that others can enjoy. Meanwhile, I am happy being able to stream recordings (rather than just 'live') of shared pmt channels.

With this change, I am able to stream channels recorded from Optus C1 in the Aurora package (eg. WIN, GWN, IMP, 7Central etc.)

could it be pushed?
or something's wrong with it?
from what I see, a pull request is waiting for 3 weeks or more now...
it's really usefull patch, so if someone with write access could push it, it would be great...
thanks
True sarcasm doesn't need green font...

Re: OpenWebif [E2OpenPlugins] #919 Reaps

  • Member
  • 24 posts

0
Neutral

Posted 22 October 2012 - 10:49

You can only select another stream to accomplish that. The box can only decode, not "encode" and certainly not "recode".

Anyway, it wouldn't help because 720p uses just as much bandwidth as 1080i.


Hiya,

Thanks for the info btw, very helpful knowing 720p is around the same as 1080i.

On 'another stream' what do you mean?

Thanks again,
Cheers
Mark

Re: OpenWebif [E2OpenPlugins] #920 Reaps

  • Member
  • 24 posts

0
Neutral

Posted 22 October 2012 - 16:18

Ah, I think you're talking about changing to a channel which is not already in HD and streaming that instead? Using method to get a lower than 720 stream for bandwidth.


16 user(s) are reading this topic

0 members, 16 guests, 0 anonymous users