Minksks / dolphin-player

Automatically exported from code.google.com/p/dolphin-player
0 stars 0 forks source link

undefined reference to `player_main #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
I am new in FFMPEG and Native build NDK.  Can any one help me to resolve the 
error. I cloned the latest build and used NDK r8.

When executing the step 4 in Ubuntu, I am getting the following error

That is Step4: 4. Run compile.sh (calls the following in order: ndk-build 
clean, ndk-build -j2 V=1 and copies the libffmpeg.so file) (Edit the ndk-build 
path in this script)

The error is given below

./obj/local/armeabi-v7a/objs/application/src/native_main.o: In function 
`Java_com_broov_player_DemoRenderer_nativePlayerMain':
/home/qagate/Terminal/dolphin-player/p/jni/app/src/native_main.cpp:135: 
undefined reference to `player_main(int, char**, int, int, int, int, int, int, 
int, int, int, int, int, int, int, int, int)'
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi-v7a/libapplication.so] Error 1

Thankfully,
Arshad

Original issue reported on code.google.com by arsha...@qagate.com on 28 Aug 2013 at 10:58

GoogleCodeExporter commented 8 years ago
Please check, if you have changed the package path in the upper layer. Change 
the package name of the same in JNI code

Original comment by aatrala on 28 Aug 2013 at 11:42

GoogleCodeExporter commented 8 years ago
Hi aatrala,

Thank you for the response.I under stood the mistake.But i dont know How to 
update LOCAL_LDLIBS variable in jni/app/Android.mk

I have changed the path in upper layer.

The values of Android.mk in jni is
#BASE PATH FOR JNI
#AVPLAYER_PATH := "/home/qagate/P"
AVPLAYER_PATH := "/home/qagate/Terminal/dolphin-player/p"

* But I dont know what i have to edit in LOCAL_LDLIBS variable in 
jni/app/Android.mk

I am attaching my Android.mk file in jni/app/Android.mk. Could you please 
inform what i have to change in that file.

Thank you again
Arshad

Original comment by arsha...@qagate.com on 28 Aug 2013 at 1:26

Attachments:

GoogleCodeExporter commented 8 years ago
You also, ave to edit the JNI/Integration source code also, having the package 
name for the methods exposed to java
You can do a grep of the previous package pattern and rename it to your package 
name.

Original comment by aatrala on 28 Aug 2013 at 1:29

GoogleCodeExporter commented 8 years ago
Hi aatrala,

Thank you a lot.I cross checked the source code and found a small mistake in 
one package change.After correcting that,I could built the application 
successfully.
But I could not see an option to play  Http live streaming (m3u8) url.
Could you please help me to get the location or UI to play live url in the 
application.

Thankfully
Arshad

Original comment by arsha...@qagate.com on 29 Aug 2013 at 10:28

GoogleCodeExporter commented 8 years ago
create a file with an extension .astream or .vstream for audio, video streams. 
Have the url inside this file and play the same

Original comment by aatrala on 29 Aug 2013 at 3:06

GoogleCodeExporter commented 8 years ago
Thank you. 
I could stream apple sample video. But i could not play all m3u8 urls. I tried 
to play a live .m3u8 url of IPcamera through my wowza server. But it shows only 
a Loading symbol. Do we need to set a specific bit-rate or frame-rate for our 
application or do we need to do anything in our application end?. The video can 
be viewed smoothly in iPhone and VLC Players. My current bit-rate of video 
stream is 256kbps and frame-rate is 12.
Could you please confirm the specific of stream to view the live stream.

Thanks in advance 

Arshad

Original comment by arsha...@qagate.com on 30 Aug 2013 at 11:50

GoogleCodeExporter commented 8 years ago
You have to write few debug logs and see what's causing the problem, and where 
the problem is

Original comment by aatrala on 30 Aug 2013 at 12:19

GoogleCodeExporter commented 8 years ago
Hi aatrala,

Thank you for the quick response. I tried to debug the application in 
eclipse.The streaming url is not crashing our application.
When i am debugging the code without 'break points', it gives video.It buffer 
for few minutes and then after a particular interval of time, the video is 
played quickly. The speed of video is more than 8X. I feels that it is playing 
after buffering.That is, it is storing the video and playing like 'Forwarded' 
mode. Do we have an option 'network cache' or something in our player as we 
have in VLC player. 
Can we reduce the buffering time of our video.

Thankfully,
Arshad

Original comment by arsha...@qagate.com on 30 Aug 2013 at 1:05

GoogleCodeExporter commented 8 years ago
It is available, You may need to fine tune the configuration or few things in 
code..Please check the buffer related available attributes in Settings menu, 
Network buffers..

Original comment by aatrala on 30 Aug 2013 at 4:12

GoogleCodeExporter commented 8 years ago
Thank you aatrala.,
Let me try and give an update.

Thankfully 
Arshad

Original comment by arsha...@qagate.com on 2 Sep 2013 at 6:30

GoogleCodeExporter commented 8 years ago
Hi aatrala
I tried HLS live streaming with minimum Q size 
That is I set 
Minimum video Q Size=50kb
Maximum video Q size =100kb
Maximum audio Q size=50kb 
Network stream Min.Video Q Size=50Kb
Network stream Max.Video Q Size=100kb
Network stream Max.Audio Q Size=50kb

But it is taking time to start the live streaming. That is it takes more than 
15 minutes to start the live video.
I tried rtsp streaming of same live video and it starts earlier than that of 
HLS url.
I could not find any difference after reducing the Q size.Could you please 
correct if i made the mistakes.

Can we reduce the delay in starting of video?.Now my rtsp streaming take around 
0-1 minutes to start the live video. Could you please suggest any method to 
reduce the start time delay of video in our player.

Thank fully 
Arshad

Original comment by arsha...@qagate.com on 3 Sep 2013 at 11:33

GoogleCodeExporter commented 8 years ago
You have to write debug logs and troubleshoot the same

Original comment by aatrala on 3 Sep 2013 at 11:46

GoogleCodeExporter commented 8 years ago
Ok
Thank you. Let me try

Original comment by arsha...@qagate.com on 3 Sep 2013 at 11:48