Video constraints for WebRTC live streaming not respected

Costel

New Member
Hi,


We are forcing the video size through the constraints key to 864x840 but we receive when previewing/watching the live stream the size of 640x480
This is our codec configuration:
opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,h264,vp8,flv,mpv

Platform: web

Is there something which we could configure to get rid of this issue?
 

Max

Administrator
Staff member
Hello

Server does not manage video constraints.
The constraints are managed by browser i.e. Chrome. And if you set ratio which not supported by your web camera (i.e. 640x480 supported, but 864x840 is not), Chrome is switching to first supported resolution, i.e. 640x480 as you mentioned.

Only known way to manage ratio is server side transcoding with rescaling filters.
Currently we don't have such implemented filters. So it is a custom unsupported feature for now.

As an option you can use virtual cam (like OBS) on your PC where you can apply some video filters.
 
Top