page : admin/settings/ffmpeg_wrapper/test
when i click the submit buttom-"transcode" ,
error : "admin/settings/ffmpeg_wrapper/test" showup
but in the configuration area , the widget "Output format" , there is nothing i can choose there, no items inside but just "select output type"

windows , drupal6,"C:/ffmpeg/ffmpeg.exe"

is this an error?

Comments

internetdevels’s picture

subs
I have the same error

Ubuntu, drupal6

arthurf’s picture

Status: Active » Postponed (maintainer needs more info)

You need to set the path to ffmpeg in the admin/settings/ffmpeg_wrapper- did you?

haojiang’s picture

of course i did
and i am sure that in the previous version , the same path with the same ffmpeg.exe configuration is all right
so , i think maybe there is something change in this version , so i still use the previous version now

arthurf’s picture

Is there a file that can be transcoded? Can you try the dev version? This does not happen for me, however I do not use windows.

arthurf’s picture

In thinking about it, your codecs are probably cached. If you clear this, you should be ok. In newer versions, this cache is cleared when you go to admin/settings/ffmpeg_wrapper

sjtout’s picture

I have the same problem -- no Output formats to choose from -- using 6.x-1.1-beta1.
Also on Windows, using WAMP (Apache & MySQL).

Is there any information I could provide that could help us troubleshoot this?

arthurf’s picture

Hi-

First clear your caches. Secondly give the dev version a try. Thirdly, can you confirm that the path to the ffmpeg binary is correct? That list is generated from ffmpeg, so it needs to have access to it to generate it.

sjtout’s picture

Hi,

I've cleared my cache (I think -- I've hit all the FFMPEG admin pages, and chosen to clear all the items available under 'Clear private data...' in FF) and downloaded and installed the dev version. I've also tried a different binary compiled for Windows. The paths to the binaries (both on the disk and what I'm using in the UI) are:

E:\Program Files\WinFF\ffmpeg.exe
for a binary obtained here: http://winff.org/html_new/

and

E:\wamp\www\ffmpeg\bin\ffmpeg.exe
for a binary obtained here: http://ffmpeg.arrozcru.org/builds/

In addition, I've noticed during this round of testing that an error message appears when I first go to the FFMPEG WRAPPER TEST CONVERSION tab after saving a configuration. The error is:

warning: Invalid argument supplied for foreach() in E:\wamp\www\boost\sites\all\modules\ffmpeg_wrapper\ffmpeg_wrapper.module on line 485.

Of course, I looked at line 485 and it's a listing of array items that store output formats -- which makes sense I guess, given the problem we're seeing. The error message goes away when the page is refreshed, so I don't know if it started showing up with the dev version or I just started noticing it then.

Thank you for your work on this. Please let me know if there's any more information I can provide that would be helpful.

sjtout’s picture

FYI, I have installed devel, and though I haven't used it yet, I'd be happy to try and use it to acquire info that might be helpful troubleshooting this.

sjtout’s picture

This is now working for me. I think the problem was the path and the location of the FFMPEG binary. It seems as though a path like this won't work:

E:\Program Files\WinFF\ffmpeg.exe

I put FFMPEG into the Drupal directory and then referred to it with a relative path --

/ffmpeg/bin/ffmpeg.exe

I also turned on the devel module and cleared the cache several times -- so that may have done something. In any case, using that path, I now have Output Format options.

One last note -- I got things working, then tried to isolate what I'd done to make it work, rolling things back a bit and trying to retrace steps one at a time. However, I couldn't get the thing to work again until, after much trial and error, I realized that I hadn't included the leading forward slash in the path. So that may be helpful for others -- if you put FFMPEG in the same directory as Drupal, make sure you're using a leading forward slash in your path. (EG, the path should like LIKE THIS:

/ffmpeg/bin/ffmpeg.exe

NOT like this: ffmpeg/bin/ffmpeg.exe <--won't work.

sinasalek’s picture

I'm on CentOS 5.3, and i have the same problem. also it does not accepts vhooks. says it does not exists at the specified path. i checked both ffmpeg and vhook path and i'm sure the paths are correct. I cleard the cache in admin -> performance several times.
I also tried the latest dev version. Any suggestion?

sinasalek’s picture

Ok , i found the solution. i check the log file and found hits : file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/ffmpeg) is not within the allowed path(s)

I have fastcgi installed on my server, clearly it says that the folders are no accessible by the user. so i created to symlink to ffmpeg and vhook and it recognized them finally.

