Channels Plugin

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: Channels Plugin

Post by DeFlanko »

I got a Samsung as well as Optimus... he has a few too
User avatar
SharkHunter
Developer
Posts: 648
Joined: Fri Jun 01, 2012 9:36 pm

Re: Channels Plugin

Post by SharkHunter »

DeFlanko wrote:I got a Samsung as well as Optimus... he has a few too
Ok just pull the latest master and build (I know you can :)) and the try something containing a "/" and see that it's swapped to a ":".
What would be real nice to see if you see the error if you disable the CharMap. Just remove the line "CharMap=/ :" from the render conf file...
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: Channels Plugin

Post by DeFlanko »

SharkHunter wrote:
DeFlanko wrote:I got a Samsung as well as Optimus... he has a few too
Ok just pull the latest master and build (I know you can :)) and the try something containing a "/" and see that it's swapped to a ":".
What would be real nice to see if you see the error if you disable the CharMap. Just remove the line "CharMap=/ :" from the render conf file...

So play something that has a "/" in the file name? and see if it shows up with a ":" on the screen...
User avatar
SharkHunter
Developer
Posts: 648
Joined: Fri Jun 01, 2012 9:36 pm

Re: Channels Plugin

Post by SharkHunter »

DeFlanko wrote:
SharkHunter wrote:
DeFlanko wrote:I got a Samsung as well as Optimus... he has a few too
Ok just pull the latest master and build (I know you can :)) and the try something containing a "/" and see that it's swapped to a ":".
What would be real nice to see if you see the error if you disable the CharMap. Just remove the line "CharMap=/ :" from the render conf file...

So play something that has a "/" in the file name? and see if it shows up with a ":" on the screen...
Yep
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
pen
Posts: 60
Joined: Mon Sep 02, 2013 11:47 pm

Re: Channels Plugin

Post by pen »

Thank's for fixing this.

As the requester I'm o course interested in giving it a try. But currently I don't have the competence and tools to build unfortunately.

Pen
Server Ubuntu 12.04, Renderer Samsung 46D6300
pen
Posts: 60
Joined: Mon Sep 02, 2013 11:47 pm

Re: Channels Plugin

Post by pen »

I have started to upgrade to UMS 3.0.0-b1 together with Channels 221. But I have some problems which at least partly has to do with my Linux environment - Ubuntu.

I did a clean install of UMS 3.0.0-b1 (keeping the old one in a separate directory) and it worked. Then I tried the PnP installation of Channels but somewhere I suspect it didn't went through completely. When restarting UMS it hanged with Java exceptions - I was not even able to re-install the plugin. So, I removed the PMS and Channels jar-files and restarted UMS again and tried a second PnP installation of Channels. It also hangs but I think it is a bit later than the first install - it is stucked in the post-install phase. Here is the logg:

Code: Select all

