PHP-FFMpeg: Unable to load FFProbe only on Linux

Actual Behavior

Hi! It’s me again. I wanted to get the duration of a video and I made it on Windows by doing this: $probe = FFProbe::create(); $data['duration'] = floor($probe->format($data['path'])->get('duration')); But when I put my project on Linux server, there is a bug: Unable to load FFProbe. I have installed FFMpeg on my server, you can see: [root@weibo-server web]# ffprobe -version ffprobe version 3.3 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 4.8.2 (GCC) Then I try this: $probe = FFProbe::create([ 'ffmpeg.binaries' => '/opt/ffmpeg-3.3/bin/ffmpeg', 'ffprobe.binaries' => '/opt/ffmpeg-3.3/bin/ffprobe', ]); It still not work. So I want to find a way to solve this problem. Thank you!

Expected Behavior

What is the behavior you expect?

Steps to Reproduce

What are the steps to reproduce this bug? Please add code examples, screenshots or links to GitHub repositories that reproduce the problem.

Possible Solutions

If you have already ideas how to solve the issue, add them here. Otherwise remove this section.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

@Scarlicity Thank you! It has been solved