Support for HTML5 or multiple transcoding..

Need help? Post your questions here.

Moderator: moderators

Support for HTML5 or multiple transcoding..

Postby radarweaver » Mon Apr 22, 2013 4:41 pm

So here's my problem...

Currently I'm using the default transcoding for jwplayer & flash:
ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset superfast -threads 0 -

Using the above I can stream over IE9 and Chrome no problem.... but it doesn't work on my Android using DSUB app....

So I switch to this transcoding:
ffmpeg -ss %o -t %d -i %s -async 1 -vf lutyuv=y=val*1.3 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f webm -vcodec libvpx -preset superfast -acodec libvorbis -threads 0 -

Well now it works for DSUB beautifully, but I get an error in IE9 and Chrome "access denied or file not found"

Other things you should know:
Windows 7 / Windows version of subsonic 4.8

My goal is to be able to support BOTH sides of this, in a browser (IE9 chrome / both) and as well be able to stream to my Android devices.

Thank you in advance for any help accomplishing this, it's greatly appreciated!

I"m not the sharpest on this topic, but I can follow directions well <grin>
radarweaver
 
Posts: 4
Joined: Mon Apr 22, 2013 4:16 pm

Re: Support for HTML5 or multiple transcoding..

Postby GJ51 » Mon Apr 22, 2013 5:25 pm

Update ffmpeg.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Support for HTML5 or multiple transcoding..

Postby daneren2005 » Mon Apr 22, 2013 6:00 pm

I'm not sure why updating ffmpeg would help. The problem is that the flash players expect it to be in flv format, and all of the external media players on android expect it to be in just about anything else. I could never find a media player on android that could actually play flv (at least not the ones that Subsonic spits out) even though tons of them said that they could.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Support for HTML5 or multiple transcoding..

Postby radarweaver » Mon Apr 22, 2013 6:51 pm

Hence the problem... you are correct with the move to JB on Android no more flash... So has to be HTML5 or MPEG4 or something...

DSUB on Android WILL play it if I use the
ffmpeg -ss %o -t %d -i %s -async 1 -vf lutyuv=y=val*1.3 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f webm -vcodec libvpx -preset superfast -acodec libvorbis -threads 0 -

But then it breaks streaming via a browser....
radarweaver
 
Posts: 4
Joined: Mon Apr 22, 2013 4:16 pm

Re: Support for HTML5 or multiple transcoding..

Postby radarweaver » Mon Apr 22, 2013 11:31 pm

Updated ffmpeg as suggested... same results...
radarweaver
 
Posts: 4
Joined: Mon Apr 22, 2013 4:16 pm

Re: Support for HTML5 or multiple transcoding..

Postby GJ51 » Tue Apr 23, 2013 2:15 am

radarweaver wrote:So here's my problem...

Currently I'm using the default transcoding for jwplayer & flash:
ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset superfast -threads 0 -

Using the above I can stream over IE9 and Chrome no problem.... but it doesn't work on my Android using DSUB app....

So I switch to this transcoding:
ffmpeg -ss %o -t %d -i %s -async 1 -vf lutyuv=y=val*1.3 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f webm -vcodec libvpx -preset superfast -acodec libvorbis -threads 0 -

Well now it works for DSUB beautifully, but I get an error in IE9 and Chrome "access denied or file not found"

Other things you should know:
Windows 7 / Windows version of subsonic 4.8

My goal is to be able to support BOTH sides of this, in a browser (IE9 chrome / both) and as well be able to stream to my Android devices.

Thank you in advance for any help accomplishing this, it's greatly appreciated!

I"m not the sharpest on this topic, but I can follow directions well <grin>



You can define the transcoding that works correctly for each environment separately. First define the correct desktop transcoding and save. Then define the transcoding for your phone, but uncheck "Enable this transcoding for all existing and new players." before you save it. Once that is done, go to the players menu, select the player that your phone uses and just define the correct "Active Transcodings" that work with your phone.

Viola, the best of both worlds!

Admittedly not the best kludge possible. I've requested that desktop and phone transcodings be separated for a long time . The method I've described requires that every time you get a new Android player, you'll have to make sure that the correct transcodings are selected.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Support for HTML5 or multiple transcoding..

