0
我按照命令,在github上找到的参考了很多,但它返回一个大对象,而不能访问期间无法取得持续时间的FFmpeg laravel
这里是我的代码
$ffprobe = \FFMpeg\FFProbe::create();
$ffprobe
->format($file) // extracts file informations
->get('duration'); // returns the duration property
dd($ffprobe);
如果我使用回声或返回它会给我错误
Object of class FFMpeg\FFProbe could not be converted to string
它的工作原理!该文件令我感到困惑 – chengwei