rifaet / ffmpeg4iphone

Automatically exported from code.google.com/p/ffmpeg4iphone
0 stars 0 forks source link

How can I build the libtheora and libx264 successfully #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, yonas.yanfa,
I downloaded ffmpeg r16240 and tried to compile the ffmpeg as you said.

For x264, i got it from http://svn.telesphoreo.org/trunk/data/ffmpeg_, and
built it sucessfully, but the ffmpeg-r16240 said it's version too lower.
So, I got new tarball (20081228), but I failed to compile.

For theora, I still failed to compile .

So, I wonder how you build  libtheora and libx264 successfully

By the way , I can build successfully the ffmpeg r13020 from
svn.telesphoreo.org 

What version of the product are you using? On what operating system?

rhel 5 

Please provide any additional information below.

Original issue reported on code.google.com by wrt.su...@gmail.com on 13 Jan 2009 at 7:53

GoogleCodeExporter commented 8 years ago
Hi Sunli,

You can build libx264 with configure-libx264.

You need to build and install libogg before building libtheora. Use 
configure-ogg and
configure-theora.

Eg.
1. ./configure-ogg
2. make
3. sudo make install

The libraries will be installed in 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneOS2.1.sdk/usr/lib

and the headers in
/usr/local/include

I built these on Mac OSX 10.5.5 using iPhone SDK 2.1.

Original comment by yonas.ya...@gmail.com on 15 Jan 2009 at 4:04

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks, yonas.yanfa,

It works!

I built it using rhel5 + iPhone SDK 2.1 + iphonedev toolchain 
(arm-apple-darwin9)

It seems that there is a bug in libswscale/swcale.c for ffmpeg revsion 16240. 

The swscale.c uses PIX_FMT_VDPAU_H264, but it does not defined in ffmpeg 
r16240. I
comment it out, so the building  works.

Original comment by wrt.su...@gmail.com on 18 Jan 2009 at 5:10

GoogleCodeExporter commented 8 years ago

Original comment by yonas.ya...@gmail.com on 6 Feb 2009 at 7:40