25
5. API for Acquiring/Changing Parameters of VN-E4 _
5.3. JPEG Encoding
Acquiring File Size Setting from VN-E4
Format
/api/param?encode(Number).quality
Example
When acquiring file size setting of Encoding No. 1
/api/param?encode(1).quality
Example of response
encode(1).quality=40k&200 OK
Interpretation
Acquire the file size setting of the specified encoding number. Note that encoding numbers are different from
video input channels. If the response is 40k for example, the setting is 40KB.
Allowed users
admin, operator, user
Setting File Size for VN-E4
Format
/api/param?encode(Number).quality=Data
Example
When setting the file size of Encoding No. 1
/api/param?encode(1).quality=60k
Example of response
encode(1).quality&200 OK
Interpretation
Change the file size of the specified encoding number. Note that encoding numbers are different from video
input channels. The unit of set values is in KB. VN-E4 will perform rate control with this file size as the target.
The frame sizes for ch(1), ch(3), ch(5) and ch(7) are in VGA, and therefore setting between the range of 10 k to
100 k is possible. The frame sizes for ch(2), ch(4), ch(6) and ch(8) are in QVGA, and therefore setting between
the range of 3 k to 33 k is possible.
When VFS (VariableFileSize) is specified for rate control at the WEB setting page, 7 levels will be available
for selection. Each of these choices corresponds to the file sizes as follows.
When rate control is set to vfs and a file size that is not stated above is specified, the closest choice will be
displayed on the WEB setting page.
Allowed users
admin, operator
Acquiring Interpolation Setting from VN-E4
Format
/api/param?encode(Number).interpolate
Example
When acquiring interpolation of Encoding No. 1
/api/param?encode(1).interpolate
Example of response
encode(1).interpolate=on&200 OK
Interpretation
Acquire the interpolation setting of the specified encoding number. Note that encoding numbers are different
from video input channels. When this is set to on, JPEG-compression will be performed upon creating VGA
based on the first field out of the 2 fields that make up the video frame. When this is set to off, the video frame
will be directly JPEG-compressed. This item is valid when the frame size is in VGA (Encoding Nos.: 1, 3, 5
and 7). When the frame size is in QVGA (Encoding Nos.: 2, 4, 6 and 8), this will be invalid as only the first
field will be used from the beginning.
Allowed users
admin, operator, user
Level
File Size Setting for VGA
File Size Setting for QVGA
1
80k
27k
2
60k
20k
3
40k
13k
4
30k
10k
5
25k
8k
6
20k
7k
7
15k
5k