kewlbear / FFmpeg-iOS-build-script

Shell scripts to build FFmpeg for iOS and tvOS
3.03k stars 897 forks source link

Mac OSX build #77

Closed 0x1306a94 closed 8 years ago

0x1306a94 commented 8 years ago

How do I compile, can use the Mac OSX platform

oozoofrog commented 8 years ago

@king129 You can download static build of ffmpeg for osx from here or from homebrew doesn't need compile youself.

may be neccessary to build, just with own options to build anyway. have nothing limitation(almost, i think) on osx.

0x1306a94 commented 8 years ago

@singcodes I386 x86_64 both architecture should be corresponding to the big Mac OSX both 32-bit and 64 - bit

Website provides the executable file In OSX platform As if can only be used to simulation terminal NSTask this

rorlich commented 8 years ago

How can i use this script to compile for OSX library which i can use from xcode ?

kewlbear commented 8 years ago

You don't need this script for macOS. Just do ./configure; make install. You may need to install some tools though.

0x1306a94 commented 8 years ago

@kewlbear @rorlich I use this (FFmpeg-iOS-build-script) script compile the i386 x86_64 Then import Mac OSX project The project more successful compilation, and running There was a problem but using ffmpeg decoding

if (avformat_open_input(&pFormatCtx, [path UTF8String], NULL, NULL) != 0) {
        // This step would have failed video file is normal All can use in iOS ffmpeg decoding
        NSLog(@"Failed to open the file");
        return;
    }
kewlbear commented 8 years ago

It doesn't seem to be related with the script. But you should check error code.