Posts: 730
Name: John
Location: United States of America, California
|
Hi I want a script that uploads a file, runs ffmpeg, and then writes the info to mysql I have tried this I am a bit confused with the code I do not use php-ffmpeg because I just run it from the command line. Could some body show me how to do this with code not as specifics but maybe I just can't grasp this concept but I sure have been trying.
I don't under because I need it to
Upload the file If It can't upload or the file type based on extension not mime type is not correct or the upload has just failed
cancel the entire script and say upload failed.
Or if it was successful
Continue by:
convert the file from command line with ffmpeg if it fails then cancel the entire script and say error and send me a message in an email
or if it was successful
continue by:
writing details to mysql such as title etc from the webpage form if it fails with mysql it will try again with mysql, then if it it succeeds
say "video upload successful
or if it failed send error message to me and tell the user: the database is currently down.
|