从下面的命令:
ffmpeg -i /var/bigbluebutton/published/presentation/f593599f005cc1ed453c0e92c37236063e6144b0-1480310327986/audio/audio.ogg 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//"
输出是:
00:07:10:00
当我把这个命令放在 php 中时
echo shell_exec("ffmpeg -i /var/bigbluebutton/published/presentation/f593599f005cc1ed453c0e92c37236063e6144b0-1480310327986/audio/audio.ogg 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//",$result);
它不提供任何输出。