configuring FFMPEG module on 1 & 1 hosted server

alik99
alik99's picture

Joined: 2006-07-01
Posts: 51
Posted: Fri, 2006-07-07 22:35

I searched and read thru almost all posts on how to configure ffmpeg module but could not find an answer to my problem.

My Gallery 2 is hosted on 1&1 server.
I don't have access to shell
I don't have Linux running and thus can't compile anything.

Where do I get a pre-compiled binary that would work on 1&1 server?
and what other, if any, files I need in order for ffmpeg to work.

I've tried different binary files that I could find, but I get errors

Thank you so much to whover might be able to help!


Gallery version = 2.1 core 1.1.0
PHP version = 4.4.2 cgi
Webserver = Apache/1.3.33 (Unix)
Database = mysql 4.0.27-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd
Acceleration = partial/3600, full/21600
Operating system = Linux infong 2.4 #1 SMP Wed Jan 18 14:53:29 CET 2006 i686 unknown
Default theme = matrix
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

 
Knight Scene
Knight Scene's picture

Joined: 2006-03-06
Posts: 36
Posted: Sat, 2006-07-08 17:08

Im watching this with interest too. Ive read many papers on FFMPEG but what I could really do with is someone to point a finger to a page where I can "learn" about it myself and install it afterwards. But I dont understand how to execute or compile this FFMPEG system.

 
mikeserv

Joined: 2006-04-18
Posts: 41
Posted: Tue, 2006-07-11 02:02

Well, this is (maybe, if it works for you) your lucky day. Coincidently, I had someone contact me about a Linux binary for use on shared hosting last night. I think I compiled one that *should* work on most Linux systems (It did for them, and I can execute it in different distros). I used a Linux 2.4 based Slackware distro to build it. It's compiled for generic i386 and it's static, except for glibc and zlib, which should be standard gear and there's nothing exotic about the glibc in that slackware distro.

I put it here. Zipped, so both Windows and Linux users can unpack it.

http://www.mikeserv.org/files/ffmpeg_slackwarebinary.zip

This is the source code that I used to build it. I stuck with that CVS checkout, because I know it works.

http://www.mikeserv.org/files/ffmpeg_cvs-20april2006.tar.gz

So download the ffmpeg_slackwarebinary.zip and unzip it on your computer. You will find a single binary named ffmpeg (approximately 3 Mb). Upload ffmpeg to a directory where you have write access on the server. You must set it executable (e.g. chmod +x from the shell, or change permissions using your ftp client)

