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.