[FFmpeg-devel] [HOWTO] Building FFmpeg for iPhone

Mahmut Akcay mahakcay
Sat Oct 3 17:48:12 CEST 2009


You can use the following sample:
http://klaus.geekserver.net/ming-video/test.flv

I'm not using ffmpeg command line for test, however,  you should be able to
reproduce it by converting the video into bmp files.
I've tested it on both 3GS and 3G with iPhone OS 3.1

Below are the configs that I've used:

Using gas preprocessor and arm arch:
--as='gas-preprocessor.pl
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.2.1'
--cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.2.1
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk
--disable-shared --enable-static --disable-debug --disable-ffmpeg
--disable-ffserver --disable-ffplay --disable-encoders
--enable-extra-warnings --enable-pthreads --enable-cross-compile
--target-os=darwin --arch=arm --cpu=arm1176jzf-s

Using cc arch (This config decodes pictures properly):
--cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.2.1
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk
--disable-shared --enable-static --disable-debug --disable-ffmpeg
--disable-ffserver --disable-ffplay --disable-encoders
--enable-extra-warnings --enable-pthreads --enable-cross-compile
--target-os=darwin --arch=cc --cpu=arm1176jzf-s


2009/10/3 M?ns Rullg?rd <mans at mansr.com>

> Mahmut Akcay <mahakcay at gmail.com> writes:
>
> > I've just tried the build instructions for iphone. It's working fine.
> >
> > There was a discussion about problems with decoding some codec on iphone
> > earlier this week. It was due to the patch from ffmpeg4iphone.
> > It seems that gas-preprocessor has the same issue. I've tried to play a
> flv
> > file and only got green screen with moving shadows. However, it's playing
> > well when compiled with "--arch=cc" flag.
>
> Can you provide a sample file and ffmpeg command line to reproduce the
> problem?  Is your iPhone a 3GS or something older?
>
> --
> M?ns Rullg?rd
> mans at mansr.com
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>



More information about the ffmpeg-devel mailing list