UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to: test GStreamer-droid based camera support in Ubuntu Touch (for Halium 7.1 based port)

    Scheduled Pinned Locked Moved OS
    119 Posts 31 Posters 41.7k Views 13 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • C Offline
        ComLarsic @peat_psuwit
        last edited by

        @peat_psuwit i am testing with the oneplus3t, i guess i'll have to reinstall then.
        thanks for the help!

        1 Reply Last reply Reply Quote 0
        • W Offline
          walidham
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • P Offline
            pbt100
            last edited by pbt100

            Fixes video recording on garlic ,halium-7.1 with/without minimedia, miniaf and minisf services. For initial few shots from front camera were purple .

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              tigerpro @pbt100
              last edited by

              @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

              Whether you think you can, or you can't, if you do not try, you will never truly know. So give it a Go.

              P 1 Reply Last reply Reply Quote -1
              • P Offline
                pbt100 @tigerpro
                last edited by pbt100

                @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

                1 Reply Last reply Reply Quote 0
                • LuksusL Offline
                  Luksus
                  last edited by Luksus

                  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.

                  Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                  1 Reply Last reply Reply Quote 1
                  • peat_psuwitP Offline
                    peat_psuwit
                    last edited by

                    @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.

                    LuksusL E 2 Replies Last reply Reply Quote 0
                    • LuksusL Offline
                      Luksus @peat_psuwit
                      last edited by

                      @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.

                      Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                      T 1 Reply Last reply Reply Quote 0
                      • T Offline
                        tigerpro @Luksus
                        last edited by

                        @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

                        Whether you think you can, or you can't, if you do not try, you will never truly know. So give it a Go.

                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          ernest
                          last edited by

                          @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

                          1 Reply Last reply Reply Quote 0
                          • LuksusL Offline
                            Luksus
                            last edited by

                            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.

                            Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                            peat_psuwitP 1 Reply Last reply Reply Quote 0
                            • E Offline
                              Emphrath @peat_psuwit
                              last edited by Emphrath

                              @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.

                              peat_psuwitP 1 Reply Last reply Reply Quote 0
                              • peat_psuwitP Offline
                                peat_psuwit @Emphrath
                                last edited by

                                @Emphrath Well, turns out that patch isn't needed anymore. I'll remove it from the instruction.

                                E ? 2 Replies Last reply Reply Quote 0
                                • peat_psuwitP Offline
                                  peat_psuwit @Luksus
                                  last edited by

                                  @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 just GST_DEBUG="4".

                                  1 Reply Last reply Reply Quote 0
                                  • LuksusL Offline
                                    Luksus
                                    last edited by

                                    @peat_psuwit here is the log, I redirected it to a file with &>: https://paste.ubuntu.com/p/8Sy4gkzrDD/
                                    I have to say that I still have the manually patched Halium, if that is something we have to take into account.

                                    Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                                    peat_psuwitP 1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      Emphrath @peat_psuwit
                                      last edited by

                                      @peat_psuwit but it's still needed to compile halium manually, right ? This is not going in the next OTA I mean ?

                                      1 Reply Last reply Reply Quote 0
                                      • ? Offline
                                        A Former User @peat_psuwit
                                        last edited by

                                        @peat_psuwit Following a hint from ernesst on github I tried the steps at the beginning of this thread and I'm happy to report that camera is now mostly working on my OP3T. Hooray and thanks for that!

                                        I have only just done this and there are some problems, but at the moment...
                                        Camera takes pictures and I can view them in gallery, on photoroll.
                                        No video recording. On pressing the record button the timer comes up and freezes on 0.00
                                        Here is the output from the debugging command you provided at the top.
                                        https://paste.ubuntu.com/p/nBkqmQCSpR/

                                        1 Reply Last reply Reply Quote 0
                                        • ? Offline
                                          A Former User @peat_psuwit
                                          last edited by

                                          @peat_psuwit Camera didn't survive the latest system update; is this the expected behaviour?
                                          Here is the log just in case it's useful https://paste.ubuntu.com/p/DMn8FfBWXz/
                                          Running through the steps to Install GStreamer-droid restored the situation to yesterday's state🙂

                                          E 1 Reply Last reply Reply Quote 0
                                          • E Offline
                                            Emphrath @Guest
                                            last edited by

                                            @ziggutas I reckon that's because the patch is installed through apt - as long as it won't be added to the system image, every system update might roll back the changes...

                                            ? 1 Reply Last reply Reply Quote 0
                                            • peat_psuwitP Offline
                                              peat_psuwit
                                              last edited by

                                              @Emphrath Unfortunately this won't go into the next OTA. This still needs some refining for stability and I want to make sure it won't affect the existing ports.

                                              @ziggutas The trouble with video on OP3T (and devices using 64-bit rootfs) is known. However, my only 64-bit device is not working right now and is in the repair shop. And, yes, system image upgrade will wipe this out. I suggested using apt to update the phone. Make sure you have another phone before doing that.

                                              E 1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post