Streaming Video in JWPlayer with Subsonic 3.8 (with FFMpeg)

Tutorials, tips and tricks.

Moderator: moderators

How useful was this Tutorial:

Mohican is God!
13
57%
Mohican is Satan!
3
13%
I don't believe in either...
7
30%
 
Total votes : 23

Postby privatesam » Fri Feb 26, 2010 10:18 am

First of all many thanks to Mohican and onewalrus for their contributions on this thread - this got me up and running with video on my subsonic server excellently. Thank you.

My query might actually require a thread of its own because its mainly about javascript but it relates to video. I'm a bit frustrated by the limitation of only being able to watch the videos in the flash player by going to fullscreen meaning I can't carry on browsing. Using an external player hasn't worked for me here at work as I suspect there's various security issues. So I looked into resizzing the player but that always leads to playlist problems and too much screen real estate being taken up by the player when in music mode.

Therefore I've been looking for a way to incorporate the Javascript API calls to make JWPlayer popout into a seperate window or have a choice of player sizes the user can choose from. Browsing the JWPlayer site I found this example page: http://developer.longtailvideo.com/contributors/nyboe/JW_API_xmpl_7-3-0-0.html and this example page: http://developer.longtailvideo.com/contributors/nyboe/JW_API_xmpl_2-1-2-0.html

Ideally I'd like to incorporate both these pages code so there's a couple fo buttons next to the playlist - one for popping the player out to seperate window and then maybe 3 toggle switches for 3 different sizes (like in the example above). I have tried to read up on how to incorporate this code and if you page source those examples you can see how some of the calls are phrased but I don't know what exact code to insert and where to get these options to work with my subsonic.

Any ideas muchly appreciated and if this post does warrant a new thread moderators please move or let me know and I'll do it.

Thanks in advance for any help!!!!!
privatesam
 
Posts: 19
Joined: Fri Feb 26, 2010 10:09 am

Postby privatesam » Fri Feb 26, 2010 11:32 am

Badly rendered version of what I want to achieve. http://picasaweb.google.com/lh/photo/UG-MGKL7PYzXe4xJ_uIa4w?authkey=Gv1sRgCI-ruqXzl4PM2gE&feat=directlink

