Hi,
Thank you for sending time with me
But it didn't work :(
Case 1 :
I checkout latest version linphone for android from git (3.2.6) and followed steps in wiki
I built with option :
./prepare.py -DENABLE_NON_FREE_CODECS=1 -DENABLE_OPENH264=1 (Built OK)
When I run app on Android 4.4 (API 19). The linphone asks me to download OpenH264. It was perfect
But when Linphone restart after downloaded OpenH264 then I got some logs :
LinphoneCoreFactoryImpl Loading OpenH264 downloaded plugin:/data/data/org.linphone/files/libopenh264.so
Trying to load lib /data/data/org.linphone/files/libopenh264.so 0x44734598
Added shared lib /data/data/org.linphone/files/libopenh264.so 0x44734598
No JNI_OnLoad found in /data/data/org.linphone/files/libopenh264.so 0x44734598, skipping init
Codec H264/90000 fmtp=[profile-level-id=42801F] number=-1, default enablement: 1) added to the list of possible codecs.
Loading plugin /data/app-lib/org.linphone-1/libmsopenh264.so...
Fail to load plugin /data/app-lib/org.linphone-1/libmsopenh264.so : dlopen failed: cannot locate symbol "ortp_logv" referenced by "libmsopenh264.so"...
The libopenH264.so has loaded and libmsopenh264.so couldn't load
I guess these errors maybe come from on target SDK 19
Case 2:
I download Linphone from PlayStore ( version 3.2.5)
These are logs when I run linphone
04-26 10:30:02.303 3595-3595/? I/Linphone: LinphoneCoreFactoryImpl Loading OpenH264 downloaded plugin:/data/data/org.linphone/files/libopenh264.so
04-26 10:30:02.303 3595-3595/? D/dalvikvm: Trying to load lib /data/data/org.linphone/files/libopenh264.so 0x447301e8
04-26 10:30:02.303 3595-3595/? D/dalvikvm: Added shared lib /data/data/org.linphone/files/libopenh264.so 0x447301e8
04-26 10:30:02.303 3595-3595/? D/dalvikvm: No JNI_OnLoad found in /data/data/org.linphone/files/libopenh264.so 0x447301e8, skipping init
04-26 10:30:02.963 3595-3595/? I/Linphone: Codec H264/90000 fmtp=[profile-level-id=42801F] number=-1, default enablement: 1) added to the list of possible codecs.
04-26 10:30:03.413 3595-3595/? I/Linphone: Could not find encoder for H264
04-26 10:30:03.413 3595-3595/? I/Linphone: Could not find decoder for H264
04-26 10:30:03.413 3595-3595/? W/Linphone: Codec H264/90000 read from conf is not supported by mediastreamer2, ignored.
04-26 10:30:03.413 3595-3595/? I/Linphone: Could not find encoder for H264
04-26 10:30:03.413 3595-3595/? I/Linphone: Could not find decoder for H264
04-26 10:30:03.443 3595-3595/? I/Linphone: Loading plugin /data/app-lib/org.linphone-1/libmsopenh264.so...
04-26 10:30:03.443 3595-3595/? I/Linphone: msopenh264-1.2.0 plugin registered.
04-26 10:30:03.443 3595-3595/? I/Linphone: Plugin loaded (/data/app-lib/org.linphone-1/libmsopenh264.so)
The libopenH264.so has loaded and libmsopenh264.so loaded too
Are there some different between build 3.2.5 and 3.2.6 ?
I checked Makefile : The Makefile in 3.2.5 is different 3.2.6
I think that is a bug when build linphone sdk 3.2.6 on Android
Thank you for reading my mail
VietBQ
Hello,
To use OpenH264 codec you had two choices.
Build Linphone with this options:
./prepare.py -DENABLE_NON_FREE_CODECS=1 -DENABLE_OPENH264=1
-DENABLE_EMBEDDED_OPENH264=1
It will enable OpenH264 and embed the codec.
Or you can build Linphone with this options:
./prepare.py -DENABLE_NON_FREE_CODECS=1 -DENABLE_OPENH264=1
It will enable OpenH264 and if your system is Android < 5.0,
you can download it from the app in options video and click on
H264 codecs.
For more informations:
https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Features/Codec%20H264%20on%20Android/
Best regards,
Erwan Croze
Software Engineer - Belledonne-communications
On 24/04/2017 18:43, Viet Bui wrote:
Hi everybody!!!!
Im trying to run linphone on Android 4.4 (API 19)
(Linphone 3.2.6)
I want to use codec OpenH264 for video call.
I built linphone with two options DENABLE_OPENH264=ON
-DENABLE_NON_FREE_CODECS=ON, and downloaded libmsopenh264.so from
cisco too.
But when I run app , I always get error
Fail to load plugin
/data/app-lib/xxxxx/libmsopenh264.so : dlopen failed: cannot
locate symbol "ortp_logv" referenced by
"libmsopenh264.so"...
Plz help me or give me some suggestions
Thanks all !!!
VietBQ
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hiddenhttps://lists.nongnu.org/mailman/listinfo/linphone-developers