Postby radarweaver » Tue Apr 23, 2013 8:06 pm

YOU ARE A GENIUS!!! Worked PERFECTLY I can't thank you enough for this fix.

I do however have one more question.... the default rate is 1000kbps regardless. Is there anyway to "hard code" the bit rate into the ffmpeg transcoding config to set it at 300kbps for video?

Thanks again for all the help, I'm such a happy camper right now!
radarweaver
 
Posts: 4
Joined: Mon Apr 22, 2013 4:16 pm

Re: Re: Support for HTML5 or multiple transcoding..

Postby Drashna » Tue Apr 23, 2013 9:34 pm

radarweaver wrote:YOU ARE A GENIUS!!! Worked PERFECTLY I can't thank you enough for this fix.

I do however have one more question.... the default rate is 1000kbps regardless. Is there anyway to "hard code" the bit rate into the ffmpeg transcoding config to set it at 300kbps for video?

Thanks again for all the help, I'm such a happy camper right now!

Download source and recompile it.... There is a thread about that somewhere.

Sent from my HTC One S
Drashna
 
Posts: 39
Joined: Fri Aug 05, 2011 9:20 pm

Re: Support for HTML5 or multiple transcoding..

Postby GJ51 » Wed Apr 24, 2013 12:17 am

I think you can also do that through the transcoding string. If you read through the ffmpeg docs it should explain how it's done. Essentially, I think - and I do stress that I am doing a bit of supposing here - that I think it may be the %b variable that gets it's value from the default setting and that if you change it to whatever bitrate you want it should work. Again, I may have the wrong variable, but what you need to do is just find which variable gets it's value from the default and/or bitrate selector and just replace it with your own bitrate.

Big stress here - I am guessing that this should work but I have never tried it myself.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Support for HTML5 or multiple transcoding..

Postby monox » Mon Apr 29, 2013 2:27 am

Hello,

I have been following this thread to help get my subsonic 4.8 working on my phone. It seems that flash is working fine for browsers (IE9, IE10, Firefox, Chrome), but when I add the transcoding lines for webm and setup the player I can see in Dsub on my phone (Samsung Note 2) that its showing xxx.avi > xxx.webm, but when it makes the switch over to the webpage it is still trying to pull the player up with flash (asks me to install flash). Have any of you had this problem?

I'm also seeing the error below in chrome if I use the webm player I have setup, Video not found or access denied:/stream?id=662&maxBitRate=1000&timeOffset=0&player=1

Thanks for the help.
monox
 
Posts: 3
Joined: Mon Apr 29, 2013 2:21 am

Re: Support for HTML5 or multiple transcoding..

Postby GJ51 » Mon Apr 29, 2013 3:14 am

Just side load flash onto the phone.

http://www.youtube.com/watch?v=4xA2erlhALA
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Support for HTML5 or multiple transcoding..

Postby monox » Mon Apr 29, 2013 6:48 pm

Thanks for the video. I can install Flash, but I'm just more concerned with why the players aren't working like they are suppose to. I may try a fresh install of subsonic to see if that helps clear it up. I would like to be able to do both webm and flv transcoding so I can make sure I have all my devices covered.
monox
 
Posts: 3
Joined: Mon Apr 29, 2013 2:21 am

Re: Support for HTML5 or multiple transcoding..

Postby DamageCase » Tue Apr 30, 2013 5:10 pm

monox wrote:Thanks for the video. I can install Flash, but I'm just more concerned with why the players aren't working like they are suppose to. I may try a fresh install of subsonic to see if that helps clear it up. I would like to be able to do both webm and flv transcoding so I can make sure I have all my devices covered.



This is the exact issue I am having as well and its driving me up the wall!! It keeps opening the browser, then wanting to play in the flash player. It shows avi>webm but no matter what I change in the player settings, everywhere, it STILL wants to open in the flash player!

Any help would be GREATLY appreciated.
DamageCase
 
Posts: 2
Joined: Tue Apr 30, 2013 5:08 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 6 guests