DEBUG 2013-10-26 12:10:06.407 [Thread-5] Installing plugin Channels type 1
DEBUG 2013-10-26 12:10:06.762 [Thread-5] fetch file http://sharkhunter-shb.googlecode.com/files/tv_plug_221.jar
DEBUG 2013-10-26 12:10:08.025 [Thread-5] fetch file http://www.universalmediaserver.com/plugins/channels/dependencies/pmsencoder-1.6.3.jar
DEBUG 2013-10-26 12:10:35.729 [Thread-5] fetch file http://sharkhunter-shb.googlecode.com/svn/trunk/ps3mediaserver/extras/bin/curl.exe
DEBUG 2013-10-26 12:10:35.729 [Thread-5] fetch file http://sharkhunter-shb.googlecode.com/svn/trunk/ps3mediaserver/extras/bin/rtmpdump.exe
DEBUG 2013-10-26 12:10:35.729 [Thread-5] fetch file http://sharkhunter-shb.googlecode.com/svn/trunk/ps3mediaserver/extras/bin/youtube-dl.exe
DEBUG 2013-10-26 12:10:35.730 [Thread-5] fetch file http://sharkhunter-shb.googlecode.com/files/pepy.zip
DEBUG 2013-10-26 12:10:35.730 [Thread-5] fetch file https://github.com/rg3/youtube-dl/raw/2012.02.27/youtube-dl
DEBUG 2013-10-26 12:10:37.485 [Thread-5] Loading jars
INFO  2013-10-26 12:10:37.490 [Thread-5] Found plugin: com.sharkhunter.channel.CH_plugin
INFO  2013-10-26 12:10:37.494 [Thread-5] Found plugin: com.chocolatey.pmsencoder.Plugin
DEBUG 2013-10-26 12:10:37.516 [Thread-5] do inst of CH_plugin
DEBUG 2013-10-26 12:10:37.517 [Thread-5] Reading channels.path: default: null, current: "extras\channels"
INFO  2013-10-26 12:10:37.520 [Thread-5] Start channel 2.21
INFO  2013-10-26 12:10:37.548 [Thread-5] Configuration saved to: /opt/ums-3.0.0/UMS.conf
DEBUG 2013-10-26 12:10:37.559 [Thread-5] Reading pmsencoder.script.directory: default: null, current: "extras\scripts"
DEBUG 2013-10-26 12:10:37.559 [Thread-5] Reading cookie.path: default: null, current: "extras\cookies"
INFO  2013-10-26 12:10:38.529 [Thread-5] Configuration saved to: /opt/ums-3.0.0/UMS.conf
DEBUG 2013-10-26 12:10:38.531 [Thread-5] Reading channels.debug: default: null, previous: null, current: "false"
DEBUG 2013-10-26 12:10:38.531 [Thread-5] Reading channels.subtitles: default: null, previous: null, current: "true"
DEBUG 2013-10-26 12:10:38.531 [Thread-5] Reading channels.favorite: default: null, previous: null, current: "true"
DEBUG 2013-10-26 12:10:38.531 [Thread-5] Reading channels.long_savename: default: null, previous: null, current: "false"
DEBUG 2013-10-26 12:10:38.531 [Thread-5] Reading channels.pmsencoder: default: null, previous: null, current: "false"
DEBUG 2013-10-26 12:10:38.531 [Thread-5] Reading channels.stream_var: default: null, previous: null, current: "false"
INFO  2013-10-26 12:10:38.549 [Thread-5] Exception in thread "Thread-5" java.lang.VerifyError: class com.chocolatey.pmsencoder.PMSEncoder overrides final method launchTranscode.(Ljava/lang/String;Lnet/pms/dlna/DLNAResource;Lnet/pms/dlna/DLNAMediaInfo;Lnet/pms/io/OutputParams;)Lnet/pms/io/ProcessWrapper;
INFO  2013-10-26 12:10:38.550 [Thread-5] 	at java.lang.ClassLoader.defineClass1(Native Method)
INFO  2013-10-26 12:10:38.551 [Thread-5] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:788)
INFO  2013-10-26 12:10:38.552 [Thread-5] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
INFO  2013-10-26 12:10:38.553 [Thread-5] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
INFO  2013-10-26 12:10:38.554 [Thread-5] 	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
INFO  2013-10-26 12:10:38.554 [Thread-5] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
INFO  2013-10-26 12:10:38.555 [Thread-5] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
INFO  2013-10-26 12:10:38.556 [Thread-5] 	at java.security.AccessController.doPrivileged(Native Method)
INFO  2013-10-26 12:10:38.558 [Thread-5] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
INFO  2013-10-26 12:10:38.559 [Thread-5] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
INFO  2013-10-26 12:10:38.560 [Thread-5] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
INFO  2013-10-26 12:10:38.561 [Thread-5] 	at java.lang.Class.getDeclaredMethods0(Native Method)
INFO  2013-10-26 12:10:38.563 [Thread-5] 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
INFO  2013-10-26 12:10:38.563 [Thread-5] 	at java.lang.Class.getDeclaredMethod(Class.java:1992)
INFO  2013-10-26 12:10:38.564 [Thread-5] 	at net.pms.external.ExternalFactory.postInstall(ExternalFactory.java:453)
INFO  2013-10-26 12:10:38.565 [Thread-5] 	at net.pms.external.ExternalFactory.instantiateDownloaded(ExternalFactory.java:480)
INFO  2013-10-26 12:10:38.566 [Thread-5] 	at net.pms.configuration.DownloadPlugins.install(DownloadPlugins.java:560)
INFO  2013-10-26 12:10:38.567 [Thread-5] 	at net.pms.newgui.PluginTab$2$1.run(PluginTab.java:203)
INFO  2013-10-26 12:10:38.568 [Thread-5] 	at java.lang.Thread.run(Thread.java:724)
There is at least one Linux related problem with the installation in that it uses "\" instead of "/" (see the log). Looking into the main directory I can see two directories with the Linux names "extras\channels" and "extras\scripts", that is the "channels" directory is not crated in the "extras" directory.

