tag:blogger.com,1999:blog-55564945108682262.post790960667956423247..comments2023-08-08T08:24:24.818+02:00Comments on Digital (dis)content: HOWTO: compiling ffmpeg + x264 + MP3 + Xvid + AMR on UbuntuAnonymoushttp://www.blogger.com/profile/07878729502793140294noreply@blogger.comBlogger45125tag:blogger.com,1999:blog-55564945108682262.post-21245429573245080832012-03-22T21:55:36.880+01:002012-03-22T21:55:36.880+01:00very good article. I'm using Fedora 16. I used...very good article. I'm using Fedora 16. I used this command (as root) to register the shared objects after building ffmpeg:<br />echo /usr/local/lib >> /etc/ld.so.conf<br /><br />ldconfig<br /><br />it also helps to add the rpmfusion repository for things like libgpc<br /><br />(as sudo)<br />rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm<br /><br />if you keep getting build errors, remember that some items need both the package, and the development package. in this article, you're instructed to install libgpac, which for fedora (with the rpmfusion repository) is yum install gpac (not libgpac). you can also install gpac-devel which is the development package for gpac. For some packages, this can resolve your configure / make errors. Just add -devel to the end of your package name.Anonymoushttps://www.blogger.com/profile/04708273143099470043noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-27816071189169812492010-02-18T17:10:16.324+01:002010-02-18T17:10:16.324+01:00Hi,
In Karmic, I had to do
touch /etc/ld.so.no...Hi,<br /><br />In Karmic, I had to do<br /><br /> touch /etc/ld.so.nohwcap<br /><br />before updating the ldconfig cache. Seems to be related with this:<br /><br />https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/384764Cuihtlauachttps://www.blogger.com/profile/18267169219188210342noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-71701677919406655862010-01-24T17:11:59.625+01:002010-01-24T17:11:59.625+01:00Hi,
just adding my experience, after re-compiling...Hi,<br /><br />just adding my experience, after re-compiling ffmpeg for second time I got stuck in a message that said something like: libavcodec/libavcodec.so: undefined reference x264_encoder_open_83 . <br /><br />So I followed tips at first comments by removing files libav*.a and libav*.so inside /usr/lib. That wasn't enough and I needed to make distclean inside ffmpeg directory and also inside x264 directory. Thanks.Danihttps://www.blogger.com/profile/12808681592189175279noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-32063896372422270202010-01-22T09:05:07.289+01:002010-01-22T09:05:07.289+01:00My mistake. its working now. !! Thanks for ur deta...My mistake. its working now. !! Thanks for ur detailed post. it helped me to get stuff installed in correct way !<br /><br />[root@tv2 mp4]# ffmpeg -i kiss.mp4 -acodec libopencore_amrnb -ab 12.2k -ar 8000 -ac 1 -vcodec h263 -s qcif movie.3gp<br />FFmpeg version SVN-r21363, Copyright (c) 2000-2010 Fabrice Bellard, et al.<br /> built on Jan 22 2010 12:22:46 with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)<br /> configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-shared --enable-postproc --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3<br /> libavutil 50. 7. 0 / 50. 7. 0<br /> libavcodec 52.48. 0 / 52.48. 0<br /> libavformat 52.47. 0 / 52.47. 0<br /> libavdevice 52. 2. 0 / 52. 2. 0<br /> libswscale 0. 9. 0 / 0. 9. 0<br /> libpostproc 51. 2. 0 / 51. 2. 0<br /><br />Seems stream 0 codec frame rate differs from container frame rate: 30.00 (30/1) -> 15.00 (15/1)<br />Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'kiss.mp4':<br /> Metadata:<br /> major_brand : isom<br /> minor_version : 512<br /> compatible_brands: mp41<br /> encoder : 3GP_Converter051103 www.nurs.or.jp/~calcium FFmpeg2.40b((49<<16)+(1<<8)+0)<br /> encoder-eng : 3GP_Converter051103 www.nurs.or.jp/~calcium FFmpeg2.40b((49<<16)+(1<<8)+0)<br /> Duration: 00:00:27.00, start: 0.000000, bitrate: 352 kb/s<br /> Stream #0.0(und): Video: h264, yuv420p, 176x144, 221 kb/s, PAR 12:11 DAR 4:3, 15 fps, 15 tbr, 90k tbn, 30 tbc<br /> Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 127 kb/s<br />Output #0, 3gp, to 'movie.3gp':<br /> Stream #0.0(und): Video: h263, yuv420p, 176x144 [PAR 12:11 DAR 4:3], q=2-31, 200 kb/s, 15 tbn, 15 tbc<br /> Stream #0.1(und): Audio: libopencore_amrnb, 8000 Hz, 1 channels, s16, 12 kb/s<br />Stream mapping:<br /> Stream #0.0 -> #0.0<br /> Stream #0.1 -> #0.1<br />Press [q] to stop encoding<br />frame= 405 fps=213 q=2.3 Lsize= 841kB time=26.78 bitrate= 257.4kbits/s <br />video:790kB audio:42kB global headers:0kB muxing overhead 1.148057%<br />[root@tv2 mp4]# ffmpeg -i kiss.mp4 -acodec libopencore_amrnb -ab 12.2k -ar 8000 -ac 1 -vcodec h263 -s qcif movie.3gp<br /><br />Cheers,<br />Mahendrayumhttps://www.blogger.com/profile/05791647606471977444noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-51069550806449513142010-01-22T08:41:09.762+01:002010-01-22T08:41:09.762+01:00I 've installed ffmpeg with opencore-amr-nb wb...I 've installed ffmpeg with opencore-amr-nb wb codec . Cmd is :<br />cd ffmpeg <br />./configure --prefix=/usr/local --enable-gpl --enable-nonfree --enable-shared --enable-postproc --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3<br /><br /><br /><br />installation done properly with make & make install..<br /><br />now i wanted to convert mp4, mpeg, avi file to 3gp with audio as amr ! <br /><br />[root@tv2 mp4]# ffmpeg -i saathiya.mp4 -ab 8.85k -acodec opencore-amrwb -ac 1 -ar 16000 -vcodec h263 -s qcif s.3gp<br />FFmpeg version SVN-r21363, Copyright (c) 2000-2010 Fabrice Bellard, et al.<br /> built on Jan 22 2010 12:22:46 with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)<br /> configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-shared --enable-postproc --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3<br /> libavutil 50. 7. 0 / 50. 7. 0<br /> libavcodec 52.48. 0 / 52.48. 0<br /> libavformat 52.47. 0 / 52.47. 0<br /> libavdevice 52. 2. 0 / 52. 2. 0<br /> libswscale 0. 9. 0 / 0. 9. 0<br /> libpostproc 51. 2. 0 / 51. 2. 0<br />Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'saathiya.mp4':<br /> Metadata:<br /> major_brand : isom<br /> minor_version : 512<br /> compatible_brands: mp41<br /> title : saathiya<br /> encoder : Lavf52.2.0<br /> Duration: 00:03:01.30, start: 0.000000, bitrate: 162 kb/s<br /> Stream #0.0(und): Video: mpeg4, yuv420p, 128x96 [PAR 1:1 DAR 4:3], 123 kb/s, 10 fps, 10 tbr, 10 tbn, 10 tbc<br /> Stream #0.1(und): Audio: aac, 22050 Hz, mono, s16, 37 kb/s<br />Unknown encoder 'opencore-amrwb'<br /><br /><br />surprizing result !!! dont fine opencore-amrwb .. i tried with multiple options.. no useyumhttps://www.blogger.com/profile/05791647606471977444noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-61718322435686756572009-11-22T11:20:14.680+01:002009-11-22T11:20:14.680+01:00I've made a similar post on this. I needed ff...I've made a similar post on this. I needed ffmpeg with aac on ubuntu on ps3. I didn't need amr. My copy-and-pastable commands and debs are available at<br /><br />http://nabstersblog.blogspot.com/2009/05/ffmpeg-with-aac-on-ubuntu.htmlnabsterhttps://www.blogger.com/profile/09015291232518294533noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-34608520713079437762009-11-14T14:33:07.654+01:002009-11-14T14:33:07.654+01:00Who knows where to download XRumer 5.0 Palladium? ...Who knows where to download XRumer 5.0 Palladium? <br />Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-37323070127885935342009-10-25T19:45:51.324+01:002009-10-25T19:45:51.324+01:00Hi
Many thanks for the great How-To. Everything wo...Hi<br />Many thanks for the great How-To. Everything works great.<br />Unfortunately I'm having problems with installing services that require libav. I re-installed a service called mt-daapd which can publish a specific folder to appear as a Shared Library in iTunes. This package depends on libavcodec, libavcodec52 and libavutil49. Those libs get installed in /usr/lib. As soon as they are there, ffmpeg is broken. I get this eraror message: ffmpeg: symbol lookup error: /usr/local/lib/libavdevice.so.52: undefined symbol: avfreepacket I really do not know what is going on as it points to the correct lib in /usr/local/lib. There must be a problem with library linking or something, I guess. I am no Ubuntu expert, but shouldn t it be possible for local libs to co-exist with system wide libs? When I uninstall libavcodec libs from /usr/lib and re-install ffmpeg, it is working again. But that automatically removes mt-daapd. I guess the same would happen if I d install any other package (like vlc...) that is dependent on those libav*-libs in /usr/lib Can you see my dilemma? This is driving me nuts as I can t find a solution for this. How can I tell mt-daapd to use the libraries in /usr/local/lib and don`t install its dependencies?<br /><br />Any help or advice would be highly appreciated. Thankscavetrollhttps://www.blogger.com/profile/11173423313988770768noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-40558691980141996492009-10-17T11:31:05.835+02:002009-10-17T11:31:05.835+02:00Thank you Julien for sharing this, I wish I spotte...Thank you Julien for sharing this, I wish I spotted your guide last night but fortunately ldconfig is a very good friend of mine.<br /><br />Your other x264 adventures look 'really' interesting, I'll definitely be needing to look at those very soon :)<br /><br />ps You're linkedin but no twittered ?shaf*https://www.blogger.com/profile/12421142659101846753noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-10015720786678065902009-08-22T20:52:49.739+02:002009-08-22T20:52:49.739+02:00I think I fixed it...
svn checkout svn://svn.ffmp...I think I fixed it...<br /><br />svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk libswscale<br /><br />then copied the file common.h from ~/temp/libswscale/libavutil to ~/temp/ffmpeg/libavutil<br /><br />make seems to have had succeeded.orangesnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-23942933140241906252009-08-22T19:52:38.106+02:002009-08-22T19:52:38.106+02:00Hi,
When I run make for ffmpeg I get the error:
/...Hi,<br /><br />When I run make for ffmpeg I get the error:<br />/ffmpeg/libswscale/libswscale.so: undefined reference to `av_clip_uint16'<br />collect2: ld returned 1 exit status<br />make: *** [ffmpeg_g] Error 1<br /><br />Any ideas?<br /><br />TIA!orangesnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-70859026296875689552009-07-30T04:02:10.937+02:002009-07-30T04:02:10.937+02:00A way to get around the use of opencore-amr (which...A way to get around the use of opencore-amr (which was problematic to build on 9.04) is to revert to revision 19071 (rather than the latest).<br /><br />svn checkout -r 19071 svn://svn.ffmpeg.org/ffmpeg/trunk ffmpegTuxDBirdhttps://www.blogger.com/profile/09804779328208128953noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-77911578215376028692009-07-20T16:58:11.155+02:002009-07-20T16:58:11.155+02:00was trying the ./cfg that you had and there was 4 ...was trying the ./cfg that you had and there was 4 lib's not there<br />--enable-libamr-nb --enable-libamr-wb --enable-libdc1394 --enable-libgsm<br /><br />this took care of the libamr<br />ubuntu% Wget http://debian-multimedia.org/pool/main/o/opencore-amr/opencore-amr_0.1.1.orig.tar.gz<br />ubuntu% tar xvfz opencore-amr_0.1.1.orig.tar.gz<br />ubuntu% cd opencore-amr-0.1.1.orig<br />ubuntu% make<br />ubuntu% sudo make install<br /><br />I had to chang there switches to<br />--enable-libopencore-amrnb --enable-libopencore-amrwb <br />and i added --enable-version3<br /><br />i got the other 2 just dont rember how thou.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-75616743908852233582009-06-20T20:40:06.177+02:002009-06-20T20:40:06.177+02:00Hey, how ya doin'?
I was following your guide...Hey, how ya doin'?<br /><br />I was following your guide, then I found out that it is possible to compile it as a .deb package, via the 'sudo checkinstall -D make install' command instead of the classical 'make && sudo make install'. This saves a lot of time if you need to re-install your distro for some reason.<br /><br />Thanks for this guide!Anonymoushttps://www.blogger.com/profile/03475105714536413064noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-58448358993975229712009-05-02T06:33:00.000+02:002009-05-02T06:33:00.000+02:00Not only a nice howto but a good tutorial. Thanks...Not only a nice howto but a good tutorial. Thanks. For Jaunty Jackalope, I got the following error:<br /><br />ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avformat_alloc_context<br /><br />This was fixed by removing --enabled-shared from the configure.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-45896246420206075182009-03-19T02:41:00.000+01:002009-03-19T02:41:00.000+01:00I would just like to include that if you are follo...I would just like to include that if you are following these steps to eventually build vlc, you will want to use a snapshot of x264 that is not so current. I was successful when I used:<BR/><BR/>wget http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20090101-2245.tar.bz2<BR/><BR/>(suggestion given by maurixio in the comments of the compiling vlc post)<BR/><BR/>Maybe this blog post should be updated to use that rather than whats in git.Timhttps://www.blogger.com/profile/09874153517169674629noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-53128875416153251122009-03-09T16:43:00.000+01:002009-03-09T16:43:00.000+01:00Hi Alex! Thanks, you beat me to it :) I updated th...Hi Alex! Thanks, you beat me to it :) I updated the entry.Anonymoushttps://www.blogger.com/profile/07878729502793140294noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-46351892998115927292009-03-09T14:42:00.000+01:002009-03-09T14:42:00.000+01:00I'm thankful for the help I received using this gu...I'm thankful for the help I received using this guide :) Great work !!<BR/>Just wanted to add that swscale now is enbled by default so you should exclude the --enable-swscale when configuring.<BR/><BR/>I was haunted by old libav* so be sure to clean up before starting. <BR/>Cheers !!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-41519446509070037312009-02-11T12:02:00.000+01:002009-02-11T12:02:00.000+01:00@Magnus: the easiest and most foolproof solution i...@Magnus: the easiest and most foolproof solution is to set LD_CONFIG_PATH in you.cshrc file (or equivalent, depending on what shell you use) :)Anonymoushttps://www.blogger.com/profile/07878729502793140294noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-38775695531630763042009-02-10T19:35:00.000+01:002009-02-10T19:35:00.000+01:00Okay, revisiting this one again. It all works when...Okay, revisiting this one again. It all works when it works, but when it doesn't, which is after every reboot and sometimes just randomly, i have to do the LD_LIBRARY_PATH thingy. I'd rather not have to do that every so often... Any idea what the problem could be?Unknownhttps://www.blogger.com/profile/02045682528806035349noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-33936280822394102932009-02-06T10:41:00.000+01:002009-02-06T10:41:00.000+01:00Thanks man..Your tutorial is very good..Congratula...Thanks man..<BR/><BR/>Your tutorial is very good..<BR/><BR/>Congratulations..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-30968411952961787332009-01-20T20:59:00.000+01:002009-01-20T20:59:00.000+01:00For me the problem with the aspect ratio returns a...For me the problem with the aspect ratio returns after rebooting.<BR/><BR/>since i couldn't find a solution i keep repeating the steps. <BR/><BR/>Any ideas?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-75590810196694725602009-01-20T17:19:00.000+01:002009-01-20T17:19:00.000+01:00@sascha: LOL. Glad I could help :)@sascha: LOL. Glad I could help :)Anonymoushttps://www.blogger.com/profile/07878729502793140294noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-13613180012467045822009-01-20T17:15:00.000+01:002009-01-20T17:15:00.000+01:00I owe you a beer or better. Your great howto saved...I owe you a beer or better. Your great howto saved me a lot of time and my a** at least. Thank you so much!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-49333467903800891772009-01-19T04:15:00.000+01:002009-01-19T04:15:00.000+01:00Hey anonymous, I rebuilt nut using his solution, a...Hey anonymous, <BR/><BR/>I rebuilt nut using his solution, and it works. thanks a lot man!<BR/><BR/>EdAnonymousnoreply@blogger.com