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

    Camera rotation

    Scheduled Pinned Locked Moved Google Nexus 6P
    21 Posts 8 Posters 3.9k Views 4 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.
      • lgtrombettaL Offline
        lgtrombetta
        last edited by

        Sorry to bump this again, but it would have probably been lost in the original N6P thread now that it is closed. Just pasting from https://forums.ubports.com/post/41423:

        I'm not sure whether this is a device specific issue, but one thing I have been experiencing since the beginning with this port is the following:

        https://github.com/ubports/ubuntu-touch/issues/1174

        In a nutshell, the pictures taken with the camera always have the same orientation relative to the phone, instead being rotated properly relative to the ground by using the reading from the accelerometer.

        I know this is more of an annoyance rather than a critical bug... Any known solutions or workarounds?

        R 1 Reply Last reply Reply Quote 1
        • R Offline
          rocket2nfinity @lgtrombetta
          last edited by

          @lgtrombetta You used to have to do the following with every system update:

          HOWTO Install new camera layer

          Porters only: Make sure that you update your tree for droidmedia with repo fetch halium/droidmedia!

          Open a console to the device
          sudo -i
          mount / -o remount,rw
          umount /lib/udev/rules.d/70-android.rules
          ubports-qa install xenial_-_gst-droid
          ARM64 only: apt install gstreamer1.0-droid nemo-qtmultimedia-plugins

          If you encountered unable to make backup link of '<a path>' before installing new version: Invalid cross-device link error, unmount it by running sudo umount <path without the prepending dot> it and try again.

          The error ERROR:ubports-qa:Failed to remount root filesystem read-only. is normal and expected. Proceed to the next step.

          Reboot your phone to make sure everything is in place.

          Install new camera app:
          Open a console to the device
          32bit here: https://static.peat-network.xyz/junk/ubports/com.ubuntu.camera_3.1.2+gstdroid3_armhf.click
          64bit here: https://static.peat-network.xyz/junk/ubports/com.ubuntu.camera_3.1.2+gstdroid3_arm64.click

          Install AS USER (not in sudo mode): pkcon install-local --allow-untrusted <file name>

          lgtrombettaL 1 Reply Last reply Reply Quote 0
          • lgtrombettaL Offline
            lgtrombetta @rocket2nfinity
            last edited by

            @rocket2nfinity said in Camera rotation:

            ubports-qa install xenial_-_gst-droid

            Trying on devel, this step attempts to upgrade 31 packages, and downgrade 3: ubuntu-sdk-libs ubuntu-touch-core ubuntu-touch-hybris

            It doesn't seem like a good idea... it is probably too old a solution.

            Did it solve the problem back then?

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              rocket2nfinity @lgtrombetta
              last edited by

              @lgtrombetta It did then, but not now. Just tried it. Crashes Unity 8 UI. Easily fixed with an update though. So no harm no foul.

              @Flohack What's the current method to get the camera files oriented right in the gallery now?

              K 1 Reply Last reply Reply Quote 0
              • K Online
                kugiigi @rocket2nfinity
                last edited by

                @rocket2nfinity It's not a good idea to use apt right now due to the ongoing merging of qt5.12. Try again once the completion of this activity has been announced.

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

                  Yeah camera is a problem....

                  Well the gstdroid branch installation is still the option of choice. Actually we are in the process of merging those pieces together, but now everything is blocked by the Qt 5.12 upgrade - that means, currently installing custom packages with apt can easily break your system, so its not recommended. I would say in a few days it should work flawlessly again πŸ˜‰

                  That said, this will fix rotation and allow pictures from both cameras, but it will probably break video recording as N6P is one of those 64bit devices where this branch causes a strange regression. I hope we will be able to fix this soonish.

                  My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                  lgtrombettaL 1 Reply Last reply Reply Quote 0
                  • lgtrombettaL Offline
                    lgtrombetta @flohack
                    last edited by

                    @flohack @kugiigi @rocket2nfinity thank you for the information. I guess I'll have to wait until after the Qt 5.12 upgrade.

                    About video recording, for me it isn't working anyway, so if at least we can fix the camera rotation it would be an overall improvement.

                    lgtrombettaL 1 Reply Last reply Reply Quote 0
                    • lgtrombettaL Offline
                      lgtrombetta @lgtrombetta
                      last edited by

                      I just realized now that this problem has been solved (devel). Camera now rotates images properly. I don't know exactly when it happened.

                      In any case, great work!

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

                        @lgtrombetta Strange, how did this happen lol πŸ™‚
                        I will test and try to confirm

                        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                        lgtrombettaL 1 Reply Last reply Reply Quote 0
                        • R Offline
                          rocket2nfinity
                          last edited by

                          Not quite solved. Selfies show up sideways.

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

                            @rocket2nfinity yeah but the good news is: Recording seems to work, can you try πŸ™‚

                            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                            R 1 Reply Last reply Reply Quote 0
                            • lgtrombettaL Offline
                              lgtrombetta @flohack
                              last edited by

                              @flohack @rocket2nfinity Indeed, only the back camera is rotating pictures properly.

                              Could it have been the Qt 5.12 update?

                              1 Reply Last reply Reply Quote 0
                              • R Offline
                                rocket2nfinity @flohack
                                last edited by rocket2nfinity

                                @flohack It's recording something. But can't play it back with media viewer, nor UT Media player

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  rocket2nfinity @rocket2nfinity
                                  last edited by rocket2nfinity

                                  @Flohack I stand corrected, it does play if i select the file through files in UT Media.

                                  Magic?, Or did you do something?

                                  AppLeeA 1 Reply Last reply Reply Quote 1
                                  • AppLeeA Offline
                                    AppLee @rocket2nfinity
                                    last edited by AppLee

                                    @rocket2nfinity
                                    It might be the same thing as for the Nexus 5.
                                    Video playback doesn't work, but UT Media might be working with CPU handling video decoding...

                                    Edit: I think opening a file using UT Media player doesn't work.
                                    But opening the file from it is working.

                                    stanwoodS 1 Reply Last reply Reply Quote 0
                                    • stanwoodS Offline
                                      stanwood @AppLee
                                      last edited by

                                      @applee One can also use this brand new video player for Ubuntu Touch (just released some minutes ago). Works fine with my Nexus 5....
                                      https://open-store.io/app/uvideo.pavelprosto

                                      Redmi Note 9S Stable
                                      If God has a computer, it must be a GNU/Linux

                                      C R 2 Replies Last reply Reply Quote 2
                                      • C Offline
                                        cliffcoggin @stanwood
                                        last edited by

                                        @stanwood
                                        I echo Stan's comments about the new player on N5, but then Media Player also works for me.

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          rocket2nfinity @stanwood
                                          last edited by rocket2nfinity

                                          @stanwood strange. It (uvideo player) just opens with a blank black screen on mine. Does not play videos.

                                          stanwoodS 1 Reply Last reply Reply Quote 0
                                          • stanwoodS Offline
                                            stanwood @rocket2nfinity
                                            last edited by

                                            @rocket2nfinity Ohhh, strange. Do you also use a Nexus 5?

                                            Redmi Note 9S Stable
                                            If God has a computer, it must be a GNU/Linux

                                            R pavelprostoP 2 Replies Last reply Reply Quote 0
                                            • R Offline
                                              rocket2nfinity @stanwood
                                              last edited by

                                              @stanwood Not anymore. Donated it.

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