Originally Posted by atanas
but some times, the site stop working and when i restart apache and mysql server, it's okay again.
Can you elaborate on what "stop working" means?
Check your PHP/Apache error log and FFmpeg log files. But if the unaltered code is working for everyone else, then it's likely an issue with your server.