Comments (13)
I have exactly the same issue, any progress on this problem?
from ffmpegmediaplayer.
Nope, but you may Paypal or flattr the author. Maybe that will make him
feel obliged to fix it? ;)
I'm flattring him, anyway.
2015-03-31 16:20 GMT+02:00 Hai Lu [email protected]:
I have exactly the same issue, any progress on this problem?
—
Reply to this email directly or view it on GitHub
#38 (comment)
.
XenoAmp - a media player with a difference • Demo on [image: YouTube]
YouTube http://www.youtube.com/watch?v=9O0xvDLw8Ek • Get it ftom Google
Play https://play.google.com/store/apps/details?id=pl.qus.xenoamp • Folow
it on Twitter https://twitter.com/XenoAmpMusic • Report bugs to XDA Thread
http://forum.xda-developers.com/showthread.php?t=1822492
[image: XenoBanner]
from ffmpegmediaplayer.
I haven't been responding to bug reports as of late since I've been in the middle of rewriting the entire FFmpeg portion of the code to improve buffering and to use OpenSLES instead of AudioTrack. While I do appreciate donations (because I spend an insane amount of time on this library for next to nothing) they aren't required to get an issue fixed. With that said, adding "me to" to bug reports generally irritates me and bumps that issue to the bottom of my priority list :)
from ffmpegmediaplayer.
I swear I didn't metoo it, man! :-)
31 mar 2015 20:19 "William Seemann" [email protected] napisał(a):
I haven't been responding to bug reports as of late since I've been in the
middle of rewriting the entire FFmpeg portion of the code to improve
buffering and to use OpenSLES instead of AudioTrack. While I do appreciate
donations (because I spend an insane amount of time on this library for
next to nothing) they aren't required to get an issue fixed. With that
said, adding "me to" to bug reports generally irritates me and bumps that
issue to the bottom of my priority list :)—
Reply to this email directly or view it on GitHub
#38 (comment)
.
from ffmpegmediaplayer.
Sorry, I just want to ask the status of this issue.
I've fixed this issue.
Reason: There are 2 methods that run in separate thread: player_prepare & player_decode. Your code only handle "player_decode" thread. Every time ffmpegplayer stop (call reset function), the pointer of state will be released, but "player_prepare" thread is still running. This thread try to use state pointer but address not mapped, so it throws signal 11 error.
Solution: Handle "player_prepare" thread, check state every time using it.
You can see source code here: https://gist.github.com/luhonghai/76e6a3de31f83bf80379
(Coffeecatch here: https://github.com/xroche/coffeecatch)
Sorry for my bad english. I hope it will be useful.
from ffmpegmediaplayer.
Whoa! Thanx a lot!
1 kwi 2015 11:58 "Hai Lu" [email protected] napisał(a):
Sorry, I just want to ask the status of this issue.
I've fixed this issue.
Reason: There are 2 methods that run in separate thread: player_prepare &
player_decode. Your code only handle "player_decode" thread. Every time
ffmpegplayer stop (call reset function), the pointer of state will be
released, but "player_prepare" thread is still running. This thread try to
use state pointer but address not mapped, so it throws signal 11 error.Solution: Handle "player_prepare" thread, check state every time using it.
You can see source code here:
https://gist.github.com/luhonghai/76e6a3de31f83bf80379(Coffeecatch here: https://github.com/xroche/coffeecatch)
Sorry for my bad english. I hope it will be useful.
—
Reply to this email directly or view it on GitHub
#38 (comment)
.
from ffmpegmediaplayer.
One more question. Since you're migrating to openal, I guess I will not be
able to use Android eq anymore, right? Does openal have its own effect
engine? Parametric eq, by any chance?
31 mar 2015 20:19 "William Seemann" [email protected] napisał(a):
I haven't been responding to bug reports as of late since I've been in the
middle of rewriting the entire FFmpeg portion of the code to improve
buffering and to use OpenSLES instead of AudioTrack. While I do appreciate
donations (because I spend an insane amount of time on this library for
next to nothing) they aren't required to get an issue fixed. With that
said, adding "me to" to bug reports generally irritates me and bumps that
issue to the bottom of my priority list :)—
Reply to this email directly or view it on GitHub
#38 (comment)
.
from ffmpegmediaplayer.
Just to note. If someone else like me gonna try to use @luhonghai fixed ffmpeg_mediaplayer.c (which seems to be really fixed, at lease I couldn't reproduce the bug again), you need to do couple things:
You need to recompile the project, so
- Clone it
- Execute (android update project --path . --target android-22) inside /fmp-library folder.
- Follow the instructions to update local.properties
- Replace ffmpeg_mediaplayer.c file inside /fmp-library/jni/player folder.
- Open ffmpeg_mediaplayer.h file and add this line
pthread_t prepare_thread;
inside State struct, so it looks like this
typedef struct State {
.......some code here
int loop;
pthread_t decoder_thread;
pthread_t prepare_thread;
int abort_request;
int paused;
.......some code here
}
-
Clone https://github.com/xroche/coffeecatch and copy coffeecatch.c, coffeecatch.h, coffeejni.c, coffeejni.h files inside /fmp-library/jni/player folder.
-
Open Android.mk file and edit LOCAL_SRC_FILES, so it looks like this
LOCAL_SRC_FILES := wseemann_media_MediaPlayer.cpp
mediaplayer.cpp
ffmpeg_mediaplayer.c
player.c
coffeecatch.c
coffeejni.c -
Now you will be able to compile the libraries and get all .so files. Yeeeiii (ノ◕ヮ◕)ノ*:・゚✧
from ffmpegmediaplayer.
@shliama Thanks for guideline. I have a problems when following step to recompile.
I got this errors.
[x86] Compile : ffmpeg_mediaplayer_jni <= coffeecatch.c /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:118:8: error: redefinition of 'struct _libc_fpreg' struct _libc_fpreg { ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:122:8: note: originally defined here struct _libc_fpreg { ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:124:8: error: redefinition of 'struct _libc_fpstate' struct _libc_fpstate { ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:127:8: note: originally defined here struct _libc_fpstate { ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:136:19: error: conflicting types for 'greg_t' typedef uint32_t greg_t; ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:119:13: note: previous declaration of 'greg_t' was here typedef int greg_t; ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:143:3: error: conflicting types for 'mcontext_t' } mcontext_t; ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:146:3: note: previous declaration of 'mcontext_t' was here } mcontext_t; ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:146:3: error: redeclaration of enumerator 'REG_GS' REG_GS = 0, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:97:3: note: previous definition of 'REG_GS' was here REG_GS = 0, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:147:3: error: redeclaration of enumerator 'REG_FS' REG_FS, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:98:3: note: previous definition of 'REG_FS' was here REG_FS, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:148:3: error: redeclaration of enumerator 'REG_ES' REG_ES, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:99:3: note: previous definition of 'REG_ES' was here REG_ES, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:149:3: error: redeclaration of enumerator 'REG_DS' REG_DS, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:100:3: note: previous definition of 'REG_DS' was here REG_DS, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:150:3: error: redeclaration of enumerator 'REG_EDI' REG_EDI, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:101:3: note: previous definition of 'REG_EDI' was here REG_EDI, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:151:3: error: redeclaration of enumerator 'REG_ESI' REG_ESI, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:102:3: note: previous definition of 'REG_ESI' was here REG_ESI, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:152:3: error: redeclaration of enumerator 'REG_EBP' REG_EBP, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:103:3: note: previous definition of 'REG_EBP' was here REG_EBP, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:153:3: error: redeclaration of enumerator 'REG_ESP' REG_ESP, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:104:3: note: previous definition of 'REG_ESP' was here REG_ESP, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:154:3: error: redeclaration of enumerator 'REG_EBX' REG_EBX, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:105:3: note: previous definition of 'REG_EBX' was here REG_EBX, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:155:3: error: redeclaration of enumerator 'REG_EDX' REG_EDX, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:106:3: note: previous definition of 'REG_EDX' was here REG_EDX, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:156:3: error: redeclaration of enumerator 'REG_ECX' REG_ECX, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:107:3: note: previous definition of 'REG_ECX' was here REG_ECX, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:157:3: error: redeclaration of enumerator 'REG_EAX' REG_EAX, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:108:3: note: previous definition of 'REG_EAX' was here REG_EAX, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:158:3: error: redeclaration of enumerator 'REG_TRAPNO' REG_TRAPNO, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:109:3: note: previous definition of 'REG_TRAPNO' was here REG_TRAPNO, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:159:3: error: redeclaration of enumerator 'REG_ERR' REG_ERR, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:110:3: note: previous definition of 'REG_ERR' was here REG_ERR, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:160:3: error: redeclaration of enumerator 'REG_EIP' REG_EIP, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:111:3: note: previous definition of 'REG_EIP' was here REG_EIP, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:161:3: error: redeclaration of enumerator 'REG_CS' REG_CS, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:112:3: note: previous definition of 'REG_CS' was here REG_CS, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:162:3: error: redeclaration of enumerator 'REG_EFL' REG_EFL, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:113:3: note: previous definition of 'REG_EFL' was here REG_EFL, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:163:3: error: redeclaration of enumerator 'REG_UESP' REG_UESP, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:114:3: note: previous definition of 'REG_UESP' was here REG_UESP, ^ /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:164:3: error: redeclaration of enumerator 'REG_SS' REG_SS, ^ In file included from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/signal.h:42:0, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/select.h:34, from /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:34, from /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni/player/coffeecatch.c:40: /Users/ak/devtools/adt-bundle-mac-x86_64/sdk/ndk/platforms/android-9/arch-x86/usr/include/sys/ucontext.h:115:3: note: previous definition of 'REG_SS' was here REG_SS, ^ make: *** [/Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/obj/local/x86/objs/ffmpeg_mediaplayer_jni/coffeecatch.o] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory /Users/ak/Documents/work/FFmpegMediaPlayer/gradle/fmp-library/library/src/main/jni
Do you have any clue?
from ffmpegmediaplayer.
@anop72 Hi, unfortunately I'm not that good with ndk, so I have no clue what this error-trace mean :(
But, maybe it connected with ndk version, I was using android-ndk-r8e for mac, and also everything that I was describing in the instruction was happening in the /fmp-library folder - not in /gradle/fmp-library (if it really matter)
from ffmpegmediaplayer.
@shliama I see. It my fault because wrong dir.
Everything fine and it's work!
from ffmpegmediaplayer.
@anop72 So what did you do to fix it? I'm getting exactly the same error.
from ffmpegmediaplayer.
This should be fixed in version 1.0.1.
from ffmpegmediaplayer.
Related Issues (20)
- Compile Error
- Is it possible play video h264 through udp(multicast) protocol? HOT 1
- Memory Leak in Android 6 when using FFmpegMediaPlayer
- how to use with Authentication URL? HOT 1
- Problem with build-ffmpeg.sh HOT 1
- Audio delay HLS
- Problem with v-7 nexus
- Prebuild aar for https support is rejected in google play store
- Error when instantiate HOT 1
- Crash
- Repo
- Demo app doesn't work HOT 2
- Demo does not work at all, both local and online video HOT 2
- How to show video on activity view?
- Audio is not matching with video.
- Device gets hot after a minute of playback.
- Unable to Play RTSP stream error thrown E/FFmpegMediaPlayer: Error (0,0)
- setDatasource
- How to play an MP4 encrypted with FFMPEG ? HOT 2
- Duplicate class wseemann.media.BuildConfig found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpegmediaplayer.