Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

WebCamera Pod - Am I setting imageQuality correctly?

Avatar

Former Community Member

Hi all,

I want to let my application accept a quality parameter to adjust quality settings of various pods on it.

But, as far as I see, setting webCamera.imageQuality to "low", "high_bw" or "high_q" does no difference in the image quality.

Currently, I'm setting it as below:

private function onSessionSyncChange(evt:Event):void {

if (cSession.isSynchronised) {

webCamera.imageQuality = "low"; // (or others)

}

}

Am I missing something?

2 Replies

Avatar

Employee

Can you explain how are you testing the quality ?

One thing I noticed that affects the display of a video stream is the way you "resize" the WebCamSubscriber and/or the video player. If you simply change width and height you get "scaling" artifact (i.e. even if your source is high quality, you are trying to squeeze it in a small window and the result is a very pixelated video).

In order to correctly check the video quality you should make sure the camera is "transmitting" at its correct dimensions (i.e. 640x480 or 320x240) and the receiver is also displaying at the correct dimensions (I think you can retrieve those from the WebCamSubscriber). At that point the difference in quality is related to the bandwidth the data is transmitting (lot of frames, less frames).

Once you verified that you are receiving data at high quality, you can play with resizing the image in a way that doesn't cause pixelation (or display at the native resolution to get the best quality)

Avatar

Former Community Member

Hi Raff,

I've changed my code a bit, now I have a WebCameraPublisher which is defined like this:

<rtc:WebcamPublisher width="320" height="240" id="webCamPub" quality="95" />

I create my WebCamSubscribers dynamically at run time and resize them like this:

webCamSubscriber.width = 320;

webCamSubscriber.height = 240;

Even the quality number of WebCamPublisher is high (95) and dimensions of the subscribers and the publisher match, I still get pixelated image.