Step 1: Get FFMPEG

You will first need FFMPEG... or at least a host that will do it for you.

For those of you who have been digging around on the internet looking for a video solution for your website may have already come accross the name FFMPEG. But what the heck is it? Well, simply put, FFMPEG is a program that will convert any video format to the very common and ever-so-cool Flash format. Go to YouTube and you will see what I am talking about... Every video shares the exact same video player, no matter what video format you uploaded. This is essential to the success of a video website. What is even more exciting about Flash, is that you can put interactive controls on all of your videos.

So, I am sure you are probably asking "Ok that's cool, but how can I get it?!" Well, I was asking the same thing about 3 months ago, when I first started reading tutorials on how to install the FFMPEG binary into your server. Well, good luck! Trying to read instructions on how to install FFMPEG on your server is like trying to read the Star Trek Clingon manual... not necessarily a page turner. So, I decided to look elsewhere, and finally stumbled on a GodSend... CirtexHosting! The second you sign up for an account, you already have the power of FFMPEG at your fingertips, and all for the price of a cheeseburger! If you do not have FFMPEG installed on your server, then STOP HERE... sign up for an account at CirtexHosting for $2.50 / month, and then continue this tutorial after you have done that. If you already have FFMPEG, then you can just skip to the next Step.


Installing ffmpeg on a cPanel server with yum...

Great module and tutorial!

I'm setting this up on my own server so here's instructions if you're using cPanel/WHM with Fedora/CentOS/RedHat/etc.

wget http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/4/freshrpms-release/... http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3... -i freshrpms-release-1.1-1.fc.noarch.rpm
rpm -i rpmforge-release-0.3.4-1.fc1.rf.i386.rpm

yum install ffmpeg

That did it for me. I first tried FreshRPMs by itself but that had dependency issues.

Afterwards, I uninstalled both repos (it's a server -- it shouldn't be kept clean!) like so:

rpm -e rpmforge-release
rpm -e freshrpms-release

ffmpeg Free Download

Installing ffmpeg & Lamemp3 for FlashVideo module

I had a terrible time installing ffmpeg but finally I made it.I have written the whole tutorial in detail
and I hope everyone benefits from it.
Please follow this link step by step tutorial for installing ffmpeg and lamemp3

http://drupal.org/node/237072

and please do provide feedback on how did you like the tutorial.

Cheers

Juned Kazi

Great tutorial! Thanks for

Great tutorial! Thanks for the contribution!

Cirtex Hosting

I have been very disappointed with the response times and reliability I'm getting at Cirtex, We have experienced frequent downtimes for short periods and often have slow response times (20-second page loads). We previously were using TigerTech which had much faster response times but did not have ffmpeg already installed so we switched to Cirtex. Right now we are just testing our site with 1 to 3 users and limping along but it would never work to go live.

Why dont you try us?

We offer better services than cirtex

check us out

Reliable ffmpeg hosting

Get FFMpeg easily

if you can log in to your server (via ssh or physical access), and it is running debian/ubuntu or any other derived system, simply do:

apt-get install ffmpeg

...and you have ffmpeg. no need to rely on capitalist companies this time!

not quite that simple, but on the right track

Yesterday, I wrote the comment below, but today I found an even better walk-through for Debian users: http://stream0.org/2008/01/install-ffmpeg-on-debian-etch.html

Here's my post from yesterday though (which works great but won't allow Quicktime and Ogg Vorbis types):
==================================================
So, it's not that simple, but it's possible and do-able (for free) in under 60 minutes....

as explained in http://drupal.org/node/137203, apt-get install ffmpeg will NOT install the necessary mp3 and AMR decoders due to license restrictions, however maxigas is on the right track!

If you're running Debian, you'll need to install from source code, so budget about 30 minutes, but follow the instructions in the link above, or do like I did and follow this great step-by-step guide at http://www.mattiouz.com/blog/2007/07/02/how-to-install-ffmpeg-with-mp3-a...

AFTER THAT, MAKE THESE 3 TWEAKS AT admin/settings/flashvideo/edit/(your content type here):
===================================================
1) update the ffmpeg Path to /usr/local/bin/ffmpeg

2) /admin/settings/flashvideo/edit/(your content type here) under FFMPEG settings
-i @input -f flv -acodec libmp3lame -ar 22050 -ab 64k -ac 1 @output
by compiling with the link above, the default mp3 becomes libmp3lame

3) be sure to copy the mediaplayer folder contents of http://www.jeroenwijering.com/?item=JW_FLV_Media_Player to the files directory

Choosing hosting

Hi dude,

I host my site with cirtex on their share hosting

honestly for what i pay, they are not bad,

www.tastyfood.tv

Not Bad?

I went to your website and it took about 40 seconds to load the home page. I don't consider that "not bad"

FFMPEG

hi

