How to upload and stream videos?

Reply

Join Date: Dec 2007
Posts: 612
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: How to upload and stream videos?

 
0
  #11
May 31st, 2009
Great Information digital-ether, Thankyou!!!

I have read your post and had a brief look at your links.
So with the links you have given me it looks like I will be able to:
- Upload a file (PHP).
- Convert it (FFMPEG).
- Store it on the server (HTTP).
- Then play it (HTTP).

Few things I noticed are:
- Should I convert then upload? or upload then convert?
- FFMPEG can be installed onto my server's site, if I have access to the root? meaning www folder?
- Get the idea of the streaming and requests just gotta check that out in more detail for more information and ill get back to ya.

Thanks for the useful and informative information!!

Regards, X
"You never stop learning." - OmniX
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 612
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: How to upload and stream videos?

 
0
  #12
May 31st, 2009
Reading the sites now in detail, to start anything I think I need to know how to :
- How do I install FFMPEG onto my localhost? I have a basic apache, php, mysql setup
Last edited by OmniX; May 31st, 2009 at 8:08 am.
"You never stop learning." - OmniX
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,082
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: How to upload and stream videos?

 
0
  #13
May 31st, 2009
Originally Posted by OmniX View Post
Great Information digital-ether, Thankyou!!!

I have read your post and had a brief look at your links.
So with the links you have given me it looks like I will be able to:
- Upload a file (PHP).
- Convert it (FFMPEG).
- Store it on the server (HTTP).
- Then play it (HTTP).

Few things I noticed are:
- Should I convert then upload? or upload then convert?
- FFMPEG can be installed onto my server's site, if I have access to the root? meaning www folder?
- Get the idea of the streaming and requests just gotta check that out in more detail for more information and ill get back to ya.

Thanks for the useful and informative information!!

Regards, X
- Should I convert then upload? or upload then convert?

It depends on whether you want the process automated, or want to do it yourself. If you can install FFMPEG and FLVTool2 on your server and write the PHP code to do the automated conversions, then you might as well do it and save the manual conversions.

- FFMPEG can be installed onto my server's site, if I have access to the root? meaning www folder?

Root access means that you can log into the system as the root user, and/or gain root privileges in order to install programs and do other tasks.

This is usually given when you have a dedicated server, or a VPS server.

With shared servers, you do not have root access, however, you can ask your host to install the needed programs for you.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 612
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: How to upload and stream videos?

 
0
  #14
May 31st, 2009
It depends on whether you want the process automated, or want to do it yourself. If you can install FFMPEG and FLVTool2 on your server and write the PHP code to do the automated conversions, then you might as well do it and save the manual conversions.

So how do I install FFMPEG and FLVTool2 onto my localhost and my server?
"You never stop learning." - OmniX
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,082
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: How to upload and stream videos?

 
0
  #15
May 31st, 2009
Originally Posted by OmniX View Post
Reading the sites now in details:
Questions:
- How do I install FFMPEG onto my localhost?
- I have a basic apache, php, mysql setup
If you localhost running windows?

If so download a windows binary:

eg: http://ffmpeg.arrozcru.org/builds/

Then put that into your system path (if you want).

Here is the docs on using ffmpeg command:

http://ffmpeg.org/ffmpeg-doc.html
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,082
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: How to upload and stream videos?

 
0
  #16
May 31st, 2009
Originally Posted by OmniX View Post
It depends on whether you want the process automated, or want to do it yourself. If you can install FFMPEG and FLVTool2 on your server and write the PHP code to do the automated conversions, then you might as well do it and save the manual conversions.

So how do I install FFMPEG and FLVTool2 onto my localhost and my server?
What are you running on your web server? You can either build FFMPEG or install it using the package manager for your particular linux distribution.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 612
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: How to upload and stream videos?

 
0
  #17
Jun 1st, 2009
Im pretty sure my hosting is LINUX but I run WINDOWS. But I use windows to access both not linux. So I think I would need to know how to install it on windows first and then contact me web host about installing it on the server? or if i just need to install it on the root I can do that myself as I have access. But that still leaves how to install on windows as it only has linux instructions.

