Acquiring jpeg from vn-e4 via http, Basic procedures – JVC 4ch Network Encoder VN-E4 User Manual
Page 5
5
1. Acquiring JPEG from VN-E4 via HTTP _
1) The client establishes a TCP connection to port number 8009.
2) The client sends out API.
Example
GET /api/video?input=1&framerate=30&framesize=vga HTTP/1.1
Host: 10.0.0.1
Note
3) VN-E4 returns a response.
Example
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 27616
Content-Type: image/jpeg
Date: Fri, 13 MAY 2005 07:33:12 GMT
Server: VN-E4 Jpeg & Audio Server/1.0.0
Keep-Alive: timeout=5, max=5
x-vne4_response:
input=1&framesize=vga&framerate=30&header=0&assured=0&sendbuffer=16
4) VN-E4 sends out JPEG data after returning the response.
JPEG files will be sent out continuously. Responses and JPEG data sent out by VN-E4 are as follows.
A 12-byte header will be added to the beginning of the JPEG file when header=1 is specified in the API
parameter.
Details on the header structure and JPEG file format will be explained later.
5) When the client wants to stop current JPEG transmission, the client disconnects TCP8009.
VN-E4 does not accept further API via current TCP that is used for JPEG transmission. To change parameters,
disconnect current TCP to stop the JPEG transmission, connect new TCP, and send API with new parameter.
1.1. Basic Procedures
1. Acq
Responses
JPEG (No. 1)
JPEG (No. 2)
Responses
header (12-byte)
JPEG (No. 1)
header (12-byte)
JPEG (No. 2)