HOWTO: Change JWPlayer to the HTML5 version

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby chali » Thu Jan 31, 2013 7:03 pm

Hi

no one knows where to place (externalplayer.jsp) ?

I get the error message that the file is not going to play,

I do not have permission or the file does not exist,

it works great with my phone and madsonic Mobile. but not with the computer (tested both firefox and chrome) you can neither play to mk808 or co-star (google tv)

it's because I do not know where to place the (externalplayer.jsp) or is it something else wrong?

server ubuntu x64 12.04 / Cpu 16x2.1 ghz ram 32 gig ddr3 ecc, dual gig intel lan nic.

/ Chali
chali
 
Posts: 57
Joined: Wed May 09, 2012 9:45 pm

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby chali » Thu Jan 31, 2013 7:51 pm

Hello again

I think I found the folder for the jsp file.

Now it works great to play movies on phones and ipad and android plates.

it does not play movies on computers neither firefox, chrome or explorer
in linux, w7, w8, I've tested with 6 different computers, can not play through google tv, (co-star, mk808, mk809, ug807)

on computers with chrome and firefox i will be notified that file is missing or that I do not have the rights to play the file.

on computers with explorer i will be notified that flash is missing.

My conclusion is that the computers are still trying to use flash instead of html5 which then becomes wrong when transcodong is set for html5. can this be right?

and does anyone know how I do so computers etc. uses html5 instead?

Sincerely, / Chali
chali
 
Posts: 57
Joined: Wed May 09, 2012 9:45 pm

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby bushman4 » Thu Jan 31, 2013 8:05 pm

This mod only replaces the external player file used by remote applications... it does not change the Subsonic standard web interface.

So if you are using a client application that uses the REST API, it will probably work.

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 874
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby chali » Thu Jan 31, 2013 8:29 pm

Hi

ok it explains a lot :oops:

there is still no way to get subsonic to use html5 in chrome, firefox? :cry:

/Chali
chali
 
Posts: 57
Joined: Wed May 09, 2012 9:45 pm

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby bushman4 » Thu Jan 31, 2013 8:34 pm

Not until someone does something similar to the main web player setup... but now that the ground work is done, it should be relatively "simple."

(says the man with no time to try)

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 874
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby chali » Thu Jan 31, 2013 8:58 pm

Hi

Ok then just hope someone can take the time to do it =)
are very willing to donate to the persson that makes it working.

I still get errors of messages on google tv using madsonic app.
it uses html5 (it gives a message that it does)

Then it says the following: error loading player: No playable sources found

same movie works on the phone without any problems and with the same account.

Do you have any idea what is wrong?

/ Chali
chali
 
Posts: 57
Joined: Wed May 09, 2012 9:45 pm

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby Jimbob0i0 » Thu Jan 31, 2013 11:30 pm

Awesome work ...

It's working pretty nicely here (chrome on F18 and chrome on android).

As you've already said a future iteration would be nice to get the seeking working (at least pause is already) with fall back from webm to h264 to support safari and IE would probably be useful as well (and h264 would be nicer on mobile devices too so maybe make that the preferred format due to less battery consumption with hardware h264 decode mechanisms unlike webM) and finally update the embedded music player to html5 rather than the flash one would be nice (although very low priority given the existence of minisub and the native android client.

Here's hoping the next release that sindre puts out adds some of this stuff ;)
Jimbob0i0
 
Posts: 5
Joined: Thu Jan 31, 2013 10:52 pm

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby Jimbob0i0 » Thu Jan 31, 2013 11:54 pm

Reading some of this stuff and comments about low power CPUs I thought this might be of some interest to people.

I'm using an HP Microserver (N40L running F18) for a NAS and it struggles a bit with the transcoding at times.

My PC is usually switched on though (albeit in a low power state unless needed).

