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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.