• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    voxl-rtsp jpeg is all green

    Ask your questions right here!
    2
    11
    339
    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.
    • D
      Daniel Ryu
      last edited by 21 Jul 2021, 22:22

      Hello, I am trying to use voxl-rtsp to get frames from the tracking camera and sending it to my computer. I can save the frames and send them to my laptop, but when I view the jpegs, they look all green.

      Command I ran on m500 drone: voxl-rtsp -c 1 -d 100 -f jpeg

      I copied the files using the scp command.

      Screenshot from 2021-07-21 15-22-28.png

      1 Reply Last reply Reply Quote 0
      • A
        Alex Kushleyev ModalAI Team
        last edited by 22 Jul 2021, 18:42

        Hi Daniel,

        I just tried this to double check and was able to get valid jpegs for hires and tracking camera using the same command. What cameras do you have plugged in? Are you able to view rtsp stream from voxl-rtsp using VLC from the same camera?

        It looks like the jpeg itself is intact in your case, but the data that was used to generate the jpeg is corrupted. Is voxl-camera-server disabled when you run voxl-rtsp?

        Alex

        D 1 Reply Last reply 22 Jul 2021, 21:10 Reply Quote 0
        • D
          Daniel Ryu @Alex Kushleyev
          last edited by 22 Jul 2021, 21:10

          @Alex-Kushleyev I am able to stream to VLC just fine. Could the images be corrupted from using scp to transfer the files from the drone to the laptop?

          1 Reply Last reply Reply Quote 0
          • A
            Alex Kushleyev ModalAI Team
            last edited by 22 Jul 2021, 21:14

            It is unlikely that corruption is coming from scp. Can you try making a jpeg from the hires camera in the same way?

            Just in case, can you please try to compile voxl-rtsp from dev branch and test again? https://gitlab.com/voxl-public/utilities/voxl-rtsp/-/tree/dev

            D 1 Reply Last reply 22 Jul 2021, 21:16 Reply Quote 0
            • D
              Daniel Ryu @Alex Kushleyev
              last edited by 22 Jul 2021, 21:16

              @Alex-Kushleyev I used adb pull and the jpeg was uncorrupted

              1 Reply Last reply Reply Quote 0
              • A
                Alex Kushleyev ModalAI Team
                last edited by 22 Jul 2021, 21:18

                wow that's very surprising.. can you do an scp again after you adb pulled it and see if the file is still corrupt?

                D 1 Reply Last reply 22 Jul 2021, 21:21 Reply Quote 0
                • D
                  Daniel Ryu @Alex Kushleyev
                  last edited by 22 Jul 2021, 21:21

                  @Alex-Kushleyev zi l legitimately have no idea why but scp was able to pull the files uncorrupted. Only thing that was different was that I attempted to run voxl-streamer (which didn't even run). At any rate, problem is fixed, thanks!

                  A 1 Reply Last reply 22 Jul 2021, 21:32 Reply Quote 0
                  • A
                    Alex Kushleyev ModalAI Team @Daniel Ryu
                    last edited by 22 Jul 2021, 21:32

                    @Daniel-Ryu I have a few more questions, if you don't mind.. I'd like to figure out what happened:

                    • Did you adb pull the same jpeg which previously was copied via scp from VOXL and ended up being corrupted (or did you grab another jpeg) and then adb pulled a new jpeg
                    • When scp failed to copy jpeg correctly, did you reboot voxl after you saved jpeg using voxl-rtsp but before you copied using scp? If the power was pulled before the OS got a chance to do a sync to flash storage, the file could have been corrupted.

                    It seems scp should guarantee file integrity based on this : https://unix.stackexchange.com/questions/253233/do-i-need-to-check-for-file-corruption-once-scp-is-done so it seems like maybe the file was corrupted on VOXL, so it's important to know whether you were able to pull that same jpeg using adb pull or did you try on a new jpeg.

                    D 1 Reply Last reply 22 Jul 2021, 23:27 Reply Quote 0
                    • D
                      Daniel Ryu @Alex Kushleyev
                      last edited by 22 Jul 2021, 23:27

                      @Alex-Kushleyev These were new jpegs, as I had deleted the old ones. I did not reboot after saving the jpegs but before copying with scp.

                      1 Reply Last reply Reply Quote 0
                      • D
                        Daniel Ryu
                        last edited by 22 Jul 2021, 23:31

                        Unrelated, but can the tracking camera take images with color or is it only grayscale?

                        1 Reply Last reply Reply Quote 0
                        • A
                          Alex Kushleyev ModalAI Team
                          last edited by 23 Jul 2021, 01:53

                          The tracking camera (OV7251) is a grayscale camera, so it cannot sense color.

                          1 Reply Last reply Reply Quote 0
                          1 out of 11
                          • First post
                            1/11
                            Last post
                          Powered by NodeBB | Contributors