【发布时间】:2017-08-13 09:07:08
【问题描述】:
我按照github中的命令,找到了很多参考,但是它返回一个大对象,并且无法访问持续时间
这是我的代码
$ffprobe = \FFMpeg\FFProbe::create();
$ffprobe
->format($file) // extracts file informations
->get('duration'); // returns the duration property
dd($ffprobe);
如果我使用 Echo 或 Return 会报错
Object of class FFMpeg\FFProbe could not be converted to string
【问题讨论】:
标签: laravel video ffmpeg duration