When you configure the ffmpeg Gallery module, you must specify the real path to the binary on the server. You need to know where you are on the machine. (If you don't know, ask your sysadmin, or if your Gallery was preconfigured take a look at the variables in your config.php for clues)

This assumes that you are able to execute external binaries through php. (e.g. if php is in Safe Mode, condolences)

I hope it works for you,

Mike Houston

 
hartyshow
hartyshow's picture

Joined: 2006-07-06
Posts: 29
Posted: Tue, 2006-07-11 06:37

The big problem with 1&1 is that the glibc is too old (/lib/libc.so.6: version `GLIBC_2.3' not found)

For the moment No way !

 
mikeserv

Joined: 2006-04-18
Posts: 41
Posted: Tue, 2006-07-11 07:13

Jeeze, that's years old then. I thought that was a safe enough bet, but the binary I compiled would definitely have the GLIBC_2.3 symbols. Would you happen to know what version of glibc we are dealing with on 1&1 servers? I might be able to make a binary on an even older distro (assuming I can get it to compile). I would think it have to be at least glibc 2.2, but you never know if some turkeys are still using something from the 90's lol

Mike Houston

 
mikeserv

Joined: 2006-04-18
Posts: 41
Posted: Tue, 2006-07-11 08:55

Alrighty then... here's a binary for glibc 2.2 that hopefully should work on 1&1 servers assuming they are at least glibc 2.2. (and hopefully just about anywhere... I can execute this on newer systems as well).

http://www.mikeserv.org/files/ffmpeg_glibc22.zip

Compiled in Slackware 8.0, which has glibc 2.2.3, using gcc 2.95.3. Same deal, it's for generic i386 and static except for glibc and zlib. It should be compatible.

I hope this works for you folks

Mike Houston

 
alik99
alik99's picture

Joined: 2006-07-01
Posts: 51
Posted: Sun, 2006-07-16 03:22

mikeserv, THANK YOU SO MUCH!!!

Your last ffmpeg binary worked on 1&1

Thanks!!!

 
hartyshow
hartyshow's picture

Joined: 2006-07-06
Posts: 29
Posted: Mon, 2006-07-17 06:38

Thank you Mikeserv for your collaboration :-) It works on my 1&1 server too !

 
fgijbels

Joined: 2006-02-16
Posts: 2
Posted: Tue, 2006-07-18 09:03

Mikeserv,

It doing not for a wmv-file. But he must that well to do. (My english is not good)

 
steve_cook

Joined: 2006-07-22
Posts: 1
Posted: Sat, 2006-07-22 19:50

Mike,

Thank you so much for compiling this for 1&1 servers, the second binary worked perfectly for me as well.

However, in my case I need audio as well as video. Is there anyway that you can compile a version with audio enabled? Or could you tell me how to do it myself?

Once again, thank you.

Steve Cook

 
mikeserv

Joined: 2006-04-18
Posts: 41
Posted: Sun, 2006-07-23 22:29

Here's a thread with some quick instructions on how to compile it yourself

http://gallery.menalto.com/node/30138

I can't see how audio could be useful using this binary for Gallery to generate thumbs in a web hosting directory so I had deliberately disabled it with --disable-audio-oss and I also disabled the player components.

Type ./configure --help to see all the compile time options

Mike Houston

 
dsc61180

Joined: 2006-08-07
Posts: 1
Posted: Mon, 2006-08-07 04:44

This worked great. Can you also compile Dcraw and ImageMagick binaries for use on 1and1.com linux servers.

Much appreciated,
dan

 
xperience

Joined: 2006-09-27
Posts: 25
Posted: Sun, 2006-10-01 09:24

Hi Mike,

I've tried this on a Donhost server but it keeps failing. I get:

file_exists(/home/s/i/simonpearce/public_html/photos/ffmpegtest/ffmpeg)
is_file(/home/s/i/simonpearce/public_html/photos/ffmpegtest/ffmpeg)
Executing: ( "/home/s/i/simonpearce/public_html/photos/ffmpegtest/ffmpeg"
"-formats" )
2>/home/s/i/simonpearce/public_html/photos/g2data/tmp/g2dbgoTlObY
file_exists(/home/s/i/simonpearce/public_html/photos/g2data/tmp/g2dbgoTlObY)
filesize(/home/s/i/simonpearce/public_html/photos/g2data/tmp/g2dbgoTlObY)
unlink(/home/s/i/simonpearce/public_html/photos/g2data/tmp/g2dbgoTlObY)
Regular Output:
Abort trap
Error Output:
Status: 134 (expected 0)
Executing: ( "/home/s/i/simonpearce/public_html/photos/ffmpegtest/ffmpeg"
"-h" ) 2>/home/s/i/simonpearce/public_html/photos/g2data/tmp/g2dbgYixpIz
file_exists(/home/s/i/simonpearce/public_html/photos/g2data/tmp/g2dbgYixpIz)
filesize(/home/s/i/simonpearce/public_html/photos/g2data/tmp/g2dbgYixpIz)
unlink(/home/s/i/simonpearce/public_html/photos/g2data/tmp/g2dbgYixpIz)
Regular Output:
Abort trap
Error Output:
Status: 134 (expected 0)

Does that mean anything to you?

Cheers

Simon

 
Jordan_01002

Joined: 2005-02-14
Posts: 1535
Posted: Mon, 2006-10-30 19:18

mikeserv, thank you so much for that binary! Works like a charm!

The only problem I've come across is incompatablity with new wmv files (the dreaded Unsupported codec (id=74) for input stream #0.1 issue), which, I gather from my searches on this problem, is a known issue with ffmpeg.

Thanks again!

 
TranceMist
TranceMist's picture

Joined: 2006-11-04
Posts: 1
Posted: Sat, 2006-11-04 03:23
mikeserv wrote:
Alrighty then... here's a binary for glibc 2.2 that hopefully should work on 1&1

Thanky you!!

I had just installed gallery2 on my 1and1 account (it was very easy) and was googling around looking for ffmpeg and found your post.

 
paypal
paypal's picture

Joined: 2006-11-18
Posts: 1
Posted: Sat, 2006-11-18 03:21

I have hosting accounts with godaddy and would like to run a "YOUTUBE" Video sharing site.
I allready have the full script but require ffmpeg, ffmpeg.php and mencoder.I am willing to share script. please respond? thankyou

P.S. any Hosting reccomendations greatly concidered

 
sammum

Joined: 2007-01-24
Posts: 1
Posted: Wed, 2007-01-24 19:32
mikeserv wrote:
Here's a thread with some quick instructions on how to compile it yourself

http://gallery.menalto.com/node/30138

I can't see how audio could be useful using this binary for Gallery to generate thumbs in a web hosting directory so I had deliberately disabled it with --disable-audio-oss and I also disabled the player components.

Type ./configure --help to see all the compile time options

Mike Houston

Mike, is it possible to compile mplayer with the same libs and upload binary to the forum?
Thank you in advance!

 
joemonster
joemonster's picture

Joined: 2006-04-12
Posts: 236
Posted: Fri, 2007-04-27 18:53

Why doesn't the "glibc 2.2" version support WMV3+ files? It calls them an "unsupported codec".

Or maybe is it a general ffmpeg issue?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-04-27 20:12

what does glibc have to do with the wmv decoder lib for ffmpeg?
if you want ffmpeg with all bells and whistles, you need to compile your own after getting all required libs and ./configure to instruct ffmpeg's make process where to find everything.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
wawerko

Joined: 2008-06-06
Posts: 1
Posted: Fri, 2008-06-06 10:47

I know this thread is rather old, but I didn't find a newer for my problem.
I need the same package, but WITH audio-support. I read the "how to compile"-Thread
but it didn't work for me. Could someone tell me how to compile ffmpeg with audio-support and glibc 2.2?
Thanks in advance!

 
mcalistor

Joined: 2008-08-01
Posts: 2
Posted: Fri, 2008-08-01 18:54

Anyone out there know of an updated, compiled version of the ffmpeg binary that will work on 1and1.com ? I tried about 10 different versions, most resulted in the Status 139 error. Thanks!

Gallery version = 2.3-RC1 core 1.2.36
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.4
PHP version = 4.4.8 cgi
Webserver = Apache/1.3.34 Ben-SSL/1.55
Database = mysqlt 5.0.51a-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, jpegtran, LinkItemToolkit, NetPBM, Thumbnail, Gd, SquareThumb
Acceleration = none/3600, none/3600
Operating system = Linux infong 2.4 #1 SMP Wed Sep 26 00:19:50 CEST 2007 i686 GNU/Linux
Default theme = matrix
gettext = enabled
Locale = en_US

 
fishtank22

Joined: 2002-09-04
Posts: 36
Posted: Mon, 2009-01-26 22:53

Hey there. I was able to get ffmpeg working on my Shared 1and1 server. Thanks to Mike for his binary which worked like a charm I tried to compile myself using directions on a different thread but that didnt work.

the one problem I am having is that when I do upload the video, the thumbnail is created but the width/height of the video is not collected and written to the database. When I click on the thumbnail in Gallery, it opens a page with just a "download movie" button. the video isn't embedded in the page.

I had to manually go in and update teh width height in admin>edit movie>movie size or the database itself to get this to embed in the page.

Any ideas how to get ffmpeg to extract the Width and height?

Thanks again,

Dave

 
alik99
alik99's picture

Joined: 2006-07-01
Posts: 51
Posted: Tue, 2009-01-27 11:29

Dave, i think it depends on the type of video file that you upload.
I convert my videos before uploading and when I convert to Windows Media Player version 9 type I get the "Download" link like you, but when I convert to version 8 wma type I get the video to embed...

hope this helps...