How to: test GStreamer-droid based camera support in Ubuntu Touch (for Halium 7.1 based port)
-
@ComLarsic I've updated the instruction to include the arm64 binary and the link to my modification. Thank you for raising that up!
-
I tried following the steps but the camera doesnt work anymore, i tried undo-ing all the commands but still no luck. is thereany way to bring it back go normal or would i have to reinstall UBTouch?
-
@peat_psuwit
i'm tried to remove the dependcies i ran this commandpatchelf --remove-needed "libjnigraphics.so" vendor/lge/v20-common/proprietary/lib/libfilm_emulation.so
got this error
E HAL : dlopen failed: cannot locate symbol "android_getCpuFeatures" referenced by "/system/lib/libbwfocuspeaking.so"...
This method android_getCpuFeatures i think its part from android NDK
Edit : i found it in libskia.so extracted from stock romnm -D libskia.so |grep android_getCpuFeatures 002ffca8 T android_getCpuFeatures
-
@ComLarsic It's hard to revert changes made by
lxc-android-config
, one of the packages updated. It's cleaner to just re-install Ubuntu Touch. You can do that by using the UBports Installer or by runningsudo system-image-cli -b 0 --progress dots
from an ADB or SSH session (not in the terminal app though).What device are you testing with?
-
@walidham Hmm, according to my research,
android_getCpuFeatures
is supposed to be compiled into the binary using it. If you can make it link tolibskia.so
(which seems to be available on normal Halium installation), then it might work. Also, seem like you'll have to removelibandroid.so
too. -
@peat_psuwit
Yes, android_getCpuFeatures i fount it builded in halium (libskia.so)
and i added libskia.so to libbwfocuspeaking.sopatchelf --add-needed "libskia.so" lib/libbwfocuspeaking.so
Also i updated camera libs , got camera work.
BUTTT
Make photo work , not very good, but i can take photo.
Video record no. I will investigate it more and return to you for HELLP
Best Regards and thankouy -
@peat_psuwit i am testing with the oneplus3t, i guess i'll have to reinstall then.
thanks for the help! -
I removed both minimediaservice & miniafservice, camera don't work, got "Camera service not found", but the driver is loaded correctly and system detect 3 cameras.
I think there is problem in sensor or sound, because got many errors in logcat.
Also why /data/misc/media is empty, there is no media_codecs_profiling_results.xml. -
Fixes video recording on garlic ,halium-7.1 with/without minimedia, miniaf and minisf services. For initial few shots from front camera were purple .
-
@pbt100 interesting, does your device have a delayed wake from sleep as a result of no mediaservice? Somewhere along the line an update broke video recording on my device
-
@tigerpro minimediaservice was the last thing i added to the port to only fix wake lag and it broke bluetooth ,on mine, video recorder working with/without it though
-
Tested on FP2 -> works like a charm.
The execution of taking a photo is superfast now, compared to legacy-image.
Rear-camera and capturing videos does work too. -
@pbt100 @tigerpro The wake lag without
minimediaservice
should be fixed by including this commit into your Halium tree: https://github.com/Halium/android_frameworks_native/pull/6 (And if it works please add some voice to the PR. Thanks!)@Luksus You've compiled Halium-7.1 image yourself? Also, is it with the old or new camera modules? I don't have new camera modules myself, so I would like to know how that works.
-
@peat_psuwit : yes I compiled it myself.
It is with the new camera module, I don't have the older one.
There is no HDR function as it used to be with the legacy-port, but I assume its just not implemented?!So far, the camera-experience is way better, than with the legacy-port.
-
@Luksus I dont know of thats necessarily the case as the camera app on my note 4 has HDR available, I typically dont use it though
-
@peat_psuwit
Some update, i've tried to follow your tchat with Walid on Telegram history.
See the logs :
https://paste.ubuntu.com/p/sYpS5cX6KT/
https://paste.ubuntu.com/p/qJ3rr62j9r/
https://paste.ubuntu.com/p/gnnW2pkf55/
https://paste.ubuntu.com/p/wxKK3krMzg/
https://paste.ubuntu.com/p/qD85477qRy/Thanks
-
Regarding video capturing (on FP2):
After some seconds the image freezes and the app gets unresponsive.
The Log says something like: "audio could not be recorded fast enough".If you stop the recording before freezing, the video gets saved correctly but with sound a little off the line.
-
@peat_psuwit up this thread, you said: "This patch is in the process of upstreaming, so soon you won't have to do this."
Is it still something ? Or is it still to buggy to consider ? I mean the patch but also the halium 7 port as a whole. Thanks. -
@Emphrath Well, turns out that patch isn't needed anymore. I'll remove it from the instruction.
-
@Luksus Video recording works fine here on my FP2 with an old camera module. Could you please post the log? Follow the instruction above, but replace
GST_DEBUG="droidcamsrc:4"
to justGST_DEBUG="4"
.