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.
      • FlaF Offline
        Fla
        last edited by Fla

        I have trouble installing this on a Fairphone 2 with the new Halium 7.1 port.

        phablet@ubuntu-phablet:~$ sudo umount /lib/udev/rules.d/70-android.rules
        [sudo] password for phablet: 
        phablet@ubuntu-phablet:~$ sudo mount -o remount,rw /
        phablet@ubuntu-phablet:~$ sudo apt-mark hold qtubuntu-android
        qtubuntu-android passé en figé (« hold »).
        phablet@ubuntu-phablet:~$ sudo ubports-qa install xenial_-_gst-droid
        (...)
        0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 not updated.
        mount: / is busy
        ERROR:ubports-qa:Failed to remount root filesystem read-only.
        ERROR:ubports-qa:Please consider rebooting your device.
        INFO:ubports-qa:You can remove this repository by running 'sudo ubports-qa remove xenial_-_gst-droid'
        

        Here are the complete logs. Can anybody help?

        Edit: it looks like even if I had the errors displayed above, the installation worked.

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

          Hello would it be possible to recompile xenial_-_gst-droid with the latest environment ?
          I've tried yesterdat with the latest edge hybris arm64 and it's forcing me to downgrade some package.

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

            @ernest It should no longer downgrade any package, even without the pinning. Most of the time the downgrade comes from the meta-packages, as they are updated more frequently than most packages in this repo.

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

              @peat_psuwit is the issues already solved what Ernest have posted? I mean with the startup device delay on Oneplus 3T

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

                @Xray2000 Unfortunately no. The problem is, I can't reproduce it on my Fairphone 2. Thus, I don't have any insight about the problem, yet.

                BTW, @ernest, maybe you could install bootchart on the phone and send its log?

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

                  @peat_psuwit I have also a test device here a oneplus 3t i can install bootchart also on it.

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    gischpelino
                    last edited by

                    Installed it on my op3t and can take photos, looks like, it is working. I can start the camera-app from the ubports standard dash.

                    Info (maybe OT): But ist is not possible to start it from the modular launcher.

                    KenedaK 1 Reply Last reply Reply Quote 0
                    • flohackF Offline
                      flohack
                      last edited by

                      Tried on the Nexus 6P, I just get a black camera screen, but no error dialogs, nothing 😉

                      My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                      1 Reply Last reply Reply Quote 0
                      • KenedaK Offline
                        Keneda @gischpelino
                        last edited by

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

                        Info (maybe OT): But ist is not possible to start it from the modular launcher.

                        Did you reboot device? I encountered such behavior with LM whith another apps, rebooted and was solved .

                        2015-2023 : Meizu MX4 ☠️⚰️✝️
                        2023-2024 : Nexus 5 ☠️⚰️✝️
                        2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                        🇲🇫🇬🇧

                        G 1 Reply Last reply Reply Quote -1
                        • G Offline
                          gischpelino @Keneda
                          last edited by

                          @Keneda Reboot? Yes. Solved? No.

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

                            Hi all.
                            Just tried to run the installation of gst-droid as described in the first post. Camera started working when making photos. Attempt to record leads to camera app crash, still better then nothing, amazing job!

                            Do I understand correctly that this fix is still no in 'main-stream' and installing any system update on the phone will lead to wiping this app?
                            Many thanks!

                            S 3 2 Replies Last reply Reply Quote 1
                            • S Offline
                              Stefano @pglushkov
                              last edited by

                              yes, it will be overwritten by every update at the moment, I'm afraid.

                              1 Reply Last reply Reply Quote 0
                              • K Offline
                                Kyrylo
                                last edited by

                                Hi!
                                I am new to UT on Oneplus 3.
                                I had working camera (photo only).
                                Then I've installed gst-droid following all instructions.
                                And camera-app stops working.

                                $ cd /opt/click.ubuntu.com/com.ubuntu.camera/current/3.1.2+gstdroid3
                                $ GST_DEBUG=droidcamsrc:4 ./camera-app --desktop_file_hint=~/.local/share/applications/com.ubuntu.camera_camera_3.1.2+gstdroid3.desktop
                                """
                                ..................................................................................................
                                camera-app: //usr/share/droidmedia/hybris.c:57 __resolve_sym: Assertion `ptr != NULL' failed.
                                Aborted.
                                """
                                Is there any way to solve the problem?
                                Thanks in advance.

                                K 1 Reply Last reply Reply Quote 0
                                • K Offline
                                  Kyrylo @Kyrylo
                                  last edited by

                                  @Kyrylo

                                  error from previous post edited:
                                  “““
                                  Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
                                  library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it
                                  Creating a QMirClientScreen now
                                  Import path added "/opt/click.ubuntu.com/com.ubuntu.camera/3.1.2+gstdroid3/lib/aarch64-linux-gnu"
                                  Camera app directory "/opt/click.ubuntu.com/com.ubuntu.camera/3.1.2+gstdroid3"
                                  ..................................................................................
                                  camera-app: //usr/share/droidmedia/hybris.c:57 __resolve_sym: Assertion `ptr != NULL' failed.
                                  Aborted.
                                  """
                                  Is there any way to solve the problem?
                                  Thanks in advance.

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    Stefano @peat_psuwit
                                    last edited by

                                    @peat_psuwit is there a new version of camera gstdroid app with working video recording being worked on? I have Op3t and camera work just fine with GStreamer-droid.

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

                                      @Kyrylo Please make sure the Android image containing Droidmedia is up-to-date. If you use the image from system-server, you may have to re-flash the image to retrieve the latest Android image and re-do the instruction again.

                                      @Stefano Please see the updated instruction. This should fix video recording on arm64-based images.

                                      K 1 Reply Last reply Reply Quote 1
                                      • K Offline
                                        Kyrylo @peat_psuwit
                                        last edited by

                                        @peat_psuwit Thanks! I've reinstalled UT and camera works now.
                                        But video recording still doesn't work.
                                        Where where should I provide debug information if you need it?

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

                                          @Kyrylo I guess you can attach the Gstreamer log in this thread. I believe it shouldn't contain any sensitive information.

                                          1 Reply Last reply Reply Quote 0
                                          • K Offline
                                            Kyrylo
                                            last edited by Kyrylo

                                            @peat_psuwit Hi!
                                            About video recording on OnePlus 3.
                                            When I press the record button everything freezes, and there are no errors in the terminal.
                                            Last line in the terminal:
                                            [PERFORMNCE]: Last frame took 60 ms to render
                                            Here are a couple of screenshots:
                                            https://ibb.co/T8CtXdM
                                            https://ibb.co/vPMjBKG
                                            I hope this will be usefull... somehow
                                            P.S.: Great work. Thanks a lot.
                                            P.P.S.: Does IOS werx... somehow?

                                            1 Reply Last reply Reply Quote 0
                                            • 3 Offline
                                              3T_Ed @pglushkov
                                              last edited by

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

                                              Do I understand correctly that this fix is still no in 'main-stream' and installing any system update on the phone will lead to wiping this app?
                                              Many thanks!

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

                                              yes, it will be overwritten by every update at the moment, I'm afraid.

                                              Is the native camera being worked on therefore GStreamer camera being a workaround?

                                              Critics are the true Positives | OnePlus 3T, Lumia 950

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