Re: HOWTO: Install and use the latest FFmpeg and x264

I recently had problems converting flv files after following these instructions. If you have any troubles when using the --enable-shared options, try running `sudo ldconfig` which will make sure the proper libraries get loaded.

Re: HOWTO: Install and use the latest FFmpeg and x264

Hi FakeOutdoorsman.
I have almost completed the installation of ffmpeg and x264 following your instruction for Ubuntu 10.04, as my machine is running Ubuntu 10.04.1.
However, in the final stage of installing ffmpeg, the command line "hash x264 ffmpeg ffplay" failed, since "hash" command is not installed in my ubuntu. I double checked with "which hash" and "whereis hash". This hash process is not vital, I believe. But problem is ffmpeg is not installed. "whereis ffmpeg" returns nothing. The rest of the products, lame qt-faststart vpxdec vpxenc x264 have been installed in /usr/local/bin.

Should I execute "make install" in the ffmpeg source directory?
I wonder I have done something strange, as no one seems to have this problem.
Also how can I get "hash" command for Ubuntu? Do you have any idea why my Ubuntu does not have one? I am running the default shell, which is I think bash.
Thank you for your detailed guide.

Re: HOWTO: Install and use the latest FFmpeg and x264

Sorry for the late reply. I was out of town for a week with no computer access.

Originally Posted by powersaver

However, in the final stage of installing ffmpeg, the command line "hash x264 ffmpeg ffplay" failed, since "hash" command is not installed in my ubuntu. I double checked with "which hash" and "whereis hash". This hash process is not vital, I believe.

hash shouldn't require any additional tasks by the user to enable it because it is included in the bash shell, and by default, Ubuntu should be using the bash shell. Can you make sure you're using bash?

Code:

$ echo $SHELL
/bin/bash

Originally Posted by powersaver

But problem is ffmpeg is not installed. "whereis ffmpeg" returns nothing. The rest of the products, lame qt-faststart vpxdec vpxenc x264 have been installed in /usr/local/bin.

Re: HOWTO: Install and use the latest FFmpeg and x264

Here's a handy tip - if you haven't followed this howto and just have good old ordinary ffmpeg, and need to extract 5.1 (6) channel AAC audio to 2 channel audio from an mkv file. Most howtos about doing this expect compilation from source!

Install faad from the repositories

Identify the track number of the audio you want:

Code:

mkvmerge -i input.mkv

(in this case "2")

then extract the audio using mkvextract:

Code:

mkvextract tracks input.mkv 2:input.aac (was ac3)

then run it on the aac (was ac3) file as follows:

Code:

faad -d -o output.wav input.aac (was ac3)

You can now encode the resultant wav file to you desired format, and then stick it back into the mkv if you want: e.g.

Code:

mkvmerge -o output.mkv input.mkv stereo.mp3

Last edited by Jose Catre-Vandis; December 13th, 2010 at 02:54 PM.
Reason: In recognition of the two following posts about ac3/aac - point is, it works regardless of the audio file extension