-
Notifications
You must be signed in to change notification settings - Fork 240
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
set video encoder configuration #283
Comments
It is possible this will not work. Currently this library implements lots of Media1, but only enough of Media2 for what I needed on a project. The fix may be to change in libs\media.js around line 391 and change the code so it checks if the camera supports Media2, and if it does, generate the Media2 XML with the Media2 namespaces. |
You may be lucky and find the XML for the Media2 setVideoEncoderConfiguration is exactly the same as in Media1, so it is just Namespace changes. |
ok I understand.
Is there any more configuration I should add? |
My company is using Onvif to control IP cameras.
We are trying to set the encoder of the cameras by using this library.
We have a problem that after using the setVideoEncoderConfiguration function, the encoder of the cameras has not changed.
For example -
We trying to set the encoder of this camera to H264 (the current encoder is H265).
At first we use the function - get profiles, and we got -
and then, we are trying to set video encoder configuration.
we are executing -
We got no errors, but the encoder of the camera is still H265.
Moreover we tried to log the return data of the xml by adding logs here -
(after line 446 in media.js file)
We got -
any ideas what is wrong?
The text was updated successfully, but these errors were encountered: