Jump to content

Monitoring


WorldDrknss

Recommended Posts

I am currently working on a video upload and conversion script and this is what I would like to do. Instead of the user upload the file and wait for about 20 or so minutes for the video to encode. I would like to achieve the following:

 

User uploads video file,

File information get inserted into a video query database,

(the following is what I am trying to figure out)

 

Database:

id auto

filename varchar

title varchar

description text

in_progress int,

date timestamp

 

A script that continuously monitors the video query database for new videos and videos that have not been encoded. The video file that is being encoded will have a "1" inserted into the in_progress field. After a video has been encoded it will then be deleted from the video query database and moved into the main video database. Then the script will determine the next highest id, set it in_progress to 1, and begin encoding that file. BTW on a Windows machine.

 

This way a user does not have to wait around and watch the browser loading symbol for 20 minutes or so waiting on their file to convert.

 

Using FFMPEG for video conversions.

Opened for other suggestions

 

TIA

Link to comment
https://forums.phpfreaks.com/topic/78206-monitoring/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.