Using ffmpeg on iOS

I understand that you use to use FFmpeg in an iOS application. / configure and make to generate the .a files that you add to the project.

My question is: as soon as .a files appear in the project navigator and in the "Linking binaries to libraries" section, how do you actually use them in your classes ?, I see that the "frames" are not used in #import, so I I don’t know how to access the methods and properties of classes.

0
source share
2 answers

You just need to import the header files (.h) into your implementation files (.m) and continue. As an example:

#import "avformat.h"

// Some code goes here

    /*
     *   avformat_open_input(AVFormatContext **ps, const char *filename, AVInputFormat *fmt, AVDictionary **options)
     */
    int openInputValue = avformat_open_input(&pFormatCtx, utf8FilePath, inputFormat, nil);
    NSLog(@"%s - %d # openInputValue = %d", __PRETTY_FUNCTION__, __LINE__, openInputValue);
+1
source

.a , , objc-c - .m/.mm, -.h, C/++, , , (.h).

0

All Articles