Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.Hi Everyone, I've spent a couple days on this trying to figure it out. Let me go over my issue.
I'm running Apache and MySQL on my Mac (NOT via MAMP).
I'm on Snow Leopard 10.6.8 and all of my packages are managed via HomeBrew.
My $PATH is correctly pointing to my /usr/local/bin as well as various other locations on the system.
I installed ffmpeg via homebrew and everything seems to be working fine.
When I execute which ffmpeg via the terminal I receive /usr/local/bin/ffmpeg
When I execute ffmpeg -v it runs
The problem is when I put /usr/local/bin/ffmpeg into the transcoder section of the video module, it is not found. I tried clearing the cache but I received the same result.
The permissions on my /usr/local are 775 and owned by "whoami":staff
Is it a permissions issue? Why won't drupal see that I have ffmpeg installed?










Comments
Comment #1
Jorrit CreditAttribution: Jorrit commentedWhat is your output of
ffmpeg -version? What is the exact error message you are receiving from Drupal?Comment #2
dgautsch CreditAttribution: dgautsch commentedffmpeg -versionoutput:The error I receive from drupal is:
It repeats the error twice curiously.
Comment #6
Jorrit CreditAttribution: Jorrit commentedMy guess is that the "10" part in the version string is unexpected. I am going to investigate this. If it is possible for you to install an earlier version, you can try that. I'm interested to hear if it works. I will also look into the duplicated message.
Comment #7
arisaves CreditAttribution: arisaves commentedI can confirm that I am experiencing the same issue with version .0.10. I am not thrilled by the idea of downgrading -- I had read in another thread that this module plays nicely with 6. Any specific build?
Comment #8
arisaves CreditAttribution: arisaves commentedI've downgraded to 0.6.5, flushed caches, and am still experiencing an issue. Also experiencing problems when assigning the path. Any suggestions will be graciously accepted and applied.
Comment #9
dgautsch CreditAttribution: dgautsch commentedThe most recent version of FFMPEG released on 3/17 is FFmpeg 0.10.2 "Freedom"
Is this in an incompatibility with the way the video module checks for FFMPEG? Maybe it sees a version mismatch from what it expects and thinks the install isn't there.
Comment #10
Jorrit CreditAttribution: Jorrit commentedI think I have fixed the problem in the latest 7.x-2.x-dev version. You can download this version tomorrow. Could you let me know if it works now?
Comment #11
dgautsch CreditAttribution: dgautsch commentedJorrit, thanks for your help. I can test it tonight if that helps. I'm also curious what the solution was.
Comment #12
Jorrit CreditAttribution: Jorrit commentedThere was some caching that prevented the code from detecting the new path. I am not entirely sure if it fixes your problem, but it caused problems for me when I wanted to use /usr/bin/local/ffmpeg instead of /usr/bin/ffmpeg.
The -dev release is rebuilt every day, so that's why you need to wait. You can also make a git checkout of the source code to have the latest version right now. Look at http://drupal.org/project/video/git-instructions for more information.
Comment #13
arisaves CreditAttribution: arisaves commentedHi, Jorrit. I can confirm that the issue is resolved in 7.x-2.5+3-dev, while using FFMPEG 0.6.5 -- thank you so much for your hard work. I am going to see if it will work with a more recent version as well.
Comment #14
Jorrit CreditAttribution: Jorrit commentedThanks for checking.
dgautsch: can you check as well?
Comment #15
arisaves CreditAttribution: arisaves commentedConfirming that the new dev version works with FFMPEG version 0.10.2 -- beautiful!
Comment #17
dgautsch CreditAttribution: dgautsch commentedHi Jorrit. I'm sorry it took so long to respond. I just installed the module and I'm still having an issue...
I deleted the old module. Removed it from my svn repository.
Downloaded dev version 7.x-2.5+3-dev and then installed it.
Cleared the caches and then tried to direct the module to /usr/local/bin/ffmpeg
I double checked my ffmpeg install
Is there something in my environment that would prevent it from seeing the binaries?
UPDATE: i created a symbolic link in my sites/all/libraries folder to ffmpeg at /usr/local/Cellar/ffmpeg/0.10.2/bin/ffmpeg and the module still won't recognize the path after setting sites/all/libraries/ffmpeg as the link to my ffmpeg files.
UPDATE 2: The double error I was getting previously has gone away.
Comment #18
Jorrit CreditAttribution: Jorrit commentedThe version of the current -dev release should be 7.x-2.5+5-dev.
If you link /usr/bin/ffmpeg to /usr/local/bin/ffmpeg, does it work?
Is /usr/local/bin/ffmpeg a link to /usr/local/Cellar/ffmpeg/0.10.2/bin/ffmpeg?
What happens if you enter /usr/local/Cellar/ffmpeg/0.10.2/bin/ffmpeg in the settings screen?
Could you install the Devel module, go to /devel/php and return the output of the following code?
Comment #19
dgautsch CreditAttribution: dgautsch commentedHi Jorrit
Here's the var dump of the above code. Seems there's something wrong with my installation.
array(10) { ["reading_from_cache"]=> bool(false) ["ffmpeg-found"]=> bool(true) ["compiler"]=> array(0) { } ["binary"]=> array(1) { ["versions"]=> bool(false) } ["ffmpeg-php-support"]=> bool(false) ["raw"]=> string(1087) "dyld: Library not loaded: /usr/local/lib/libx264.120.dylib Referenced from: /usr/local/bin/ffmpeg Reason: no suitable image found. Did find: /usr/local/lib/libx264.120.dylib: stat() failed with errno=13 /usr/local/lib/libx264.120.dylib: stat() failed with errno=13 dyld: Library not loaded: /usr/local/lib/libx264.120.dylib Referenced from: /usr/local/bin/ffmpeg Reason: no suitable image found. Did find: /usr/local/lib/libx264.120.dylib: stat() failed with errno=13 /usr/local/lib/libx264.120.dylib: stat() failed with errno=13 dyld: Library not loaded: /usr/local/lib/libx264.120.dylib Referenced from: /usr/local/bin/ffmpeg Reason: no suitable image found. Did find: /usr/local/lib/libx264.120.dylib: stat() failed with errno=13 /usr/local/lib/libx264.120.dylib: stat() failed with errno=13 dyld: Library not loaded: /usr/local/lib/libx264.120.dylib Referenced from: /usr/local/bin/ffmpeg Reason: no suitable image found. Did find: /usr/local/lib/libx264.120.dylib: stat() failed with errno=13 /usr/local/lib/libx264.120.dylib: stat() failed with errno=13" ["formats"]=> array(0) { } ["codecs"]=> array(3) { ["video"]=> array(0) { } ["audio"]=> array(0) { } ["subtitle"]=> array(0) { } } ["filters"]=> array(0) { } ["protocols"]=> array(0) { } }EDIT: the above suggestions you mentioned didn't work. /usr/local/bin/ffmpeg is a symlink to the cellar folder. which is where homebrew puts everything.
EDIT 2: I think my xcode is out of date going to upgrade to 3.2.6
Comment #20
Jorrit CreditAttribution: Jorrit commentedI am going to improve the error message. I want to show this raw output in some way.
Comment #21
dgautsch CreditAttribution: dgautsch commentedJorrit. I fixed my file permissions and everything is working out great. If anyone else somehow messed up their homebrew install like i did. Here's a way to fix it https://github.com/mxcl/homebrew/issues/11785
Thanks again everyone.
Comment #22
Jorrit CreditAttribution: Jorrit commentedThanks for letting me know that it is fixed. I have opened #1542182: Provide more detailed information when FFmpeg can't be found to make sure that debugging problems like these is easier in the future.
Comment #24
crasher CreditAttribution: crasher commentedHi there,
I have installed simple ffmpeg drupal module into drupal core 7.14, whilst trying to configure the simple ffmpeg engine i get an error message 'FFMPEG COMMAND OUTPUT - The system cannot find the path specified'. The path (/usr/bin/ffmpeg) i have specified as per video tutorial http://janezurevc.name/screencast-derivatives-api-intro-gsoc-2011.
I must be missing something, i read over that everyone has installed FFMPEG version, where does this get installed - will this be within the sites folder on the webserver or is this seperate/ I will be using a hosting company to host the site so not sure if i can easily install third party software outside the hosting package. If it sits within the sites directory, can someone advise what the url and package to download is please..
Any help on this is appreciated..
Comment #25
Jorrit CreditAttribution: Jorrit commentedWhy are you reusing a closed issue? What you are mentioning is not related to this issue.
/usr/bin/ffmpeg is probably not the path to ffmpeg on your system, although it is the path where it is most commonly installed. It may be installed somewhere else or not installed at all. Please contact your system administrator for more information.
Comment #25.0
Jorrit CreditAttribution: Jorrit commentedformatting..