0

I'm try to get the tag info from media file use ffmpeg. It work fine on system user xiaoai.

// it should output the info, but nothing
exec("/usr/bin/ffmpeg -i /home/xiaoai/music/Roar.mp3", $say, $code);
var_dump($code); // code is 1, I know it's a error: Catchall for general errors.

So I think about permission, my script run as nobody. I give the mp3 file 777 permission, /usr/bin/ffmpeg 777, and user change to nobody. but still not work.

I must use this ffmpeg, this is only way for aac as i know, mp3, m4a, ogg. Please tell me how to do or other way.

joaner
  • 706
  • 1
  • 5
  • 17
  • Are you allowed to execute server side scripts? check your domain space setting. – karmafunk Oct 09 '13 at 09:46
  • Thank you. I find the useful post in http://stackoverflow.com/questions/1110655/capture-ffmpeg-output-in-php , it work – joaner Oct 09 '13 at 10:15

0 Answers0