Friday, July 31, 2009

Video streaming with php - Uploading process tips.

Most of the websites need the video streaming feature. Today I will share some tips and ideas to handle video uploading process.

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.

No comments:

Post a Comment

All rights are reserved. Nobleatom.com
Software Development Services.
Contact me: khubabmazhar596@hotmail.com

Web Design Increase Page Rank Internet blogs DigNow.net web directory1Abc DirectorySeo friendly web directory