wseemann / FFmpegMediaMetadataRetriever

FFmpegMediaMetadataRetriever provides a unified interface for retrieving frame and meta data from an input media file.
1.72k stars 387 forks source link

I want to add an interface! #154

Closed trycatchx closed 6 years ago

trycatchx commented 7 years ago

I want to add the interface, and then I downloaded the source and found it less ffmpeg source? Can you send me a ffmpeg source code?

trycatchx commented 7 years ago

I downloaded the latest source code of ffmpeg,and I Compile it, I get this exception : G:/FFmpegMediaMetadataRetriever-1.0.14/fmmr-library/library/src/main//jni/metadata/wseemann_media_MediaMetadataRetriever.cpp:504: error: undefined reference to 'av_register_all()'

How to fix it?

trycatchx commented 7 years ago

i modified wseemann_media_MediaMetadataRetriever.cpp old code:

#include <mediametadataretriever.h>
extern "C" {
    #include "ffmpeg_mediametadataretriever.h"
}

Modified code:

extern "C" {
 #include "mediametadataretriever.h"
 #include "ffmpeg_mediametadataretriever.h"
}

the same to mediametadataretriever.cpp

Finally, I solved it.