Reputation: 145047
I'm looking to setup video uploads for users on a site and want to have them viewed through a Flash player. The site is already partially built (by someone else) and I'm wondering what kind of technologies there are to deal with the video files, specifically in PHP.
I'm thinking the files need to be converted to an FLV. After that I think it's just loading the FLV, like an SWF in Flash.
They also want to do mp3's with Flash streaming, so it'd be cool if it could also support mp3's.
Upvotes: 3
Views: 3487
Reputation: 18408
There is this highly underrated post with 3 great links for open source solutions that are like youtube and fits perfectly your question (and at least another one).
Upvotes: 1
Reputation: 145047
I actually found that using other services to encode the file is the easiest option and also the fastest to setup. I ended up using Hey!Watch for this project. I haven't worried about a streaming server/service yet because for the most part the videos are short and people won't be skipping around within the video.
Upvotes: 1
Reputation: 63139
Upvotes: 0
Reputation: 1382
Just FYI: If you have HQ videos you need not to encode them into FLV. Flash Player 10 has builtin H264 support, this is what HQ does in popular video sites.
Upvotes: 0
Reputation: 31
Have you tried SWFObject for displaying FLVs? Used this recently in a project and it works a like a charm. Very easy to configure as well.
Upvotes: 3
Reputation: 827536
In adition to Daniels answer, I recommend you to check ffmpeg-php, is a wrapper library for PHP that adds an object-oriented API for accessing and retrieving information from video and audio files using ffmpeg.
You can do a lot of things, from converting between formats, get video frame images for thumbnails and more in an easy way...
Upvotes: 7