-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Can't get 720x1280 stream from webcam #6
Comments
@brootle Hi. First, make sure your input device supports that resolution. You can test different values here. And please note that the browser will get the ideal resolution from the input device if there is no matching constraint. In addition, please let us know which browser and OS you are testing. Thanks. |
@SangwonOh well, yes, I tested at https://ovenplayer.com/demo_input.html and on client side it takes 1280x720 no problem. I am on Google Chrome Version 98.0.4758.102 (Official Build) (64-bit) and Win10. I tested at https://webrtc.github.io/samples/src/content/peerconnection/constraints/
And got this result |
@brootle It's very difficult to select a value, but how is the This is to determine if this is an OvenMediaEngine-side issue or something else..
|
@brootle Experientially, Because the minimum and maximum values of the width and height were set to the same value, the browser requested media to the webcam with the exact values set, and it failed because the webcam did not support the resolution. Looking at the HD attached to the webcam name, it looks like the webcam can go up to 1080. And the last log screenshot you posted seems to have a height of 1080 :). |
@SangwonOh yes, these settings worked on client side
and it also works if I put exact parameters When I am testing at https://webrtc.github.io/samples/src/content/peerconnection/constraints/ |
What specifically is the problem? WebRTC input succeeded, but having problems playing through OvenMediaEngine? Did you set up the WebRTC input properly? |
@SangwonOh thanks! yeah, this was a problem with settings on engine side, something related to "prevent upscaling", I wasn't the guy setting up the engine, so had no idea about it 😀 |
@SangwonOh I have one more question, when peer connections is established and I am streaming, basically when ICE State [connected] event happened, how using client side ovenLivekit instance to view peer connection details, specifically the actual resolution of the stream that server is getting from my side? |
@brootle Hi. The ovenLivekit instance has a |
Hi! I am trying to get 720x1280 stream, but it doesn't seem to work regardless of what settings I am passing as constraints on a client side. Inside OvenLiveKit-Web it's obvious that you set params in a way to get max possible resolution, but even when I set
video: true
to let the Kit take the resolution, oven media engine outputs 480x640 max. Maybe I am missing something obvious? I did try passingvideo: { deviceId: undefined, width: 1280, height: 720 }
in constraints and a bunch of other settings without any luck. At some point I got 720 as oven media engine output while testing, but couldn't reproduce it.OvenLiveKit-Web/src/OvenLiveKit.js
Line 84 in 17e7387
The text was updated successfully, but these errors were encountered: