Jump to content


Photo

Plugin Vlcplayer for VLC 2.0.1 and cache facility


  • Please log in to reply
29 replies to this topic

#1 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 15 April 2012 - 11:11

Hi,

Please find attached a modified plugin Vlcplayer. It has the following features :-

Streaming via new Vlc Mediaplayer version 2.0.1.

Caching of the downloaded .ts media

Audio samplerate 0 added.

Method :-

Download and install Vlc 2.0.1. Do

Tools -> Preferences -> All -> Interface -> Main Interface -> Select Web.

Find file c:/Program Files/VideoLAN/VLC/Lua/http/.hosts and insert your dreambox ip (without #).

Download and install the attached VlcPlayer Mod. Configure as usual.

If anybody wants to update the plugin git - the changes are in VlcPlayer.py, VlcServer.py and VlcServerConfig,py.

Regards, pcd.

Attached File  vlcplayer-mod-pcd.zip   111.41KB   256 downloads

Edited by pcd, 15 April 2012 - 11:15.


Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #2 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 15 April 2012 - 14:29

But problem is still with soverlay, sout-all, cache, tracks etc => cannot be turned on/off srt subtitles or choose audio tracks...
Kdo nic nedělá, nic nezkazí!

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #3 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 15 April 2012 - 14:38

But problem is still with soverlay, sout-all, cache, tracks etc => cannot be turned on/off srt subtitles or choose audio tracks...


Can you please explain - what are the problems ?

I only tested the simple streaming I normally do.

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #4 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 15 April 2012 - 14:51

yes, normal streaming works.
- try streaming file with 2 audio tracks ... for VLC < 2 on end of sout string is added " :sout-all" => is possible choose in Audio/Subtitle audio track
- transcode.append("soverlay") ... overlay subtitles
...

i am using it with option in server setting with : VLC 2.x Yes/No, becasue it is not compatible 1.x vs. 2.x

Edited by ims, 15 April 2012 - 14:52.

Kdo nic nedělá, nic nezkazí!

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #5 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 16 April 2012 - 00:22

Please try the attached. It has sout-all sout-keep and soverlay options.

Regards.

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #6 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 16 April 2012 - 12:40

Please use the attached VlcServer.py. It is ok with spaces in folder and video names.

Someone please delete the file from my earlier post. Thanks.

Attached Files



Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #7 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 17 April 2012 - 19:55

Here is my old version upgraded to supporting VLC2.x/1.x without new routine, but thanks pcd for invention.
@pcd: there was problem in feature of dictionary:
dict = { "a": "a", "b": "b", "c": "c" }
print dict
>>> { "a": "a", "c": "c", "b": "b" }
I am using list for it now.

In setup is added item for old VLC < 2.x and item for enable/disable using Cache Dir
I had not time for testing DVD and all its tracks/languages, but i think, in this time nobody streaming dvd's over vlc...

Attached Files


Edited by ims, 17 April 2012 - 19:56.

Kdo nic nedělá, nic nezkazí!

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #8 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 17 April 2012 - 22:24

Yes, dictionary did not work. Also three options did not work. That is why I input the vlc cmd as string. :)

Edited by pcd, 17 April 2012 - 22:25.


Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #9 Dimitrij

  • PLi® Core member
  • 10,018 posts

+338
Excellent

Posted 23 April 2012 - 19:53

Hi,ims

I translated the plugin into the Russian language.
Any button press causes the crash-log.
Screen <class 'Plugins.Extensions.VlcPlayer.VlcServerConfig.VlcServerConfigScreen'>((<Plugins.Extensions.VlcPlayer.VlcServer.VlcServer instance at 0x2970a30>,), {}): <type 'exceptions.KeyError'>
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/mytest.py", line 228, in create
	return screen(self, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/Plugins/Extensions/VlcPlayer/VlcServerConfig.py", line 433, in __init__
	cfglist.append(getConfigListEntry(_("Overscan Correction [in %(percentsign)s of Video width]") % { "percentsign" : "%"}, server.overscanCorrection()))
KeyError: '\xd0\xbf\xd1\x80\xd0\xbe\xd1\x86\xd0\xb5\xd0\xbd\xd1\x82\xd1\x8b'
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 46, in action
  File "/usr/lib/enigma2/python/Plugins/Extensions/VlcPlayer/VlcServerList.py", line 154, in keyEditServer
	self.session.openWithCallback(self.editCallback, VlcServerConfigScreen, server)
  File "/usr/lib/enigma2/python/mytest.py", line 296, in openWithCallback
	dlg = self.open(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/mytest.py", line 307, in open
	dlg.isTmp = True
AttributeError: 'NoneType' object has no attribute 'isTmp'
(PyObject_CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0x28edc10>>,('ColorActions', 'yellow')) failed)

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #10 Dimitrij

  • PLi® Core member
  • 10,018 posts

+338
Excellent

Posted 23 April 2012 - 20:04

Sorri :)
__init__.py
# -*- coding: utf-8 -*-

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #11 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 23 April 2012 - 21:15

problem is there: you may not translate
%(percentsign)s
in line 433 there in VlcServerConfig.py

Edited by ims, 23 April 2012 - 21:28.

Kdo nic nedělá, nic nezkazí!

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #12 Dimitrij

  • PLi® Core member
  • 10,018 posts

+338
Excellent

Posted 24 April 2012 - 05:48

problem is there: you may not translate

%(percentsign)s
in line 433 there in VlcServerConfig.py

Thank you.
Figured out.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #13 kdamien

  • Member
  • 6 posts

0
Neutral

Posted 15 July 2012 - 15:57

Hello. Would someone care to explain from the beginning how Vlc works.. Im interested in streaming video from pc to dm vica versa. Vlc installed on dm500hd \enigma2 \openpli . How do I configure pc ? DM box ip 192.168.10.107 - PC ip 192.168.10.175
Appreciate it :D

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #14 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 15 July 2012 - 16:13

why you want streaming ? E2 boxes know playback most formats directly...
Kdo nic nedělá, nic nezkazí!

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #15 kdamien

  • Member
  • 6 posts

0
Neutral

Posted 15 July 2012 - 16:21

How??, im pretty new to this.. Its not to be found at webinterface..

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #16 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 15 July 2012 - 16:23

share dir from PC, create Network mountpoint and then you can playback files with MoviePlayer (button VIDEO)
Kdo nic nedělá, nic nezkazí!

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #17 kdamien

  • Member
  • 6 posts

0
Neutral

Posted 15 July 2012 - 16:29

Hehe, if you could be so kind to guide me to how I create a mountpoint we would be very happy.. Folders are shared but how and where do I setup mountpoint? On DM or PC.. using cuteftp to edit contents on DM.

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #18 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 15 July 2012 - 16:34

mountpoint you create on DM ... in Menu-Setup-System-Network-MountManager.
Kdo nic nedělá, nic nezkazí!

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #19 kdamien

  • Member
  • 6 posts

0
Neutral

Posted 15 July 2012 - 17:04

Ok, so if computer is named kdb it will be \\kdb\e\ and ip adress. Anything else I need to tick off or configure exept windows settings ?

Re: Plugin Vlcplayer for VLC 2.0.1 and cache facility #20 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 15 July 2012 - 17:13

Local share name: any name - is displayed then in dreambox
Mount type - cifs
Server IP: IP of your PC
Server share: shared name = name, which you set in PC to shared directory... \\kdb\e is not share name. May be: e
use as HDD replacement
Mount points: rw
Username
Password
Kdo nic nedělá, nic nezkazí!


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users