[FFmpeg-devel] FFmpeg for Mac

j at v2v.cc j
Wed May 20 21:15:28 CEST 2009

On 05/20/2009 07:48 PM, Ronald S. Bultje wrote:
> Hi,
> On Wed, May 20, 2009 at 1:27 PM, Neal Krawetz<ffmpeg at hackerfactor.com>  wrote:
>> /* Set a global that everyone else will use */
>> int     PianaEndianHost=BIG_ENDIAN;     /* big/Intel ; little/Motorola */
> [..]
>> Then all endian-specific code just needs to check this variable.
>>   if (JpegEndian == PianaEndianHost) ...
> Holy shit.
> You could just compile two binaries, ffmpeg-be and ffmpeg-le and have
> ffmpeg be a microscript/tool/... that forwards the complete
> commandline appropriately. That would not have any performance loss
> and not result in bigger binaries for either arch.
or just use the tools provided by apple to build a universal binary from 
those two binaries, its called lipo and is used like this:

lipo -create -arch ppc ffmpeg-ppc -arch i386 ffmpeg-i386 -output ffmpeg


More information about the ffmpeg-devel mailing list