Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd March 2010, 19:12
pd_voodoo pd_voodoo is offline
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default PseudoStreaming with FlowPlayer, ffmpeg and Lighttpd

Hi guys,

I am finding trouble getting pseudostreaming to work with Lighttpd, Flowplayer on ubuntu 9.10
I followed instructions as it is from :

http://www.howtoforge.com/video_stre..._flowplayer_p3


When I tried loading the sample implementation, nothing shows up ! I have installed Lighttpd over an different port (as Apache already installed) and the root-directory being different than /var/www/ as /var/www/sample/

Can someone help me out?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 3rd March 2010, 14:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

Any errors in the lighttpd logs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd March 2010, 17:02
pd_voodoo pd_voodoo is offline
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Lighttpd + pseudo streaming ...

Hi,

Thanks for replying.. Below is the error log and attached is the access.log file.
Also, PHP is working fine on Lighttpd but the flv along with flow player isn't.
I have also attached conf file and the php script I'm using.


error.log

2010-02-28 07:50:32: (server.c.1355) [note] graceful shutdown started
2010-02-28 07:50:32: (server.c.1469) server stopped by UID = 0 PID = 24753
2010-02-28 07:50:33: (log.c.97) server started
2010-03-01 13:44:25: (server.c.1469) server stopped by UID = 0 PID = 27585
2010-03-01 13:44:25: (log.c.97) server started
2010-03-01 14:30:43: (server.c.1469) server stopped by UID = 0 PID = 27992
2010-03-01 14:30:44: (log.c.97) server started
2010-03-02 11:55:35: (server.c.1469) server stopped by UID = 0 PID = 29841
2010-03-02 11:55:36: (log.c.97) server started



Thanks again.
Attached Files
File Type: txt access.txt (34.2 KB, 187 views)
File Type: txt lighttpd.conf.txt (5.1 KB, 207 views)
File Type: txt flowplayertest.php.txt (964 Bytes, 223 views)
Reply With Quote
  #4  
Old 4th March 2010, 18:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

I guess you're using a newer version of FlowPlayer. Please take a look at this tutorial: http://www.howtoforge.com/build-your...r-debian-lenny
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 4th March 2010, 21:02
pd_voodoo pd_voodoo is offline
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

#Falko: Thanks..I have it up and running now via Lighttpd.. though, its not streaming.. do I need to add certain flowplayer plugin along with the player .js to make it work ? or do something else..

If have already injected metadata using flvtool2 as :

$ flvtool2 -U video.flv

Thanks for you help. I appreciate it.
Reply With Quote
  #6  
Old 5th March 2010, 14:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

I got it working without any FlowPlayer plugins. Are the paths in your PHP file correct?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 5th March 2010, 20:13
pd_voodoo pd_voodoo is offline
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default Streaming :(

Hi,

The php and config file are just like the ones you described in the tutorial. Only new thing I had to do was changing converted videos permissions to allow flvtool2 to work on it.

The video loads up fine via lighttpd (running on port 8080 for now), but with no seeking/streaming. I assumed that the metadata didn't get injected well, but it is there. I have attached the injected meta in the flv file using -P option of flvtool2.

Could you guess what might be happening ?

Thanks.
Attached Images
 
Attached Files
File Type: txt koi_flvtool2.txt (13.7 KB, 153 views)
Reply With Quote
  #8  
Old 6th March 2010, 12:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

Did you get any errors when you converted the video to flv with ffmpeg?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 8th March 2010, 17:55
pd_voodoo pd_voodoo is offline
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

No errors as such.. Still, I have attached the media conversion and metadata injection using flvtool2 logs for you to take a look. Thanks again for you help.
Attached Files
File Type: txt ffmpeg log.txt (1.9 KB, 152 views)
File Type: txt flvtool2 log.txt (13.7 KB, 152 views)
Reply With Quote
  #10  
Old 9th March 2010, 15:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
 
Default

You're using the ffmpeg package from the Ubuntu repositories, but unfortunately it has no libmp3lame support. Please install the ffmpeg package from www.debian-multimedia.org (works on Ubuntu as well).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
flowplayer, lighttpd, streaming

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.