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

Originally Posted by OKComputerQ

Thanks for the reply

Yes you are right , but I'm following exactly what it says in the tutorial given here (using git). And also I can't even make it to the ffmpeg step due to this problem occurring in make x264 . I did however got past this step in my previous attempts , then only ffmpeg was causing problems , but now I could not even reach there

Try

sudo apt-get purge ffmpeg

and then attempt to build x264 again. I have a feeling that there may have been a copy of FFmpeg 0.6 installed previously, and the 'remove' step didn't flush all of it out. Also, if any part of a make process fails, it tends to be a good idea to run 'make distclean' before running ./configure again. Otherwise you could get remnants from previous failed build attempts.

From a different angle, I would hope I'm wrong, but it could be due to the 'bulk' of the FFmpeg build that x264 is trying to link against. Some git commits from this past April mention an opt.h, but I don't know if it's related to this issue. You could try to build a stripped-down version of FFmpeg *first*, then build x264 (which will detect FFmpeg), then uninstall FFmpeg and install a proper, full version. For cleanliness reasons, you can install the minimal FFmpeg to a custom area, which won't mess with the system.

This is what I do since none of the encoders or muxers in FFmpeg are necessary for x264's lavf support to function (along with inflating FFMS2 the same way, and needing to link even more stuff in the process).

If you want to try the minimal FFmpeg->x264->full FFmpeg option, then see if this works:

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

Originally Posted by qyot27

Try

sudo apt-get purge ffmpeg

and then attempt to build x264 again. I have a feeling that there may have been a copy of FFmpeg 0.6 installed previously, and the 'remove' step didn't flush all of it out. Also, if any part of a make process fails, it tends to be a good idea to run 'make distclean' before running ./configure again. Otherwise you could get remnants from previous failed build attempts.

From a different angle, I would hope I'm wrong, but it could be due to the 'bulk' of the FFmpeg build that x264 is trying to link against. Some git commits from this past April mention an opt.h, but I don't know if it's related to this issue. You could try to build a stripped-down version of FFmpeg *first*, then build x264 (which will detect FFmpeg), then uninstall FFmpeg and install a proper, full version. For cleanliness reasons, you can install the minimal FFmpeg to a custom area, which won't mess with the system.

This is what I do since none of the encoders or muxers in FFmpeg are necessary for x264's lavf support to function (along with inflating FFMS2 the same way, and needing to link even more stuff in the process).

If you want to try the minimal FFmpeg->x264->full FFmpeg option, then see if this works:

Thank you very much qyot27!!! You just resolved my issue . I did the minimum install and followed your instructions and it worked! Now I just need to setup OpenCV to get my development working ! You rock man

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

Originally Posted by andrew.46

Indeed I did not notice that presets-libavcodec52-v6.xml is packaged in /usr/share/winff/ . You will not need the sed command though as this change is already present in the preset. So to modify your command slightly:

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

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

Hi, i am using ubuntu 9.10, i am trying to get mp4box to support x264 for ipad mp4 files, but i dont have a clue what im doing, can someone give me a step by step tutorial to config this via the terminal of ubuntu 9.10.

i dont know if this help but their is an example of my current output:

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

Originally Posted by bflag

I'm using Ubuntu 11.04 and was having difficulty encoding in x264 format from Handbrake using the AppleTV 2 preset. I kept getting a Segmentation Fault about 10% into the encode. I followed FakeOutdoorsman's instructions and attempted to encode the video directly from ffmpeg...But, I kept getting a Segmentation Fault.

Handbreak and FFmpeg (that you compiled from this guide) are both giving you a seg fault? Does FFmpeg from the repository give you a seg fault too?

I just did it and I'm delighted to report that all my recently-encoded ffmpeg-x264 encoded mp4's now play perfectly in Mplayer. All the old ones play fine too.

FWIW, I'm actually using Ricardo Villalba's SMPlayer, an excellent QT-based front end for Mplayer. IMHO, it's probably one of the finest (and easiest to use) media players for this type of file - especially now I've figured out how to fix the aspect ratio issue. lol.

Anyway Jose, I'd be very interested to know if this fixes the issue for you too?

Best wishes, G.

Originally Posted by Jose Catre-Vandis

Followed guide successfully on Xubuntu 11.04. Everything works fine. Have an odd problem with mp4 playback using mplayer (no-gui).

If I encode a bit of recorded tv (.ts file, PAR 64:45, DAR 16/9) using the first crf example, the encode works fine and retains the PAR and DAR, but when I go to playback in mplayer (nothing in config file) mplayer seems to think the video has an aspect ratio of 2.53:1, making a wide thin video.

If I encode using the same command line but replace with mkv instead of mp4, mplayer plays back at the correct aspect of 16/9.

mplayer plays back avi/xvid (encoding the same piece of recorded tv) at the correct aspect ratio.

Screen is a 1920x1080 24". No similar problems on 10.04 LTS

I can fix this with a profile in mplayer's config:

Code:

[extension.mp4]
profile-desc="Profile for HD mp4 files"
aspect="16/9"

but this will affect all mp4 extensions.

If I use parole, I have to use the "none" setting in Aspect menu to get the correct resolution.

Can anyone shed any light on this issue? I have tried encoding with all sorts of different parameters but with no success.

There is a theory that if ever anyone discovers what the Universe is for and why it is here, it will instantly disappear and be replaced with something even more bizarre and inexplicable. There is another theory that this has already happened. [D.A.]