Logo Linux Bash SSH Ubuntu Git Menu
 

ffmpeg with php exec disabled?

Tags:

ffmpeg

The Gallery2 script uses SYSTEM() & EXEC() to call FFMPEG

For security reasons both those PHP functions appear to have been disabled on my shared web hosting server.

Is there another method to use for executing FFMPEG?

like image 987
Clear.Cache Avatar asked Apr 10 '26 07:04

Clear.Cache


1 Answers

Can you upload your own CGIs? If so, upload a bash script (named something.cgi) that starts ffmpeg and visit it.

Try making a file called "foo.cgi" with this content:

#!/bin/bash
echo "Content-type: text/plain"
echo ""
ls -Fal

Upload that to your web root, then go to http://yoursite/foo.cgi

like image 145
Bill Weiss Avatar answered Apr 14 '26 00:04

Bill Weiss