(made with paint in 3.5mins flat - don't judge me)
privatesam
 
Posts: 19
Joined: Fri Feb 26, 2010 10:09 am

Tutorial

Postby cptnrsk » Tue Mar 02, 2010 2:10 am

Hello,

I managed to muck through the process and got everything updated and running on v 3.9 but for some reason when you full screen the video (which runs perfect) you are not able to advance in the film and the progess bar shows no changes, plus on both sides of the player for length and time running it shows 00:00 00:00

Any thoughts on how to fix this?

Thanks,
Rsk
cptnrsk
 
Posts: 6
Joined: Tue Mar 02, 2010 2:07 am

Postby privatesam » Tue Mar 02, 2010 9:57 am

This has been covered in other threads and I think earlier in this thread. Check Onewalrus posts - he found a way of doing it with ane external player. There's no elegant way to do it at the moment.
privatesam
 
Posts: 19
Joined: Fri Feb 26, 2010 10:09 am

Tutorial

Postby cptnrsk » Tue Mar 02, 2010 5:27 pm

privatesam wrote:This has been covered in other threads and I think earlier in this thread. Check Onewalrus posts - he found a way of doing it with ane external player. There's no elegant way to do it at the moment.


I looked through all the post again. There is no reference or solution offered for this type of problem, that I can find.
cptnrsk
 
Posts: 6
Joined: Tue Mar 02, 2010 2:07 am

Postby privatesam » Tue Mar 02, 2010 5:35 pm

you're kidding right? page two ofthis topic. onewalrus. you can do it.
privatesam
 
Posts: 19
Joined: Fri Feb 26, 2010 10:09 am

Tutorial

Postby cptnrsk » Thu Mar 04, 2010 5:04 pm

privatesam wrote:you're kidding right? page two ofthis topic. onewalrus. you can do it.


If you say its there I believe you. I just havnt come across anything that remotely sounds like my issue.

If you are referring to seeking, then yes I found it. Just didnt think it applied since it didnt reference in the post any of the issues I have.

Thanks
cptnrsk
 
Posts: 6
Joined: Tue Mar 02, 2010 2:07 am

Postby sindre_mehus » Fri Mar 19, 2010 6:36 am

Hi,

Has anyone been able to transcode videos to MPEG4/H.264 and stream it (and play it) on the fly?
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby burjast » Fri Mar 19, 2010 9:19 am

I was able to transcode x264 content with external player and ffmpeg on the fly, but didn't try with flash player yet. But my server cpu load is 100% and is not capable to transcode on the fly, i guess you need at least 2,4ghz+ cpu to achieve that
burjast
 
Posts: 71
Joined: Mon Jul 20, 2009 9:00 am
Location: Slovenia

help please

Postby richard » Fri Apr 02, 2010 4:50 am

Hello,

I've followed Mohican and onewalrus' instructions fairly carefully but I'm having two issues and was hoping someone could please help.

1. My player on the web interface has disappeared. It's just not there anymore. I updated to Flash 10.0.45.2, Jw-player to viral, and got the latest release of the SWF objects, copied everybody to their correct locations, edited the playlist.jsp file to allow for the correct versions, and then my player disappeared. Does anyone know how to fix that?

2. None of my actual video files show up in my list. I have things listed in a file structure Showname/Season1/so1eo1.avi. In my artist list, it will list Showname, when I click on it, it will show me the season list, but after that, it says the directory is empty.

Thanks for any help anyone can give.

UPDATE:

I got the player to show back up again, it seems I hadn't copied all of the files from the new version of the jw-player. I'm still unable to get any video files to display in the list, so if anyone could help with that, it would be greatly appreciated.
richard
 
Posts: 1
Joined: Fri Apr 02, 2010 3:59 am

Re: Tutorial

Postby onewalrus » Mon Apr 05, 2010 1:24 am

cptnrsk wrote:Hello,

I managed to muck through the process and got everything updated and running on v 3.9 but for some reason when you full screen the video (which runs perfect) you are not able to advance in the film and the progess bar shows no changes, plus on both sides of the player for length and time running it shows 00:00 00:00

Any thoughts on how to fix this?

Thanks,
Rsk


The only semi-solution that I was able to find is referenced at the link below. There is no way for the player to show progress or time/length without keyframes, which can only be done (in subsonic, to the best of my knowledge) by using ffmpeg and flvtool together. Honestly, it's just not worth the time/trouble for me to pursue it any further. Maybe the link will give you some direction.

Using ffmpeg and flvtool++ to produce FLV video
Pablo
User avatar
onewalrus
 
Posts: 22
Joined: Tue Feb 26, 2008 3:46 am
Location: Colorado Springs, Colorado USA

Postby drifter » Thu Apr 15, 2010 7:17 pm

Thanks Mohican . :D

I followed the process on my linux install and now I can play flv files, something which I was looking for. I need to see if other formats works too.

But there is a small issue I noticed. The "Now Playing" and "Chat Messages" section o the right side got disappeared.


Update:

onewalrus, I followed your update procedure and now the player got disappeared and instead it shows "Get Flash player". :cry: need your help on this,Thanks
drifter
 
Posts: 17
Joined: Tue Apr 13, 2010 6:56 pm

Postby drifter » Fri Apr 16, 2010 8:34 pm

Look like I found the problem...atleast for my install...

After stopping tomcat I deleted subsonic folder under /var/lib/tomcat5.5/webapps/ and I restarted tomcat and this recreated the folder under /var/lib/tomcat5.5/webapps/. First I changed the Flash version in playlist.jsp and from then on I got the player back. After this I followed the steps of mohican and got the flv files getting played. Fortunately all other setting were intact.

but after adding
Code: Select all
stretching:"none"
in playlist.jsp the player got disappeared and the message "Get Flash Player" appeared again. I removed this line and got the player back.

Now I am going to update Swfobject and Jwplayer. Hope it won't complain again.
drifter
 
Posts: 17
Joined: Tue Apr 13, 2010 6:56 pm

Postby poopa » Sat Apr 24, 2010 9:22 pm

Hi,
I followed the tutorial and this is what I get when I try to play a video in the browser:

HTTP ERROR: 404

NOT_FOUND

RequestURI=/videoPlayer.view

Powered by Jetty://

Any ideas?
poopa
 
Posts: 2
Joined: Sat Apr 24, 2010 9:21 pm

Postby onewalrus » Sat Apr 24, 2010 9:26 pm

poopa wrote:Hi,
I followed the tutorial and this is what I get when I try to play a video in the browser:

HTTP ERROR: 404

NOT_FOUND

RequestURI=/videoPlayer.view

Powered by Jetty://

Any ideas?


It's impossible to even begin without any specific information on your setup. As many details as you can think of will help in your being helped.
Pablo
User avatar
onewalrus
 
Posts: 22
Joined: Tue Feb 26, 2008 3:46 am
Location: Colorado Springs, Colorado USA

PreviousNext

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 13 guests