Video uploading and streaming requirements.
1. FFMPEG Server. To convert the media into to flash player streaming format (FLV).
2. SSH support.
3. Video uploading and streaming permissions from the hosting service provider.
4. High value bandwidth and storing space. (Depends on your requirement).
Common Errors while uploading the media file and use of ffmpeg.
1. Unable to see any error and file isn't convert.
Verify the path of ffmpeg executable file. Sometimes we have do define the absolute path of ffmpeg in "exec()" or "system()" function.
Use system function to get the last line of the command line tool. Simply echo the response. echo system();
2. File is converting but the values aren't saving properly in the database.
You can handle this error by using the function sleep(20); It will stop the script for a while and then proceed. Sometimes when you upload large files, it usually take time to for conversion. So sleep() function will help you stop the script execution errors and you can handle the confirmation messages more accurately.
