Heads up! We're sunsetting this forum to streamline our community space.

join us on Discord for support, updates, and all things Snap AR! See you there!
Sign up for our live Camera Kit office hour on July 17 @ 9:30am (PT) / 4:30pm (GMT)

User media video quality

Aditya
Aditya Posts: 4

Can anyone tell if we can improve camera feed quality, I'm using Logitech Brio 4k but still it's pixelated on edges.

this is my code -

try {
const constraints = {
video: {
facingMode: 'environment',
width: { ideal: 3840, min: 1920 }, // 4K resolution as ideal, 1080p as minimum
height: { ideal: 2160, min: 1080 } // 4K resolution as ideal, 1080p as minimum
}
};
const mediaStream = await navigator.mediaDevices.getUserMedia(constraints);

const source = createMediaStreamSource(mediaStream, { cameraType: 'back' });
await session.setSource(source);
session.source.setRenderSize(window.innerWidth, window.innerHeight);
session.play();

}
})();

Answers

  • Michael Mase
    Michael Mase Posts: 66 🔥🔥

    Hi @Aditya! Could you possibly share a screenshot?

  • Aditya
    Aditya Posts: 4

    Sure here it is, if you look closely you can see all the edges like the door frame and face edges are pixelated and if I use Google Meet or something it's very clear.

  • stevenxu
    stevenxu Posts: 612 👻

    Could you reshare? Seeing a 404

  • Aditya
    Aditya Posts: 4

Categories