I am trying to get info from a file with ffmpeg, if inside php I have this code:
exec("ffmpeg -i ffmpeg_directory/4.flv");
Returns nothing, even tough same command inside SSH would print a large list of file info (fps, duration, etc).
But this command converts the file properly, so I am thinking it is no permission problem:
exec("ffmpeg -i ffmpeg_directory/4.flv ffmpeg_directory/4.avi");
It is the same for system() function too.
Any idea why that -i
command would not return anything?