Uncompressed video frame format for USB Video device class

cancel
Showing results for 
Search instead for 
Did you mean: 

Uncompressed video frame format for USB Video device class

250 Views
danny30
Contributor I

Hello,

I am struggling to make video streaming uncompressed RGB565 over USB. I have the iMX streaming data to PC in this format:

[12 bytes header] [RGB1 RGB2 ... RGBn]

where RGBn is the 2 bytes of RGB565 of the last frame. This means I start sending bitmap data bytes directly after the protocol header. The problem is the Camera app on PC side doesn't seem to recognize any images. 

I record the stream and compare this with compressed JPEG example, the activity of [12 bytes header] is the same. The only difference is the JPEG payload has JPEG specific header information, while uncompressed RGB565 does not.

Eg, [12 bytes header] [JPEG header JPEG payload1 ... payloadn]

Or may be uncompressed data should have header also ? if so, what is the uncompressed payload start header ? eg: BMP header , etc ...

I have used many apps, windows webcam app, VLC, webcam viewer, ... they all show black screen while on NXP side it shows streaming data.

Please help! Thank you !

I have sample traffic send RGB24 data out :

sent 202062B8, 12
C 2 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 3F 1F 0 0 FF 0 0 FF 0
sent 202062B8, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 202066AC, 1024
C 1 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 20206AA0, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 20206E94, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 20207288, 1024
C 1 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 2020767C, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 20207A70, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 20207E64, 1024
C 1 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 20208258, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 2020864C, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 20208A40, 1024
C 1 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 20208E34, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 20209228, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 2020961C, 1024
C 1 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 20209A10, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 20209E04, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 2020A1F8, 1024
C 1 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 2020A5EC, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 2020A9E0, 1024
C 1 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 2020ADD4, 752
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 1 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 3 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12
C 0 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 3F 1F 0 0 FF 0 0 FF 0
sent 202062B8, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 202066AC, 1024
C 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 20206AA0, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 20206E94, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 20207288, 1024
C 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 2020767C, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 20207A70, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 20207E64, 1024
C 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 20208258, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 2020864C, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 20208A40, 1024
C 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 20208E34, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 20209228, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 2020961C, 1024
C 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 20209A10, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 20209E04, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 2020A1F8, 1024
C 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0 FF
sent 2020A5EC, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0
sent 2020A9E0, 1024
C 0 0 0 0 0 0 0 0 0 0 0 0 FF 0 0 FF 0 0 FF 0 0 FF 0 0
sent 2020ADD4, 752
C 0 0 0 0 0 0 0 0 0 0 0
sent 202062B8, 12

0 Kudos
0 Replies