00:01
I have a website in which I allow users to upload videos. But with the HTML5 tag video, only MP4 videos are allowed
So, I want to convert any type of videos that the users upload to MP4 and then add the path in my database.
I tried something, changing the file extension to MP4 but it didn't work.
I've read something about ffmepg but I can't figure out how to use it.
Here is my PHP script where I change the file extension and then add the path in my data base, please how can I convert the video correctly, what should I add/change?
<?php
(...)