943,594 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3704
  • PHP RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
May 31st, 2009
0

Re: How to upload and stream videos?

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
Reputation Points: 31
Solved Threads: 10
Practically a Master Poster
OmniX is offline Offline
652 posts
since Dec 2007
May 31st, 2009
0

Re: How to upload and stream videos?

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.
Reputation Points: 31
Solved Threads: 10
Practically a Master Poster
OmniX is offline Offline
652 posts
since Dec 2007
May 31st, 2009
0

Re: How to upload and stream videos?

Click to Expand / Collapse  Quote originally posted by OmniX ...
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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
May 31st, 2009
0

Re: How to upload and stream videos?

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?
Reputation Points: 31
Solved Threads: 10
Practically a Master Poster
OmniX is offline Offline
652 posts
since Dec 2007
May 31st, 2009
0

Re: How to upload and stream videos?

Click to Expand / Collapse  Quote originally posted by OmniX ...
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
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
May 31st, 2009
0

Re: How to upload and stream videos?

Click to Expand / Collapse  Quote originally posted by OmniX ...
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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Jun 1st, 2009
0

Re: How to upload and stream videos?

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
Reputation Points: 31
Solved Threads: 10
Practically a Master Poster
OmniX is offline Offline
652 posts
since Dec 2007
Jun 2nd, 2009
0

Re: How to upload and stream videos?

Click to Expand / Collapse  Quote originally posted by OmniX ...
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.
Reputation Points: 31
Solved Threads: 27
Unverified User
Josh Connerty is offline Offline
342 posts
since Apr 2009
Jun 2nd, 2009
1

Re: How to upload and stream videos?

Click to Expand / Collapse  Quote originally posted by OmniX ...
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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Jun 2nd, 2009
0

Re: How to upload and stream videos?

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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Newbee... SSL works for .html pages but not .php pages
Next Thread in PHP Forum Timeline: zipcodes packages





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC