Frame size of the thumbnail from /ec2/cameraThumbnail sometimes gets smaller.
AnsweredHi.
I face the behavior of /ec2/cameraThumbnail endpoint below.
When I try to get thumbnail from below endpoint, frame size of a thumbnail is sometimes getting smaller.
<endpoint>
https://user:password@localhost:7001/ec2/cameraThumbnail?cameraId=e0ff4a66-6968-dc7b-cb3e-406db97cd2d8&time=2021-04-22T12:00:00.000
<Expected frame size>
1920x1080
<Actual frame size(sometimes)>
480x270 (I realized this frame size is exactly same value of secondary stream's frame size)
Could you help me to find out why this is happen and how to avoid this behavior?
Thank you very much.
-
Hello Makoto,
do you have primary stream available for requested timestamp? There is a possibility that server didn't record primary stream's footage for requested time due to your recording configuration or network issues. Could you please try adding forcedPrimary option to your request and tell me if it will work, check request example below:
https://user:password@localhost:7001/ec2/cameraThumbnail?cameraId=e0ff4a66-6968-dc7b-cb3e-406db97cd2d8&time=2021-04-22T12:00:00.000&streamSelectionMode=forcedPrimary
1 -
Hello Anton.
It seems your suggestion works for me.
Thank you very much!
0 -
Hello Anton.
About above issue.
I confirmed cameraThumbnail endpoint sometimes get smaller even after I set forcedPrimary option.
What could be the cause of this kind of behavior?
Let me know how to avoid this problem.Kind Regards,
Makoto Ogata.
0
Please sign in to leave a comment.
Comments
3 comments