Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    OS
    31
    119
    9659
    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.
    • peat_psuwit
      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
      • ?
        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
          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.

          Keneda 1 Reply Last reply Reply Quote 0
          • Flohack
            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
            • Keneda
              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-Now : Meizu MX4 (Stable) for daily use
              Spare : Nexus 5 (Stable)

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

                @Keneda Reboot? Yes. Solved? No.

                1 Reply Last reply Reply Quote 0
                • P
                  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
                    Stefano @pglushkov last edited by

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

                    Pro 5
                    Oneplus 3t

                    1 Reply Last reply Reply Quote 0
                    • K
                      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
                        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
                          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.

                          Pro 5
                          Oneplus 3t

                          1 Reply Last reply Reply Quote 0
                          • peat_psuwit
                            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
                              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_psuwit 1 Reply Last reply Reply Quote 0
                              • peat_psuwit
                                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
                                  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
                                    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
                                    • S
                                      Stefano @3T_Ed last edited by

                                      @3T_Ed I don't know if someone is working on UT camera, but GST is a workaround or other option and is working on some Halium 7 ports.

                                      Pro 5
                                      Oneplus 3t

                                      3 1 Reply Last reply Reply Quote 1
                                      • 3
                                        3T_Ed @Stefano last edited by

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

                                        @3T_Ed I don't know if someone is working on UT camera, but GST is a workaround or other option and is working on some Halium 7 ports.

                                        When installing UT on my Oneplus 3T I must have been very lucky, glad got it working. It is not my intention to mess it up for a camera workaround.

                                        I prefer to keep being able to get updates for further improvements rather than taking the chance of getting myself (newbie) into trouble over a camera and not getting updates at all. The OPO 3T works very well considering the fact it's not even an official port. The porting making huge progress though thanks to the work of people like @vince1171 . At the time of installing I was well aware the port isn't ready. Nevertheless I'd love to have a camera option any time soon. It would be a very welcome feature for all newcomers in order to start enjoying their UT.

                                        After all, people new to the UT scene would like to see the essential apps working, going through some psychological process of cognitive dissonance as it is, as to whether they have made the right choice to go the (alternative/"don't-do-it-I-told-you-so") UT route, not having to dig into various procedures - which might seem logical and easy routines to those who are already used to Linux distros and terminal commands - in order to get the basics running.

                                        I hope ultimately UT will become an OS everyone can install in confidence like an out of the box experience. This community is one of the best I have come across, no doubt UT is (going to be) a huge success and if things will be smoothed out many non-Linux users will take the leap of faith to make the switch.

                                        Meanwhile I guess I will just keep things as they are, sticking to the default apps and restricted to installing from Open Store only, eagerly awaiting the release of a camera app.

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

                                        1 Reply Last reply Reply Quote 2
                                        • Flohack
                                          Flohack last edited by

                                          @peat_psuwit this seems to no longer be necessary: UPDATED: If you're running arm64 image, please also run apt install gstreamer1.0-droid nemo-qtmultimedia-plugins. => packages were already installed with the branch.

                                          My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                                          1 Reply Last reply Reply Quote 0
                                          • L
                                            Luksus last edited by

                                            If you are tired of always reinstalling the patched camera app, because there is already a newer version of the stock camera app (https://gitlab.com/peat-psuwit/camera-app/-/issues/2), I created a "version-bumped" version: https://drive.google.com/file/d/1sV8te8sS-a7qCd-bjmEWxl0UFJo-Ma-9/view?usp=sharing

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

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