If the encoder has an image preprocessor, it can make the input video scaling up/down. Combine thepreprocessor cropping feature ( Refer to getSourceCrop.lua/setSourceCrop.lua ), it canimplement a digital P/T/Z function. Even no need the cropping feature, it can also scale the sourcevideo to special size and special framerate, e.g. the input video is 720p25 and scale it to1080p50.
NOTE Not all encoders support this feature but only the models with image pre-processor.
Return a JSON style result. The JSON format is:
{ /*OBJECT*/ | |||||||||||||||||||||||||||||||
"Result": NUMBER | 200 means OK, other error code meanings are similar to HTTP Response. | ||||||||||||||||||||||||||||||
"Status": "STRING" | Status message. Responsing result status of API executive, if there errors, it will describe reasons. | ||||||||||||||||||||||||||||||
"Data": { /*OBJECT*/ | Scaling parameters | ||||||||||||||||||||||||||||||
"Format": "STRING" | Scale to what format:
| ||||||||||||||||||||||||||||||
"Mode": "STRING" | Picture stretch. If 'Format' is not 'default', this decides the picture stretch mode:
| ||||||||||||||||||||||||||||||
} | |||||||||||||||||||||||||||||||
} |
KILOVIEW Device HTTP API, v1.0
Copyright (c) 2016, KILOVIEW Electronics.