eyecatchup / php-yt_downloader

PHP Class to download videos from YouTube.
http://eyecatchup.github.com/php-yt_downloader/
293 stars 166 forks source link

Installed ffmpeg but, "You must have Ffmpeg installed in order to use this function." #25

Open Lop-Sided opened 7 years ago

Lop-Sided commented 7 years ago

Hi,

I'm having an issue using "example-audio-2.php" from the examples. I have installed 'ffmpeg' on my Linux/CentOS server.

When I type 'ffmpeg -version' in SSH it returns with the version

Also when I type 'which ffmpeg' it returns with the path "/usr/local/bin/ffmpeg/"

But for some reason I'm getting the error shown in the title when trying to use the example files.

Is there something else I must do? Is this in the correct path?

Thanks

BOXNYC commented 7 years ago

+1

I had to write the full ffmpeg path in the exec which call youtube-dl.class.php@648

private function has_ffmpeg() { $sh = 'which /usr/local/bin/ffmpeg'; return (bool) (strlen(trim($sh)) > 0); }