youtube / yt-watchme

340 stars 134 forks source link

java.lang.UnsatisfiedLinkError .android.apps.watchme.Ffmpeg.init #38

Open TestingRaj opened 8 years ago

TestingRaj commented 8 years ago

Hi their , Upon implementing the api for live streaming I came across the following issue/ error would be of huge help if any of you could suggest me a solution.

java.lang.UnsatisfiedLinkError: No implementation found for boolean com.google.android.apps.watchme.Ffmpeg.init(int, int, int, java.lang.String) (tried Java_com_google_android_apps_watchme_Ffmpeg_init and Java_com_google_android_apps_watchme_Ffmpeg_init__IIILjava_lang_String_2) at com.google.android.apps.watchme.Ffmpeg.init(Native Method) at com.google.android.apps.watchme.VideoStreamingConnection.open(VideoStreamingConnection.java:71) at com.google.android.apps.watchme.StreamerService.startStreaming(StreamerService.java:72) at com.google.android.apps.watchme.StreamerActivity.startStreaming(StreamerActivity.java:210) at com.google.android.apps.watchme.StreamerActivity.access$200(StreamerActivity.java:47) at com.google.android.apps.watchme.StreamerActivity$1.onServiceConnected(StreamerActivity.java:67) at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1208) at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1225) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5343) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)

137213de-e458-11e5-9cc6-6114b8f4e8fc

and Cannot resolve corresponding JNI function Java_com_google_android_apps_watchme_Ffmpeg_init less. Reports native method declarations in Java where no corresponding JNI function is found in the project.

d50738a2-e45e-11e5-88cb-f7c7a766da75

abram456 commented 8 years ago

Same issue.... Can some one answer who got the solution

ntanduc2288 commented 7 years ago

I'm facing the same issue...I think the root cause is libffmpeg.so which downloaded from internet (yt-watchme project have no libffmpeg.so)

MuthuEphron commented 7 years ago

I got the same issue . Any solution for this issues

TestingRaj commented 7 years ago

Hi

you can use below link here is my complete project

https://www.dropbox.com/s/yshwhmlhg02zaqf/MainActivity.zip?dl=0

On Thu, Feb 23, 2017 at 11:03 AM, MuthuEphron notifications@github.com wrote:

I got the same issue . Any solution for this issues

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youtube/yt-watchme/issues/38#issuecomment-281899348, or mute the thread https://github.com/notifications/unsubscribe-auth/AVx8n9a-7cgfi-quJWow4gZw9C8wEHY6ks5rfRo_gaJpZM4KXBXS .

MuthuEphron commented 7 years ago

Hi I am working in windows 10 and android studio 2.1.2. Is your project working in Windows?

TestingRaj commented 7 years ago

yeah this code is working in windows

On Thu, Feb 23, 2017 at 12:09 PM, MuthuEphron notifications@github.com wrote:

Hi I am working in windows 10 and android studio 2.1.2. Is your project working in Windows?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youtube/yt-watchme/issues/38#issuecomment-281908614, or mute the thread https://github.com/notifications/unsubscribe-auth/AVx8n8Gfk3on2G2SCuLSFhrqoKunbnocks5rfSmlgaJpZM4KXBXS .

MuthuEphron commented 7 years ago

Are you used android studio ?

TestingRaj commented 7 years ago

no this code used in eclipse you can copy only library

On Thu, Feb 23, 2017 at 12:15 PM, MuthuEphron notifications@github.com wrote:

Are you used android studio ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youtube/yt-watchme/issues/38#issuecomment-281909446, or mute the thread https://github.com/notifications/unsubscribe-auth/AVx8n_yHNZyn2JKku5WGCie0Sq98GjkHks5rfSsFgaJpZM4KXBXS .

TestingRaj commented 7 years ago

After that i changed the code eclipse to android studio that time also i copied only lib and refere below screen shot

[image: Inline image 1]

On Thu, Feb 23, 2017 at 12:16 PM, test t quize.test@gmail.com wrote:

no this code used in eclipse you can copy only library

On Thu, Feb 23, 2017 at 12:15 PM, MuthuEphron notifications@github.com wrote:

Are you used android studio ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youtube/yt-watchme/issues/38#issuecomment-281909446, or mute the thread https://github.com/notifications/unsubscribe-auth/AVx8n_yHNZyn2JKku5WGCie0Sq98GjkHks5rfSsFgaJpZM4KXBXS .

MuthuEphron commented 7 years ago

Sorry, I didn't get your screenshot.

MuthuEphron commented 7 years ago

because I got the error in build to gradle.

TestingRaj commented 7 years ago

can u send me ur mail id

On Thu, Feb 23, 2017 at 12:21 PM, MuthuEphron notifications@github.com wrote:

Sorry, I didn't get your screenshot.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youtube/yt-watchme/issues/38#issuecomment-281910356, or mute the thread https://github.com/notifications/unsubscribe-auth/AVx8n21GpiEc6hAzNBrdWmYRxs_6dUcAks5rfSxtgaJpZM4KXBXS .

MuthuEphron commented 7 years ago

Hi TestingRaj,

Here I attached build.gradle,

