
Video Grabber DGR-1000 User Manual - v. 1.4 (FW 1.9)
83
Appendix B: Broadcast UDP packet structure
When user sets the Output protocol to Broadcast (see 4.2.3, p. 29) then Video Grabber will start
broadcasting the captured data in the following packet format:
Type
Size (bytes) Name
Description
Table
4
MAGIC
Magic value, 4 bytes: 'V', 'G', 'B', 'R'
Unsigned char
1
VER
Structure version number: 1
Unsigned char
1
VID_TYP
Type of video stream, see table below.
Unsigned short
2
VID_NUM
Consecutive video (picture) frame number
Unsigned int
4
VID_LEN
Number of data in one video frame
Unsigned short
2
VID_CRC
16-bit CRC (crc16-ccitt) of this video frame
Unsigned int
4
VID_SEC
Time marker in seconds, where zero is
1970-01-01 00:00:00 +0000 (UTC)
Unsigned int
4
VID_USEC
Time marker in microseconds, where zero is
1970-01-01 00:00:00 +0000 (UTC)
Unsigned short
2
HDR_CRC
16-bit CRC (crc16-ccitt) of this frame header
Unsigned char
1
VID_DATA
Video (picture) frame data
The type of video stream is set using the following format:
Bits
Name
Allowed values
2:0
Video frame format
0 – Microsoft BMP
1 – PNG
2 – JPEG2000
3 – JPEG
4 – RAW
5 – H264/ES
6 – LOSSLESS
3
Compression method
0 – no compression
1 – ZIP
4
VID_CRC control
0 – VID_CRC field is not used (filled with random
values)
1 – VID_CRC field is used and filled with proper
CRC data
7:5
Not used
For future use