FFMPEG is installed at /opt/local/bin following the procedure outlined here. PHP.ini settings are as recommended for the FlashVideo module.

Gallery2 is successfully installed and FFMPEG successfully passed all tests.

FlashVideo module is configured not to extract information using FFMPEG-PHP but it is configured to point to the proper directory for FFMPEG as listed above. I've created a Video content type, create new video content, browse to and attach a .wmv file, putting [video] in the "body," input format is "Full HTML." Submit document and I get "Video currently not available."

Thumbnail and .flv files are generated in the "files" folder (despite having "files/video" and "files/video_import" specified in the module) - the thumbnail looks fine, but the .flv has a filesize of "0" and I get the above error message.

I've installed LAME following the instructions listed here and tried the -acodec change as listed here: http://www.travistidwell.com/node/263 - no luck.

I've been working on this two days now and I'm stumped - can anyone help? I would love to use this module, but I am at my wit's end. I'm a designer, not a programmer, so simple instructions are greatly appreciated. Thank you in advance!

Drupal 5.3
Mac OS X 10.4.10
PHP 5.2.1
MySQL client verison 5.0.24a
Localhost

Comments

rubenk’s picture

try taking out the part that says something something mp3

can't remember exactly, but its like "-## mp3"

That did the trick for me.

travist’s picture

Status: Active » Fixed
bcobin’s picture

Status: Fixed » Postponed (maintainer needs more info)

No such luck.

(Why was this marked "fixed?" - it's definitely not.)

I assume that you mean changing the fmpeg command field in the FFMPEG Settings of the module from:

-i @input -f flv -acodec mp3 -ar 22050 -ab 64k -ac 1 @output

to

-i @input -f flv -ar 22050 -ab 64k -ac 1 @output

No change - it's exhibiting the same behavior - doesn't work. And the .flv still appears in the "files" folder (as opposed to the "files/video" folder, as specified.

Has anyone been able to get this module to work successfully on a Mac?

Oh - I must have mistyped my link to install LAME in my initial post - I followed these instructions: http://www.macosxhints.com/article.php?story=20050217074716445

Thanks much for any help - this is very, very frustrating.

travist’s picture

Try adding the -ac libmp3lame instead of -ac mp3... So your command should now be.

-i @input -f flv -ac libmp3lame -ar 22050 -ab 64k -ac 1 @output

This is what rubenk did and it fixed his issue. If this does not work, then you need to make sure that you have an mp3 codec installed on your machine. Read my article here for more information.

Let me know if this resolves your issues.

Thanks,

Travis.

bcobin’s picture

Thank you, Travis - I did read your post and have already tried it with the "-ac libmp3lame" setting - no joy. Same result.

I'm running locally, but if you have the inclination and/or the time, you're most welcome to log into my machine and poke around - you can e-mail me here and I'll provide you with the login information.

The mp3 plug-in in Gallery2 (embedded) is installed and activated, btw. Thanks much in advance for helping me to solve this - it's the last major configuration issue I have (I think!)

travist’s picture

Just because your mp3 plugin is installed for Gallery 2 does not necessarily suggest that the plugin is for FFMPEG...(or does it)? Are you running on a linux box? If so, then you need to open up your Terminal and type the following...

/usr/bin/ffmpeg --help

Or if you are using Ubuntu, type....

sudo /usr/bin/ffmpeg --help

This will give you a list of all modules that have been enabled for your ffmpeg installation. Check to make sure that you see --enable-libmp3lame or --enable-mp3, or any other type of mp3 codec. Whatever it tells you you have, you need to use that in the command. If you do not see any mp3 codec installed, then that is your problem.

Thanks,

Travis.

bcobin’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

SUCCESS!

FFMPEG needed to be installed with liblame support - much thanks to Anthony Anand and his post here:

http://blog.gwikzone.org/articles/2006/09/25/flv-encoding-with-ffmpeg

Note that the FFMPEG command is : -i @input -f flv -acodec mp3 -ar 22050 -ab 64k -ac 1 @output

(not -acodec libmp3lame) and the FFMPEG path is /usr/local/bin/ffmpeg

The .flv still appears in the "files" folder (as opposed to files/video), but I will take it for now. Thank you for your help, Travis - I look forward to using this fine module!

rubenk’s picture

under your general video settings ( the one for all nodes, there iz a field for ouput directory. note that this field is not seen for specific node settings. go into that one, chage the output directory, and you should be set. also note that you don't have to enable the module for all nodes for this to take effect.

fwiw, i actually dont use the -enable comand at all ... when i made it, i guess i must have told it where the lame installation was.?.