Actually My Error is java.lang.UnsatisfiedLinkError: Couldn't load ffmpeg library findLibrary returned null http://stackoverflow.com/questions/42395461/java-lang-unsatisfiedlinkerror-couldnt-load-ffmpeg-library-findlibrary-returne

On Thu, Feb 23, 2017 at 12:22 PM, TestingRaj notifications@github.com wrote:

can u send me ur mail id

On Thu, Feb 23, 2017 at 12:21 PM, MuthuEphron notifications@github.com wrote:

Sorry, I didn't get your screenshot.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/youtube/yt-watchme/issues/38#issuecomment-281910356 , or mute the thread https://github.com/notifications/unsubscribe-auth/ AVx8n21GpiEc6hAzNBrdWmYRxs_6dUcAks5rfSxtgaJpZM4KXBXS

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/youtube/yt-watchme/issues/38#issuecomment-281910561, or mute the thread https://github.com/notifications/unsubscribe-auth/AQJypJ5aqzD64XSQNyTyCw5PV2GZGlkFks5rfSzGgaJpZM4KXBXS .

TestingRaj commented 7 years ago

u changed package name you need to give same package name in watch me application because these lib are already compiled if you want to give ur package name then u need to confihure JNI and create your package name all library in file JNI folder

On Thu, Feb 23, 2017 at 12:30 PM, MuthuEphron notifications@github.com wrote:

Hi TestingRaj,

Here I attached build.gradle,

Actually My Error is java.lang.UnsatisfiedLinkError: Couldn't load ffmpeg library findLibrary returned null http://stackoverflow.com/questions/42395461/java-lang- unsatisfiedlinkerror-couldnt-load-ffmpeg-library-findlibrary-returne

On Thu, Feb 23, 2017 at 12:22 PM, TestingRaj notifications@github.com wrote:

can u send me ur mail id

On Thu, Feb 23, 2017 at 12:21 PM, MuthuEphron notifications@github.com wrote:

Sorry, I didn't get your screenshot.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/youtube/yt-watchme/issues/38# issuecomment-281910356 , or mute the thread https://github.com/notifications/unsubscribe-auth/ AVx8n21GpiEc6hAzNBrdWmYRxs_6dUcAks5rfSxtgaJpZM4KXBXS

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/youtube/yt-watchme/issues/38#issuecomment-281910561 , or mute the thread https://github.com/notifications/unsubscribe-auth/ AQJypJ5aqzD64XSQNyTyCw5PV2GZGlkFks5rfSzGgaJpZM4KXBXS .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youtube/yt-watchme/issues/38#issuecomment-281911635, or mute the thread https://github.com/notifications/unsubscribe-auth/AVx8nxILHFzIc3DnFskKM7lDfOhLqadJks5rfS58gaJpZM4KXBXS .

MuthuEphron commented 7 years ago

Pls send my mail id muthuephron39@gmail.com

MuthuEphron commented 7 years ago

Thanks for your help. Please check my gradle is there any mistakes in my gradle and Android.mk. Application.mk,config file also.

MuthuEphron commented 7 years ago

I need to know how to use my project.

MuthuEphron commented 7 years ago

@TestingRaj I setup library load ffmpeg.so file but now the issue was "Java.Lang.unsatisfiedLinkerror Native method not found error in my Project , Please help related issues in ffmpeg. I need another one how to use FFmpeg -jni,c file in my project?

vranacse commented 7 years ago

need working demo app with both video and audio working ! contact : vranacse@gmail.com

MuthuEphron commented 7 years ago

@TestingRaj Hi i am using your code but its not working on windows. because you declare the android.mk path is invalid

jeff11142 commented 7 years ago

I need help too , my Email is doggy90739@gmail.com I tried lots of ways but i still cant build it up

MuthuEphron commented 7 years ago

Hi guys, Pleas help this issues #53

MuthuEphron commented 7 years ago

@TestingRaj Audio issues is present on live streaming video. How do solve the issue Please Help.

MuthuEphron commented 7 years ago

@TestingRaj How to use third party folder in android studio

prabhanshushekharntspl commented 7 years ago

@TestingRaj I have downloaded the file from "https://www.dropbox.com/s/yshwhmlhg02zaqf/MainActivity.zip?dl=0" but the file is not working in android studio. Please send me the solution. Email id : prabhanshu.sekhar@ntspl.co.in

Adnan-addi commented 5 years ago

Does anyone Got the Solution for this .. in 2019 ???

garyjamessilva commented 5 years ago

Yeah just learn basic android jni / c function naming and calling and the issues / solution is obvious.

Good luck

On Wed, 25 Sep. 2019, 06:34 Adnan-addi, notifications@github.com wrote:

Does anyone Got the Solution for this .. in 2019 ???

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/youtube/yt-watchme/issues/38?email_source=notifications&email_token=ACIEQXABDCG4CLAGIT4ZYYDQLJ2WJA5CNFSM4CS4CXJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7PW5IQ#issuecomment-534736546, or mute the thread https://github.com/notifications/unsubscribe-auth/ACIEQXCDTZ66E5FLGBRDS6TQLJ2WJANCNFSM4CS4CXJA .