Hello guys i am tring to convert videos using FFmpeg...
I moved ffmpeg.exe in same folder with upload.php
I tryed this codes in upload.php:
$randname = (rand(0,1000)); $file_data=date("d-m-Y-H-i-s"); $file_name=$file_data.$randname; move_uploaded_file($file_tmp,"vidconvert/".$file_name); exec (ffmpeg -i vidconvert/.$file_name videos/.$file_name.mp4); echo "Success";
I want to get the file in vidconvert folder, and copy converted video to videos folder
Note: when i check the vidconfert folder, the file is uploaded succesfully