w w w . s m a x . c o m . t w
Chapter 6.
P 74
6.1.3.1. MJPEG
Payload Header Format:
Offset
Parameter
Size(Byte)
Description
0x14
Format
4
For Video:
Bit0-3 type
15: (reference to Bit26-29)
Bit8-13 frame rate (1-30)
Bit14-21 IP ratio (1-30)
Bit22-25 quality level (0 - 4)
Bit26-29 scale (used while
Bit4-7 is 15)
0: 960P
1: 1080P
2: UXGA
3: QXGA
Bit30-31 reserved
0x18
Status
4
Bits 0 – 7: window1
motion level (0 – 255)
Bits 8 – 15: window2
motion level (0 – 255)
Bits 16 – 23: window3
motion level (0 – 255)
Bit 24: trigger input 1
status (1:high/0:low)
Bit 25: trigger input 2
status (1:high/0:low)
Bit 26: trigger output 1
status (1:high/0:low)
Bits 27 – 31: reserved
6.1.3.2. MPEG4/H.264
Syntax:
---------------------------------------------------------------------------
http:// camera_ip:port /cgi/mpeg/stream1.cgi
---------------------------------------------------------------------------
Example:
http:// camera_ip:port /cgi/ mpeg/stream1.cgi
Return:
The same as MJPEG except payload data is
MPEG4/H264.
OK
HTTP/1.1 200 OK\r\n
Content-Type: multipart/
mixed;boundary=myboundary\r\n
\r\n
--myboundary\r\n
Content-Length: <content length>\r\n
\r\n
<Payload Header>
<Payload Data>
--myboundary\r\n
Content-Length: <content length>\r\n
\r\n
<Payload Header>
<Payload Data>
….