ln -s /usr/lib/vhook /home/username/vhook
ln -s /usr/bin/ffmpeg /home/username/ffmpeg
jianxun’s picture

I met ths same problem. Solved it by replacing the newest ffmpeg apps from the official site with the winff(http://winff.org) version installed inside drupal site. The abosulte ffmpeg path setted as a relative drupal root path: sites\all\libraries\winff\ffmpeg.exe.

I m using apache+mysql in a win2003 server for drupal.

sukh.singh’s picture

Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active
imDhaval’s picture

i m using windows 7,
in FFmpeg Wrapper Settings, i set FFmpeg path to "/usr/bin/ffmpeg.exe"
but i got this error everytime
FFmpeg Wrapper could not find the path to the FFmpeg binary. You will need to set this by hand at: admin/settings/ffmpeg_wrapper

please help me .
i am new in drupal

imDhaval’s picture

Version: 6.x-1.1-beta1 » 6.x-1.1-beta2
Assigned: Unassigned » imDhaval
LuckyBamboo’s picture

Priority: Critical » Major

I'm having more or less the same problem except the previous mentioned solutions won't work for me and this is turning into a real nightmare.

Let me describe the steps I have taken.

1. Video module (video-6.x-4.1-rc6) + ffmpeg Wrapper (ffmpeg_wrapper-6.x-1.1-beta2)

In the 'Transcoders' tab (admin/settings/video/transcoders( I ticked the FFmpeg wrapper but the 'Output Format' dropdown is empty. There isn't even one type I can select from in there.

I tried setting the path in the 'Path to video transcoder' field to:
- C:\ffmpeg\ffmpeg.exe
- /ffmpeg/bin/ffmpeg.exe (putting the ffmpeg library in Drupal's root as suggested in an earlier comment)

Also, in the FFmpeg Wrapper settings page (/admin/settings/ffmpeg_wrapper/test( test conversion tab, the output format is empty as well.

I tried setting the path in the 'FFmpeg path' field to:
- C:\ffmpeg\ffmpeg.exe
- /ffmpeg/bin/ffmpeg.exe (putting the ffmpeg library in Drupal's root as suggested in an earlier comment)

nothing works!

The I uninstalled the video module and install the dev version:

2. Video module DEV (video-6.x-4.x-dev) + ffmpeg Wrapper (ffmpeg_wrapper-6.x-1.1-beta2)

Now I don't even have the FFmepg wrapper radio button under 'Transcoders' in Video (admin/settings/video/transcoders) only the basic FFmpeg.

Nothing comes up on the logs except for the "Invalid argument supplied for foreach() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mysite\sites\all\modules\ffmpeg_wrapper\ffmpeg_wrapper.module on line 522" error message - a direct result of the lack of any 'Output Format' values in hte drop down mentioned earlier.

I spent about 5 hours on that yesterday and another one today and this is just plane crazy.

Could anyone please help me out of this mess?? thanks

itrain’s picture

I know the last post was months ago, but I thought I'd contribute some of my knowledge I just learned, and report my problem I'm having with this issue.

I have my localhost site and my live site with the same folder structure, expect the live site is on a Bitnami VM Ubuntu, and my local site is Windows XP WAMP.

On both sites I am unable to access this page admin/settings/video/transcoders - I get a page not found error. PLEASE HELP WITH THIS...

On my local site I have ffmpeg working - I will explain how I got it working as to the above post.... I did the same thing on my live site it is not working (strange)...

This is what I did:

Extracted FFMPEG to sites/all/libraries/ffmpeg. I put that URL with and without a slash (/sites/all/libraries/ffmpeg.exe) in the page admin/settings/ffmpeg_wrapper as the ffmpeg path... COULD NOT GET IT WORKING.

I then put the whole ffmpeg directory into my sites folder, copied ffmpeg.exe and put it in the Drupal Root Directory, and put in ffmpeg.exe (without a slash infront) as the ffmpeg path, and I now have all the codecs showing up etc, so it seems like it's working for me.

I tried to do a test conversion but I get errors and it doesn't convert (but I haven't entered vhook libraries path yet, maybe that's why). This is only working on wamp localhost, not on live Ubuntu VM.

So once again in less steps, if you have trouble try:
- extract FFMPEG to the your sites folder,
- copy ffmpeg.exe, paste it to Drupal Root folder
- Enter ffmpeg.exe in admin/settings/ffmpeg_wrapper as the ffmpeg path.

Any idea why I can't access admin/settings/video/transcoders??? (Page not found error)
Thank You.