I installed an SSH server on my PC (http://www.bitvise.com/winsshd) and set up keys for password-less auth from the subsonic user on the NAS to my PC.

In the subsonic config a transcoding command is specified of:

ffmpeg-webm %o %d %s %b %w %h

ffmpeg-webm is a bash script in /var/subsonic/transcode:

Code: Select all
#!/bin/bash

echo "DEBUG : WEBM : $1 : $2 : $3 : $4 : $5 " >> /var/subsonic/transcoder.log

ext="${3##*.}"
tempfile="$(date +%s).${ext}"

scp "$3" user@pc:"c:\\temp\\subtranscode\\${tempfile}\""

ssh user@pc "C:\ffmpeg\ffmpeg-64  -ss $1 -t $2 -i \"c:\\temp\\subtranscode\\${tempfile}\"  -async 1 -vf lutyuv=y=val*1.1 -b ${4}k -s ${5}x${6} -ar 44100 -ac 2 -v 0 -f webm -vcodec libvpx -preset superfast -acodec libvorbis -threads 2 -"

ssh user@pc "del \"c:\temp\\subtranscode\\${tempfile}\""


My server and PC are on a gigabit switch so the scp doesn't take too long - there's also a scheduled task on the pc to automatically clean up the temp subtranscode directory.

The scp (rather than just stream the file to ffmpeg on the pc and then stream back) is done to cope with files that don't have the index information at the start (my testing needed ffmpeg to be able to see the whole file in that case).

This keeps my setup low powered (audio transcode for example doesn't need this... just video) and allows my beefy machine to take care of teh CPU intensive stuff when needed ;)
Jimbob0i0
 
Posts: 5
Joined: Thu Jan 31, 2013 10:52 pm

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby daneren2005 » Fri Feb 01, 2013 12:45 am

Call me crazy, but wouldn't doing a full scp of a dvd rip take like a full minute? That would be a long time to wait before starting to watch anything. My reasoning is that scp is doing a disk-to-disk operation, so the speed of the two HDD's in question would be the limiting factor, not your gigabit connection. I can't really see why that would be better then streaming it back and forth, as it would reach the index at the same time either way.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Re: HOWTO: Change JWPlayer to the HTML5 version

Postby Fenny » Fri Feb 01, 2013 3:11 am

chali wrote:Hello again

I think I found the folder for the jsp file.

Now it works great to play movies on phones and ipad and android plates.

it does not play movies on computers neither firefox, chrome or explorer
in linux, w7, w8, I've tested with 6 different computers, can not play through google tv, (co-star, mk808, mk809, ug807)

on computers with chrome and firefox i will be notified that file is missing or that I do not have the rights to play the file.

on computers with explorer i will be notified that flash is missing.

My conclusion is that the computers are still trying to use flash instead of html5 which then becomes wrong when transcodong is set for html5. can this be right?

and does anyone know how I do so computers etc. uses html5 instead?

Sincerely, / Chali


Have you used all three jsp files?
It sounds to me like you may have only replaced the external player one that I did. You need all three of them to totally convert everything. Also, it won't play on my gtv browser either. Looks like it doesn't do html5.

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Fenny
 
Posts: 21
Joined: Wed Oct 12, 2011 4:06 pm

Re: Re: HOWTO: Change JWPlayer to the HTML5 version

Postby Fenny » Fri Feb 01, 2013 3:17 am

Jimbob0i0 wrote:Awesome work ...

It's working pretty nicely here (chrome on F18 and chrome on android).

As you've already said a future iteration would be nice to get the seeking working (at least pause is already) with fall back from webm to h264 to support safari and IE would probably be useful as well (and h264 would be nicer on mobile devices too so maybe make that the preferred format due to less battery consumption with hardware h264 decode mechanisms unlike webM) and finally update the embedded music player to html5 rather than the flash one would be nice (although very low priority given the existence of minisub and the native android client.

Here's hoping the next release that sindre puts out adds some of this stuff ;)


I started to do just that, (even got it to load and play sounds) but the playlist management code is so different between v5 and v6 that I decided I didn't want to rewrite it all from scratch.

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Fenny
 
Posts: 21
Joined: Wed Oct 12, 2011 4:06 pm

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby woxer » Fri Feb 01, 2013 3:27 pm

I can't find what I am doing wrong here. I have triple checked the tutorial and made sure that I have placed the .jsp files in the correct place. I have tried to change some other trans-code before I tried this fix and gotten the same error. I get the error "Video not found or access denied: /stream?id=241&maxBitRate=1000&timeOffset=0&player=1"
(I am using the transcode settings as they are in the tutorial)

I have searched the forum for an answer bot no luck so far. please help =/

Edit: wow.. started working just fine for some reason after a few server restarts and after downloading and placing all the files linked to under trancoders from the subwiki : http://sourceforge.net/apps/mediawiki/s ... ranscoders
woxer
 
Posts: 1
Joined: Fri Feb 01, 2013 4:32 am

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby Jimbob0i0 » Sat Feb 02, 2013 6:14 pm

daneren2005 wrote:Call me crazy, but wouldn't doing a full scp of a dvd rip take like a full minute? That would be a long time to wait before starting to watch anything. My reasoning is that scp is doing a disk-to-disk operation, so the speed of the two HDD's in question would be the limiting factor, not your gigabit connection. I can't really see why that would be better then streaming it back and forth, as it would reach the index at the same time either way.


Partially correct on this...

Most of my video content is 20 minutes to an hour (mostly TV shows) which only takes about 10 seconds or so...

I just tested the original Teenage Mutant Ninja Turtles movie as a quick test and this was about 30 seconds to transfer and start streaming... nothing too meaningful in the grand scheme of things.

For content where the index is at the start of the file cat file | ssh 'ffmpeg -' (pseudo code) does indeed work...

Unfortunately I have a reasonable number of files that this will not work for.

I toyed with using a tool (eg qt-fastswap) to check for this situation and fix it on the fly if needed but after playing around with a few options it felt like over-engineering when what I had was 'good enough' for me...

The issue with the transcode for ffmpeg is not when it gets to the index but rather it needs the index first for the transcoding process.

In the event it's at the front the pure stream with no write to disk works... but it can't obviously see the index in the event it's at the end and won't work at all in that event (doesn't buffer the whole movie to RAM or anything like that).

If there were more people than me on this subsonic server I might be more concerned but meh ;)
Jimbob0i0
 
Posts: 5
Joined: Thu Jan 31, 2013 10:52 pm

Re: HOWTO: Change JWPlayer to the HTML5 version

Postby daneren2005 » Sat Feb 02, 2013 6:59 pm

Ah ok I wasn't aware that ffmpeg needed the index to do the transcoding, though that does make sense now that I think about it.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Re: HOWTO: Change JWPlayer to the HTML5 version

Postby chali » Sun Feb 03, 2013 5:13 am

Hi

just want to say thanks for a really good transcoding string.
works gruesomely good.

does anyone know how I can get the window to outomatisk create a pop-up window
since it is not possible to get full screen without it?

to you with google tv  I just want to mention that firefox for android is able to play
from madsonic with html5 only problem is how to get full screen.

/ Chali



daneren2005 wrote:
mta99 wrote:
daneren2005 wrote:Yikes I was going to update my server to a more modern Pentium like that. I thought that it would do much better than my old Pentium D with transcoding but your tests seem to say it isn't that much better. Guess I might need to just wait until I have more like $300 to upgrade to a low end quad core.

Sent from my HTC One X using Tapatalk 2


What OS you using? unRAID is incredibly light weight so almost all the CPU cycles are available for transcoding. However, some of the newer CPU technologies (and fairly old ones like hyper threading) aren't available which was why I went for a Pentium over an i3. Previously I used an Atom and an E-350 APU which could both handle SD no probs but for HD i needed the "horsepower" of the SandyBridge. My usage of transcoding is pretty small, its the GF who uses it the most. She spends a lot of time on the road and watching TV eps on crappy hotel wifi so, as GJ suggested, the bandwidth is by far the limiting factor.

Just out of interest here are my transcoding settings

Code: Select all
ffmpeg -ss %o -i %s -async 1 -map 0:0 -map 0:1 -f webm -vcodec libvpx -b %bk -s %wx%h -acodec libvorbis -ar 44100 -ac 2 -preset superfast -threads 4 -v 0 -


I know threads 4 is nonsense but its placebo for both me and the server. I add the -map to prevent DVD/Blu-Ray rips with multiple audio tracks playing the directors commentary or (god forbid) French! :lol:

Currently using Ubuntu. Really the only thing I ever have going on there is a pretty consistent ~2% usage for deluge. But that's not the OS's fault that I'm using the same server to run torrents off of :D

And those extras aren't really necessary since I remove the extra audio tracks and junk when I do the original rips. Although that being said if I did get a quad core I would probably limit to 2 threads to make sure system resources aren't being completely drained by a single transcode (which is what happens right now for me).

If you are not having trouble with it I might just go for a sandy bridge Pentium and hope for the best. Worst case scenario I guess I won't have wasted that much money since it is only like $60. Most of the up front cost will be the mobo + ram.

Sent from my HTC One X using Tapatalk 2
chali
 
Posts: 57
Joined: Wed May 09, 2012 9:45 pm

PreviousNext

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 0 guests