Thanks
"You never stop learning." - OmniX
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 340
Reputation: Josh Connerty is an unknown quantity at this point 
Solved Threads: 26
Josh Connerty's Avatar
Josh Connerty Josh Connerty is offline Offline
Posting Whiz

Re: How to upload and stream videos?

 
0
  #18
Jun 2nd, 2009
Originally Posted by OmniX View Post
Im pretty sure my hosting is LINUX but I run WINDOWS. But I use windows to access both not linux. So I think I would need to know how to install it on windows first and then contact me web host about installing it on the server? or if i just need to install it on the root I can do that myself as I have access. But that still leaves how to install on windows as it only has linux instructions.

Thanks
I presumme you are on a shared server?

As far as I know there isn't a shared server host that supports FFMPEG.

It causes allot of strain on the servers so they tend not to allow it.

If the server doesn't already have FFMPEG installed then you will need Shell Root Access, this is like command prompt for winodws.

I would advise you (if you are serious about this) to falk out some extra money on either a dedicated server or a VPS server.

You should be able to install FFMPEG on either but I would presume you would need a heafty VPS server to handle FFMPEG as allot only allow you 500MB burstable RAM.

Have you thought of building a quad core system and paying a local computer store to give it unsupported hosting (means you have to do everything yourself, it's your computer). Although you would have to falk out £640 for a copy of windows server 2003 (the cheapest) because I doubt you would be able to run a server using SSH.
Posts should be like mini-skirts, long enough to cover enough, but not too long that you cover too much.

My Liveperson: http://liveperson.com/josh-connerty/
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,082
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: How to upload and stream videos?

 
1
  #19
Jun 2nd, 2009
Originally Posted by OmniX View Post
Im pretty sure my hosting is LINUX but I run WINDOWS. But I use windows to access both not linux. So I think I would need to know how to install it on windows first and then contact me web host about installing it on the server? or if i just need to install it on the root I can do that myself as I have access. But that still leaves how to install on windows as it only has linux instructions.

Thanks
On windows you just have to download one of the windows binaries. Here is the link again to an unofficial windows builds:

http://ffmpeg.arrozcru.org/builds/

For example, the latest build they have right now is:

http://ffmpeg.arrozcru.org/builds/bi...latest.tar.bz2

Download that. Then uncompress it on your computer. This will give you an .exe file. Basicaly you're done.

To use it, you just need to open the command prompt:
Start -> All programs -> accessories -> command prompt

In the command prompt type in the full path to the ffmpeg.exe file you extracted.

eg: c:\downloads\ffmpeg.exe

This should give you some info on ffmpeg if you did it right.

For convenience, you want to put the path to that exec file in your windows system path. This is a list of folders that windows will look for commands.

Just search "edit windows system path" and you should have lots of tutorials on how to do that.

Once in the path, you can call ffmpeg in the command line by its name, and not its path.

On my windows system I copied ffmpeg.exe to c:\mybin\ffmpeg.exe for convenience. I have c:\mybin\ in the system path, so what ever *.exe I put in there becomes a command automatically.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,082
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: How to upload and stream videos?

 
0
  #20
Jun 2nd, 2009
Originally Posted by Josh Connerty View Post
I presumme you are on a shared server?

As far as I know there isn't a shared server host that supports FFMPEG.

It causes allot of strain on the servers so they tend not to allow it.

If the server doesn't already have FFMPEG installed then you will need Shell Root Access, this is like command prompt for winodws.

I would advise you (if you are serious about this) to falk out some extra money on either a dedicated server or a VPS server.

You should be able to install FFMPEG on either but I would presume you would need a heafty VPS server to handle FFMPEG as allot only allow you 500MB burstable RAM.

Have you thought of building a quad core system and paying a local computer store to give it unsupported hosting (means you have to do everything yourself, it's your computer). Although you would have to falk out £640 for a copy of windows server 2003 (the cheapest) because I doubt you would be able to run a server using SSH.
Shared hosting dreamhost.com has FFMPEG and flvtools2 on the machine I'm on. I haven't used it much, but it worked when I tested it just now. Transcoding a 400MB wmv to FLV with FFMPEG took about 10 minutes. I have no idea if thats considered fast or slow.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC