Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFProbe error and config #82

Closed
jerauf opened this issue Apr 8, 2018 · 2 comments
Closed

FFProbe error and config #82

jerauf opened this issue Apr 8, 2018 · 2 comments

Comments

@jerauf
Copy link

jerauf commented Apr 8, 2018

I'm trying to retrieve a frame of a video. I'm using this code in my controller.

use Pbmedia\LaravelFFMpeg\FFMpegFacade as FFMpeg;
And then to get the frame:

`
$media = FFMpeg::open('http://myvideo.com/video/100');
$frame = $media->getFrameFromString('00:00:13.37');

`

And my error is:

Unable to load FFProbe

I looked through the issues here and the config was mentioned but I'm not sure what the paths mean. Shouldn't they be pointing to the vendor folder?

'ffmpeg.binaries' => '/usr/local/bin/ffmpeg', 'ffprobe.binaries' => '/usr/local/bin/ffprobe',

@pascalbaljet
Copy link
Collaborator

They should point to your ffmpeg binaries. You could try finding them by using the ‘which’ command.

@leen19971
Copy link

I have a similar issue this is my code
$media = FFMpeg::openUrl('http://localhost/videos/myvideo.mp4')

        ->getFrameFromSeconds(3)
        ->export()
        ->toDisk('public')
        ->save("thumbnails/thumb_{$date}_{$time}.png");

the error is
Unable to probe http://localhost/videos/myvideo.mp4

the link is correct the video plays perfectly when i insert http://localhost/videos/myvideo.mp4 in my browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants