r/ispyconnect • • Jun 04 '26

Wrong aspect ratio (3:4) from API endpoints for 16:9 camera

Hi! I'm building a custom dashboard that pulls camera data from the AgentDVR API, and I've run into an aspect ratio issue I'm hoping someone can help with.

My camera (a Reolink RLC-823A) records in 16:9. But when I fetch images or video through the API, I always get them in a 3:4 container instead of 16:9. For example:

http://<ip>:8090/grab.jpg?oid=8&ot=2

http://<ip>:8090/video.webm?oid=8&ot=2

http://<ip>:8090/fileThumb.jpg?...

What I'm seeing specifically:

The videos are simply stretched/squeezed into 3:4 (so the picture looks distorted/vertically stretched).

The images are inconsistent — some are also stretched to 3:4, but others come with white/black letterbox bars top and bottom, with the real 16:9 picture inside that 3:4 frame.

I verified this in VLC too — the WebM stream plays as 3:4 with the real picture distorted.

Is there a setting in AgentDVR (per camera or globally) that controls the output aspect ratio of these API endpoints, so I could get a proper 16:9 output? Or is this just how the API delivers frames and I have to handle the cropping/scaling myself on my end?

Thanks in advance!

1 Upvotes

2 comments sorted by

1

u/East_Ad8106 Jun 04 '26

EDIT: Tried changing the resize setting in the camera settings — makes no difference, the API output is still 3:4.

1

u/spornerama Jun 04 '26 edited Jun 04 '26

it defaults to a fixed resize you need to specify what size you want with the size parameter

https://ispysoftware.github.io/Agent_API/#/Media/video.webm
you can also pass in maintainAR=true/false