I want to convert and show video that user uploaded. I have dedicated server and i use php for programming. Where should i start ? Thank You
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is probably the way I would do it :
Here’s a couple of other notes :
Your “processing script” would have to be launch every couple of minutes ; you can use cron for that, if you are on a Linux-like machine.
Of course, you could also call ffmpeg directly from the PHP page to which the file is uploaded to… But, considering this might require quite some CPU time, it might not always be a suitable solution…
… Even if a bit easier, and will allows users to get their converted video quickier (they won’t have to wait until the cron job has been executed)
(disclaimer : this answer is adapted from another one I made there)