i am working on my local PC.
i have installed and enabled Flashvideo module.
i want to convert movie in to flash file.
i have configured the settings, i have also disabled the FlashVideo CCK module.
but when i create the node/content there is an error ,
--------- Fatal error: Class 'ffmpeg_movie' not found in

can you please provide more information on these?

Thank you,
Drupal - Provider

You just need to go to

You just need to go to FlashVideo Settings page and disable the setting for FFMPEG-PHP... not a big deal if you don't have it, the module will still work just fine.

Bypass FFMPEG?

I'd like to bypass FFMPEG. My client has a vast library of .flv files ready to go . So I'd like to use this excellent module to pass them through, upload and play videos but can't figure out how to do it. I tried setting retries to 0, the file gets uploaded to /files but I can't shake the "video not available"

Try the new BETA version

Try the new BETA version that I just released! I fix just this problem!

Thanks,

Travis.

Uploading FLVs directly

I downloaded the version 5.x-2.3, but when I upload flv-files directly, I still get the "Video not available" picture... Am I missing something?

Thanks!

EDIT: OK... I had to run the cron even when the ffmpeg wasn't actually needed. However, some problems remain:

  • user warning: Table 'drupal_local.ffmpeg_data' doesn't exist query: SELECT COUNT(*) FROM ffmpeg_data WHERE (fid = 151) AND (status = 0) in /censored/drupal-5.1/includes/database.mysql.inc on line 172.
  • warning: filesize() [function.filesize]: stat failed for /censored/drupal-5.1/files/56_blooper.jpg in /censored/drupal-5.1/sites/all/modules/flashvideo/flashvideo.module on line 832.
  • user warning: Table 'drupal_local.ffmpeg_data' doesn't exist query: INSERT INTO ffmpeg_data (fid, created, input_file, output_file, status) VALUES (151, NOW(), '/censored/drupal-5.1/files/56_blooper.flv', '/censored/drupal-5.1/files/56_blooper.jpg', 0) in /censored/drupal-5.1/includes/database.mysql.inc on line 172.

Apparently, thumbnails are created into ffmpeg_data, but this table is never created, if one doesn't use ffmpeg at all...

ffmpeg_data cannot be created

For some reason flashvideo module cannot create the ffmpeg_data table:

user warning: BLOB/TEXT column 'input_file' can't have a default value query: CREATE TABLE ffmpeg_data ( did int(10) unsigned NOT NULL AUTO_INCREMENT, fid int(10) unsigned NOT NULL default '0', created timestamp NOT NULL, input_file text NOT NULL default '', output_file text NOT NULL default '', status tinyint(1) unsigned NOT NULL default '0', data text NOT NULL default '', PRIMARY KEY (did) ) TYPE=MyISAM COMMENT='size is in bytes' /*!40100 DEFAULT CHARACTER SET utf8 */; in /censored/drupal-5.1/includes/database.mysql.inc on line 172.

My test site is running on Windows XP SP2, PHP 5.2.0.

You are actually the first

You are actually the first person I have heard who is using Windows XP SP2 for this module. Please send me an email showing me the exact changes you had to make to get it to work, and I will try to put it into the next release.

Thanks,

Travis.

I'm 99% sure that this is

I'm 99% sure that this is the issue: http://bugs.mysql.com/bug.php?id=25520.

Personally, I got it to work when I manually executed the CREATE TABLE command with SQLyog. I have no idea why SQLyog did the job but mysql "command prompt" didn't... But the table creation worked fine with my primary site which is running on Linux.

But you should be able to see the "bug" if you change you're sql-mode to strict and then try to execute the CREATE TABLE query.

Anyway, in a nutshell, I believe this are the lines that cause the problem:

input_file text NOT NULL default '',
output_file text NOT NULL default '',
data text NOT NULL default '',

dreamhost is good, too

I have taken a look at my dreamhost account which is by far the best I have ever had (and I had many...). You have absolute control, even SSH. Everything just works, oooh how I love that!

You can easily set up ffmpeg on dreamhost, just have a look at the wiki (short and easy instructions). And: it works :)

The best: get one year, around 200Megs for only 17$: use the promocode PIMPMEUP.

cheers
:)

Can't find FFMPEG in the link

Hi!
This seems interesting and I am very thankful that you are sharing this. I just wonder, because when I click the banner above I get into a web hosting company where I can subscribe to different hosting alternatives, but I can't find the FFMPEG program. Personally I already have a host so I only need the software.
Thanks again

CirtexHosting provides

CirtexHosting provides FFMPEG as an already configured option for all their accounts...
You can see this at the following link.

http://www.cirtexhosting.com/ffmpeg-hosting.shtml

Even their $2.00 / month plan has this option enabled.

Thanks,

Travis

Anyone know an affordable

Anyone know an affordable ffmpeg host in Europe?