Reputation: 1165
i want to compile both x264 and ffmpeg with thread support for ANDROID .FFmpeg and x264 didn't compile with thread support even after enabling enable-pthreads and enable-threads respectively.
Both the config.h contains #define HAVE_THREAD 0 and #define HAVE_PTHREADS 0
1.How to compile with thread support. 2.Second question is that when i increase the gop size from 1 to some other value encoder returns 0 for certain subsequent frames.This causes a delay more than 3 to 5 seconds in vide playing
Upvotes: 0
Views: 3900
Reputation: 84
I'm using NDK9 standalone toolchain cross compile the last x264 library with thread support.
Here is my step. http://bashell.nodemedia.cn/archives/cross-complie-pthread-android-x264-library.html
Upvotes: 1
Reputation: 57203
See my patch for x264 here: https://mailman.videolan.org/pipermail/x264-devel/2013-March/009941.html
These two easy steps will also work for ffmpeg
Upvotes: 0
Reputation: 949
For the first part, maybe looking at how configure checks whether pthreads are supported is a good place to start? I saw a patch to autotools machinery in x264 that might help: http://mailman.videolan.org/pipermail/x264-devel/2012-April/009309.html
Upvotes: 0