hai !

i tried lot of instruction to install ffmpeg on ubuntu...

all them were failed it returns finally...

libfaac is nonfree and --enable-nonfree is not specified.

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
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.

what i need to do..

help me...

Dani AI

Generated

Short summary and what went wrong (brief): the build failed because ffmpeg detected a non-free external encoder library (FAAC) on the machine and refused to continue unless the build is explicitly allowed to include nonfree code. The thread correctly moved toward two routes: (A) use the distro packages so you don't have to build, or (B) install the missing -dev libraries and rebuild ffmpeg with the appropriate configure options. The registry of old Jaunty packages and licensing rules are the two practical stumbling blocks here. (ffmpeg.org)

Immediate, CLI-first checklist for a headless box (do these in order)

  • Backup and (if Jaunty is EOL) repoint apt to the old-releases archive so apt can find packages.
  • Enable main/universe/multiverse/restricted from the shell and refresh apt.
  • Verify whether the development packages exist and install them (for example the OpenCORE AMR development package and FAAC dev package). If they are not present you must build those libraries from source before rebuilding ffmpeg.
    Suggested commands (adapt to your shell; these are alternatives to editing with a GUI editor):
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i 's|archive.ubuntu.com|old-releases.ubuntu.com|g; s|security.ubuntu.com|old-releases.ubuntu.com|g' /etc/apt/sources.list
sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse
sudo apt-get update

apt-cache policy libopencore-amrnb-dev libfaac-dev
sudo apt-get install libopencore-amrnb-dev libfaac-dev   # if available
sudo apt-get build-dep ffmpeg
sudo apt-get source ffmpeg

References and cautions: OpenCore AMR dev packages are available from the distribution universe, but on an EOL release you may need the old-releases archive or to build from source. Enabling ffmpeg’s support for FAAC/other nonfree libraries requires the configure option that allows nonfree code; note that doing so can make the resulting binary unredistributable (read the ffmpeg licensing notes). If you prefer to avoid license complexity, install the distribution ffmpeg package (when available) or upgrade the system to a supported Ubuntu to get maintained packages. (packages.debian.org)

How this ties to earlier posts: was right to point at the repo/components and the packaged route; ’s pointer to package pages is the right direction for finding missing -dev files. For a remote, GUI-less workflow follow the checklist above, then rebuild ffmpeg only after the required -dev libs are installed (or strip FAAC support if you cannot legally or practically include it).

Recommended Answers

All 9 Replies

Have you enabled all of the repositories in your software sources settings?
I think if you go to 'system->administration->software sources' and ensure that the universe, multiverse and restricted repositories are enabled, that might solve the problem.

Also why are you trying to build ffmpg? What's wrong with the version in the main Ubuntu repository? Have you tried installing it using aptitude or synaptic yet? I have 9.04 on my old tablet PC and it's got the version of ffmpeg from the main repo on it (I think it was part of the restriced extras package). Video playback and video conversion works fine for me!

Have you enabled all of the repositories in your software sources settings?
I think if you go to 'system->administration->software sources' and ensure that the universe, multiverse and restricted repositories are enabled, that might solve the problem.

Also why are you trying to build ffmpg? What's wrong with the version in the main Ubuntu repository? Have you tried installing it using aptitude or synaptic yet? I have 9.04 on my old tablet PC and it's got the version of ffmpeg from the main repo on it (I think it was part of the restriced extras package). Video playback and video conversion works fine for me!

thank u honey!

actually i am working at remote client...so that i can't get desktop gui..

can u help me how to do using command for ur below instruction...

universe, multiverse and restricted repositories

then i will try and update the result...

Ah, I'm at work ATM, so I don't have a *nix machine handy.

But if memory serves the list of software sources is stored in

/etc/apt/sources.list

So you could perhaps try:

sudo {insert name of preferred command-line text editor here} /etc/apt/sources.list

e.g.

sudo nano /etc/apt/sources.list

Typically if the universe, multiverse and/or restricted repositories are disabled, their entries will be commented out in the file with a #. So to re-enable them you just need to remove the # character from the start of the lines they're listed on and then save the file.


Also, going back to your original post:
With regard to the build error you're getting, it looks like you need to specify the '--enable-nonfree' option somewhere.

Unfortunately, I'm still not 100% au-fait with the way that Linux/Unix software is built using configure and makefiles. So I'm not sure exactly where you need to specify this.

As a stab in the dark, perhaps when you run configure from the command line, you need to do something like this:

./configure --enable-nonfree

Otherwise it probably needs to be added to the configure script, or the makefile somewhere.

I'm still pretty lazy and wintarded with regard to the *nix build process. I tend to use CodeBlocks project files for most of my personal programming projects. The few other bit's of *nix software I've built from source using configure and makefiles have had simple dependencies, so I've had no reason to mess with any of the configuration or makefile scripts. But I really aught to knuckle down and learn more about the whole process at some point!

Cheers for now,
Jas.

OK. The reason I mentioned adding the repositories was because I thought that perhaps you didn't have the libfaac library on your machine. I was thinking that you were having trouble getting the libfaac library.

As mentioned in my previous post, after reading your first post again, it's obviously an error being reported by configure. The option --enable-nonfree needs to be specified somewhere to enable libfaac to be included in the build process....But as I said in my last post, I'm not sure where this needs to be specified.

However, now that you have the other repositories enabled, instead of building ffmpg from source, perhaps you could just use synaptic or aptitude to install the restricted extras package instead?
e.g.

sudo apt-get install ubuntu-restricted-extras

That should install the restricted extras (extra multimedia codecs and plugins etc), which will also install the ffmpg libraries which the gstreamer ffmpg plugin depends on.

The restricted extras package was all I needed to get ffmpg onto my Ubuntu 9.04 tablet! None of that building from source nonsense required. It may be worth a try!

Cheers for now,
Jas.

sorry brother ...

every thing was disappointing me...

can u give any url to start ffmpeg installation proprly and avoid irrtitation...

during installation this error also coming...

Couldn't find package libopencore-amrnb-dev

can u give any excellant guide to start and finish successfully!!!

Ah, still no luck eh?

Hmm, I think I'm just about out of ideas!
Like I said installing the restricted extras was all I needed to do to get ffmpg onto my tablet PC. I can't really think of anything else offhand.

Otherwise, you'll have to persist in your attempts to build ffmpg from source....Perhaps the Ubuntu forums might have some better answers for you!

Sorry, I've been unable to solve your problem! {epic fail!}

Cheers for now,
Jas.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.