Talk:FFmpeg

From DreamHost
Jump to: navigation, search

Contents

/tmp permission problem

When I enter this:

[server]$ ./configure --prefix=$HOME --cross-compile

I get:

Unable to create and execute files in /tmp. Set the TMPDIR environment variable to another directory. Sanity test failed. If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.err" produced by configure as this will help solving the problem.

Any ideas? I don't have any *nix experience really..

--

This is likely because you don't have write access to the root /tmp directory on the server. You'll need to change your session variable TMPDIR to something like $HOME/tmp and then make a directory in your home directory named tmp.

Now, my shell scripting may be a bit rusty but I think this might help you (if you're using bash): TMPDIR=$HOME/tmp
export TMPDIR

Then try running ./configure --prefix=$HOME --cross-compile

LAME not found

I am trying to compile ffmpeg with the LAME libraries, but I can't seem to configure the paths correctly. I've tried a million combinations but always get ERROR: LAME not found.

~/bin/lame (lame executable)
~/lib/ (lame libraries / .so, .a, .la files)
~/ffmpeg (ffmpeg source files & current working directory)

I thought this would work fine:

./configure --prefix=$HOME --cross-compile --enable-shared --enable-mp3lame \
--extra-cflags=-I/home/notbot/bin/include --extra-ldflags=-L/home/notbot/lib/

but..ERROR: LAME not found!

Thanks for any help! --Notbot 12:00, 16 Jan 2007 (PST)

Cflag not set right

In case you haven't figured it out already, you have an extra "bin" in the cflag setting, which is why lame can't be found.

FFmpeg is not available by default for Dreamhost users

Hi,

The article indicates that "FFmpeg is not available by default for Dreamhost users". This confuses me. When I SSH in to my host, I can clearly see it is installed:

xxx@xxx:xxx$ COLUMNS=120 dpkg -l ffmpeg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                     Version                  Description
+++-========================-========================-================================================================
ii  ffmpeg                   0.cvs20060329-3bpo1      multimedia player, server and encoder

And when I try to run it, it dumps out the help text as expected:

xxx@xxx:xxx$ ffmpeg
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
  libavutil version: 0d.49.0.0
  libavcodec version: 0d.51.8.0
  libavformat version: 0d.50.4.0
  built on Jun 17 2006 19:52:20, gcc: 3.3.5 (Debian 1:3.3.5-13)
usage: ffmpeg [[infile options] -i infile]... {[outfile options] outfile}...
Hyper fast Audio and Video encoder

Main options:
-L                  show license
-h                  show help
-version            show version

.... etc ....

So, has something changed such that it is installed by default? The package version installed (on my host) isn't even the Debian sarge version, so someone must've compiled up a later version and installed it on the hosts.

Anyway, was just wondering what the deal was.

Personal tools