Page 1 of 1

Sending continuous stream of image updates?

Posted: Tue Jan 31, 2023 8:18 am
by voldermord
I tried sending multiple images within a single START and END tag, but only the first image is shown. Subsequent images are ignored.

If I send the images with a RESET tag or CLEAR tag, the image updates but there is flickering.

Do I need to use video stream? Do you have example for this?

Re: Sending continuous stream of image updates?

Posted: Tue Jan 31, 2023 6:09 pm
by esky-sh
Yes you will need to send video stream in your case. The procedure is identical with sending picture.

Re: Sending continuous stream of image updates?

Posted: Tue Jan 31, 2023 8:01 pm
by voldermord
Ok.

I have successfully done what I wanted and it works great. However, I noticed that only the following works:

"video/x-raw, format=RGB16, width=1280, height=480, framerate=0/1"

If I change the header format to RGB/RGBA/ARGB and also convert the picture accordingly to the right format, the picture comes out corrupted.
I have also manually created test RGB/RGBA byte frames manually to confirm. Are these supported?

E.g:

"video/x-raw, format=RGB, width=1280, height=480, framerate=0/1"
Assuming converting a frame with bytes size 1280 * 3 * 480 and all bytes sets of 3s (R,G,B) set as below:
- RGB(255,255,255) displays as full green picture instead of white.
- RGB(0,0,0) displays as full pink instead of black.
- RGB(255,0,0) displays as corruption.

Re: Sending continuous stream of image updates?

Posted: Tue Jan 31, 2023 9:18 pm
by esky-sh
Only those format supported for raw video:
format: { BGRx, RGB16, RGB15, I420, YV12, Y42B, UYVY, YUY2, YVYU, NV12, NV21, NV16 }