Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata overlays with different aspect ratios between Video Source and Video Encoder. #490

Open
jcbeaulieu opened this issue Nov 12, 2024 · 2 comments

Comments

@jcbeaulieu
Copy link

When the aspect ratio of the encoded stream is different from the sensor's aspect ratio or when the sensor image is cropped in any other way, the given (video and metadata) streams have no embedded information that can allow a video player to know where the encoded image is present in relation to the sensor.

This can occur for:

  • On device dewarping
  • On device digital zooming
  • When changing cameras on a video encoder.
  • When using an encoding resolution with a different aspect ratio than the video sensor resolution.

When a video player tries to overlay the received stream, it can cause bounding boxes and other objects to become misaligned, with no information in the metadata stream itself to correct for the distortion.

@sujithhanwha
Copy link
Contributor

Related to this issue #410

@jcbeaulieu
Copy link
Author

Concerning the answer to #410 , if the bounds defined in the video source configuration is necessary, then would this mean that it's impossible to have correct overlay position for on-device digital zoom since the bounds are always changing?
Would it also make it impossible for a video player to place the metadata overlay correctly using only the video and metadata streams, requiring a VMS to store the bounds information in addition to the metadata stream and the video stream?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants