Last edited by mocha; September 29th, 2008 at 01:07 AM.
I was a Gentoo freak, so I'm used to doing manual stuff. I used to "fine tune" my laptop to the point that all the system was running with the bleeding edge and all compiled for my processor and stuff. Well, I left Gentoo for server setups and changed to Ubuntu on my laptop after 5 years, because "it just works" is what I need. Well I see that some stuff you still need to do manually on Ubuntu. Well even on Mac OS X right?
Ok, I did the "Reverting Changes Made by This Tutorial" steps and deinstalled Avidemux again. My system was clean, and started this howto all over. When the Synaptic updates daemon told me there were "downgrades" for x264, ffmpeg and Avidemux, I opened synaptic (im using that) and I searched for each one of them, and blocked their versions. That did it.
I would advice you specify this "package blocking" as step #7 if you like, for Ubuntu newbies like me. For fixing the mess I did I had to "learn" to use Aptitude, because Synaptic stopped responding. It seems Aptitude is more powerful than Synaptic for some tasks. For not going into many details, just after doing this howto, go immediately to Synaptic, search for ffmpeg, x264, avidemux and avidemux-common, and block their versions.
Also, a good way to start this HOWTO is by removing first ffmpeg and x264 with all dependencies, any programs that might use them with Synaptic. If you are planning on using Avidemux, make sure you FIRST install mplayer or SMPlayer, which installs Mencoder and all utilities for Avidemux to use. If you want to "clean" it more, execute also the "Reverting Changes Made by This Tutorial" commands, and then start it for the beginning.
My laptop is working great now. This should just work on a Ubuntu 8.04 LTS by following the steps.
Thanks for sharing this howto.
Last edited by piratec; September 29th, 2008 at 11:27 PM.
Thanks for the suggestions. I'll update the tutorial this weekend.
Many thanks for this I finally found the time and the "balls" to give this a go.
findings of a newbie scaredycat
step 1 'uninstall x264 and ffmpeg'.. ok Im assuming apt-get remove x264 etc is the same thing?
step 3 Yasm
ok its asking me
ummm Im lost? for the record I typed in yasmhelpCode:sudo checkinstall checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran This software is released under the GNU GPL. The package documentation directory ./doc-pak does not exist. Should I create a default set of package docs? [y]: y Preparing package documentation...OK Please write a description for the package. End your description with an empty line or EOF.
it created a deb file
so what do I do now? i understand it as saying its installed so I guess I just go on to step 4Code:Done. The new package has been installed and saved to /home/mark/yasm-0.7.1/yasm_0.7.1-1_i386.deb You can remove it from your system anytime using: dpkg -r yasm
Step4- similar understanding
Step 6-the wheel falls off?
svn ffmpeg works untill...
and thuis the ./configure fails because libswscale is missingCode:Fetching external item into 'ffmpeg/libswscale' svn: Unknown hostname 'svn.mplayerhq.hu'
at this point I go to bed
what to do next?
ahh but b4 i do i tried
then ./configure.......etcCode:git clone git://git.mplayerhq.hu/libswscale/
which worked up untill
now I am lostCode:libavcodec/libx264.c: In function ‘X264_init’: libavcodec/libx264.c:230: error: ‘struct <anonymous>’ has no member named ‘b_bidir_me’ libavcodec/libx264.c:231: error: ‘struct <anonymous>’ has no member named ‘b_bframe_rdo’ make: *** [libavcodec/libx264.o] Error 1
Last edited by vector; October 2nd, 2008 at 02:02 PM.
Don't worry, I have come to the same thing. Its the latest svn so I think its just broken.
libavcodec/libx264.c: In function ‘X264_init’:
libavcodec/libx264.c:230: error: ‘struct <anonymous>’ has no member named ‘b_bidir_me’
libavcodec/libx264.c:231: error: ‘struct <anonymous>’ has no member named ‘b_bframe_rdo’
make: *** [libavcodec/libx264.o] Error 1
either ffmpeg libx264.c is borked or its the x264 thats broken, im going to try and use an earlier snapshot of x264 and try compiling ffmpeg again.
x264 updated its API, ffmpeg hasn't updated its libx264.c to compensate. Either fix ffmpeg's libx264.c (patch is available on the ffmpeg-devel ML as "[FFmpeg-devel] [PATCH] Update ffmpeg for libx264 core 65"), bug Michael or mru repeatedly until he fixes it, just go there and drop the two problematic lines of C code yourself, or use a version of x264 before r996.
The way the API change affects the commandline options you should use is detailed here.
Last edited by Dark Shikari; October 2nd, 2008 at 07:18 PM.
Link to the ML Thread.
removed my x254 install and grabbed the latest snapshot (as opposed to an earlier one, was updated last night) x264-snapshot-20081001. Compiled and installed x264 and then compiled latest svn ffmpeg... compiled fine and im encoding something as we speak. See how it goes.
Last edited by zcold; October 2nd, 2008 at 07:12 PM. Reason: update
Also, the trunk of ffmpeg is perpetually stable; there is no separate "stable version", contrary to what Debian, Ubuntu, and most Linux distros seem to think sometimes
(of course, this doesn't mean things don't break, it just means that there is nothing more stable than the main branch)