element-call icon indicating copy to clipboard operation
element-call copied to clipboard

Configurable media quality

Open ara4n opened this issue 3 years ago • 13 comments

Currently our gUM constraints are hardcoded and very basic (640x360 video; no audio quality controls at all): https://github.com/matrix-org/matrix-js-sdk/blob/96ba061732bc3b5e748719072356d562e52097ba/src/webrtc/mediaHandler.ts#L296

We should let the user pick at least the video resolution & bitrate they want to send (presumably by some sensible defaults).

Could also be fun to let them try to select audio quality (e.g. stereo or not)

Also, leaving the bitrate entirely up to the browser feels risky in the extreme.

ara4n avatar Mar 05 '22 18:03 ara4n

Framerate is important for gamers, currently there isn't any alternatives to Discord that have framerates high enough to be worthwhile. An option for 30 and 60 FPS would be awesome.

w3bb avatar Mar 07 '22 23:03 w3bb

Playing music with good quality over matrix would be awesome. I'm currently thinking of two scenarios. Firstly I thought of play something for a friend, a group or even having a concert, focusing on good quality sound. Secondly, if it would be possible to Jam together (would require very low latency).

martininsulander avatar Mar 23 '22 09:03 martininsulander

Currently our gUM constraints are hardcoded and very basic (640x360 video; no audio quality controls at all): https://github.com/matrix-org/matrix-js-sdk/blob/96ba061732bc3b5e748719072356d562e52097ba/src/webrtc/mediaHandler.ts#L296

If element-call is going to be available via Element Web with users not installing their own Synapse client, hard-coding limits are preferred. Perhaps we should have this ability enabled in only certain environments.

toniocat avatar May 29 '22 19:05 toniocat

I think it is sensible to at least make default resolution and bitrate configurable for homeservers.

christaikobo avatar Sep 07 '22 13:09 christaikobo

Framerate is important for gamers, currently there isn't any alternatives to Discord that have framerates high enough to be worthwhile. An option for 30 and 60 FPS would be awesome.

i agree, 60fps is very important for me too, i need to watch and screen share movies at 60fps, as lots of media i have is 60fps vs 30, looks choppy on the others end.

darkralts avatar Nov 27 '22 19:11 darkralts

Wanted to express, I strongly agree with this issue. This is one of the few issues with Element Call I still have. Coming from Discord, the quality of the audio is subpar, and this is noticeable to myself and other users moving over to Matrix.

Additionally, we have no control over the resolution or framerate of share screen. We normally used Discord share screen for gameplay. Discord defaults to a solid 720p 30fps. Unfortunately Element Call is currently very choppy and unusable for this purpose.

Ideally controls for audio bitrate, any video resolution and video frame rate should be exposed to the user or homeserver owner. And once set should be remembered.

hazzuk avatar Feb 25 '23 06:02 hazzuk

The low quality for both audio and video is holding Element back from having more Discord users switch over. I'm not experienced with browser development, but I tried to tinker around with the code and see if I can force the browser to use a higher bitrate and achieve something better than 2kbps dishwater HD. So far I've not managed, but I imagine it can't be that complex, and I'm just missing something. Of course it's not only about the bitrate, being able to choose resolution & framerate is also very important. I'll keep trying, I guess.

unknowntrojan avatar Jul 06 '23 17:07 unknowntrojan

Are there any plans to implement this?

a11cf0 avatar Jan 25 '24 19:01 a11cf0