voxl-rtsp jpeg is all green
-
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
-
@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?
-
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
-
@Alex-Kushleyev I used adb pull and the jpeg was uncorrupted
-
wow that's very surprising.. can you do an scp again after you adb pulled it and see if the file is still corrupt?
-
@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!
-
@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.
-
@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.
-
Unrelated, but can the tracking camera take images with color or is it only grayscale?
-
The tracking camera (OV7251) is a grayscale camera, so it cannot sense color.