After this I stopped UMS and corrected the faulty directories and updated the corresponding paths in the UMS.conf file and then restarted it again. Then I got the following error (which I actually think is the same as after the first unsuccessful install):

Code: Select all

10-26 12:40:20  Found plugin: com.chocolatey.pmsencoder.Plugin
10-26 12:40:20  Exception in thread "main" java.lang.VerifyError: class com.chocolatey.pmsencoder.PMSEncoder overrides final method launchTranscode.(Ljava/lang/String;Lnet/pms/dlna/DLNAResource;Lnet/pms/dlna/DLNAMediaInfo;Lnet/pms/io/OutputParams;)Lnet/pms/io/ProcessWrapper;
10-26 12:40:20  	at java.lang.ClassLoader.defineClass1(Native Method)
10-26 12:40:20  	at java.lang.ClassLoader.defineClass(ClassLoader.java:788)
10-26 12:40:20  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
10-26 12:40:20  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
10-26 12:40:20  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
10-26 12:40:20  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
10-26 12:40:20  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
10-26 12:40:20  	at java.security.AccessController.doPrivileged(Native Method)
10-26 12:40:20  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
10-26 12:40:20  	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
10-26 12:40:20  	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
10-26 12:40:20  	at java.lang.Class.getDeclaredConstructors0(Native Method)
10-26 12:40:20  	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
10-26 12:40:20  	at java.lang.Class.getConstructor0(Class.java:2793)
10-26 12:40:20  	at java.lang.Class.newInstance(Class.java:345)
10-26 12:40:20  	at net.pms.external.ExternalFactory.instantiateEarlyListeners(ExternalFactory.java:419)
10-26 12:40:20  	at net.pms.external.ExternalFactory.lookup(ExternalFactory.java:399)
10-26 12:40:20  	at net.pms.PMS.init(PMS.java:665)
10-26 12:40:20  	at net.pms.PMS.createInstance(PMS.java:1053)
10-26 12:40:20  	at net.pms.PMS.main(PMS.java:1149)
Edit
There is apperently a Linux related error somewhere but nomi seems to have the same java exception in Windows:

viewtopic.php?f=9&t=1228

Pen
Server Ubuntu 12.04, Renderer Samsung 46D6300
b0ris
Posts: 17
Joined: Sun Oct 27, 2013 5:40 pm

Re: Channels Plugin

Post by b0ris »

Thank you SharkHunter for your awsome work! I have a question - why is'nt any channels included in the plugin install for UMS? For me it's not any problem to find and take for example svt.ch from GitHub. But your work would be more available (for more people) if the channels was included in the install. For me the plugin install of 'channels' feels strange when I don't get any channels.
User avatar
SharkHunter
Developer
Posts: 648
Joined: Fri Jun 01, 2012 9:36 pm

Re: Channels Plugin

Post by SharkHunter »

b0ris -It should be if it isn't its a bug. Did you use 2.21?

pen - I haven't tested on Linux. Pls upload the logs so the PnP stuff can get fixed...
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
pen
Posts: 60
Joined: Mon Sep 02, 2013 11:47 pm

Re: Channels Plugin

Post by pen »

Ok Sharkhunter, I did the installation from scratch again to have as correct debuglogs as possible.

My setup:
Ubuntu 12.04
UMS 3.0.0b1

I re-did the installation of UMS 3.0.0b1
I started UMS and did nothing in it
I started the installation of Channels 221
The installation proceeds to the Downloading pepy.zip step where it gets busy for a while
Seems like it finally times out after 2 minutes - the installer just exits without having gone to the post-install steps.
Not much info in the debuglog unfortunately. Notably, the pepy.zip file has been downloaded correctly (has exactly the same size as in my UMS 2.6.5 installation).

So, let's stop here to get this step correct before proceeding to the other problems (since they might disappear :) ).

Pen
Attachments
300b1_installchannels_debug.log
(11.71 KiB) Downloaded 813 times
Server Ubuntu 12.04, Renderer Samsung 46D6300
User avatar
SharkHunter
Developer
Posts: 648
Joined: Fri Jun 01, 2012 9:36 pm

Re: Channels Plugin

Post by SharkHunter »

pen - yeah that looks like a bug there. PLs upload the full debug log. I'll be gone a week (höstlov) now so don't expect any fast replies :)
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
Post Reply