Saved GIF or Video looks psychedelic and not like preview

Discussion related to "under the hood" OpenMV topics.
NoBearSnack
Posts: 33
Joined: Sun Dec 20, 2020 1:59 am

Saved GIF or Video looks psychedelic and not like preview

Postby NoBearSnack » Tue Jan 12, 2021 3:33 pm

Got my H7 Plus in the mail and and am enjoying tinkering with it. I've tried the gif_1.py example script and the ImageWriter_1.py example script and the output looks weird. It doesn't look like the preview in the IDE while the script is running which looks like normal video. Anybody know what I'm messing up? It has these weird colors as shown in the attachment.
Attachments
weird.png
User avatar
kwagyeman
Posts: 5014
Joined: Sun May 24, 2015 2:10 pm

Re: Saved GIF or Video looks psychedelic and not like preview

Postby kwagyeman » Tue Jan 12, 2021 3:40 pm

GIF Recording is done in an uncompressed way with only 7-bit RGB color. This is... 2-bits for red, 3-bits for green, and 2-bits for blue. This feature is really old and was made for the M4 original camera over 4 years ago.

I can look into updating the GIF code to do a better job. It really hasn't seen any love in a while.
Nyamekye,
NoBearSnack
Posts: 33
Joined: Sun Dec 20, 2020 1:59 am

Re: Saved GIF or Video looks psychedelic and not like preview

Postby NoBearSnack » Tue Jan 12, 2021 4:00 pm

It's happening in the with the /stream.bin and mjpeg files when I try to use those other video recording example scripts. All have what appears to look like a trippy filter applied to the video.

I don't need GIFs saved. I just need to be able to save video in a quality format, hopefully as good as what shows up in the IDE preview window.
User avatar
kwagyeman
Posts: 5014
Joined: Sun May 24, 2015 2:10 pm

Re: Saved GIF or Video looks psychedelic and not like preview

Postby kwagyeman » Tue Jan 12, 2021 5:37 pm

This shouldn’t happen with MJPEG or image writer files. I’ll check your other post.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests