You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
setMaxVideoxxx to 0 does not set unlimited upper values, and there is a typo in setMaxOuputBitrate #19
I'm trying to stream with a high bitrate, but no matter what I do Kurento (6.2.0) always sets target-bitrate to 300000 on the encoder. Here's my latest attempt:
Oddly enough, the property max-output-bitrate gets correctly set to 1000000 on the KmsWebrtcEndpoint bin, but that doesn't seem to affect vp8enc. The setMin/MaxVideoSend/RecvBandwidth family of functions appear to have to effect whatsoever as far as I can tell.
Also, setMaxOuputBitrate should probably be spelled setMaxOutputBitrate, unless I'm missing something.
I think you are using it wrong. Could you explain what's the expected behavior, and describe your pipeline? If you want to exchange higher rate video between two endpoints, you need to setMaxOutputBitrate in the source. That means that if you have a presenter, you'd do something like this
As for the other parameters, at this moment setting 0 as the max value, is not setting unlimited bandwidth. We've opened a bug about that, and it shouldn't take long. In the mean time, set a ridiculously high value in those max settings if you want unlimited bandwidth.
One more thing, it is important that those setMax and setMin are done before the negotiation of SDPs takes place, or they will have no effect. We are also working on fixing that.
changed the title [-]setMaxOuputBitrate doesn't do anything[/-][+]setMaxVideoxxx to 0 does not set unlimited upper values, and there is a typo in setMaxOuputBitrate[/+]on Dec 17, 2015
I'm streaming from an h.264 RTSP source (using PlayerEndpoint) to a WebRTC endpoint. I just tried setMaxOutputBitrate on the PlayerEndpoint, but it didn't change the encoder's target-bitrate.
Just dug through the code a bit, setMaxOuputBitrate sets the the element's MIN_OUTPUT_BITRATE and MAX_OUTPUT_BITRATE GObject properties. Oddly enough, I couldn't find any other mentions of those constants except for their #defines, is setMaxOuputBitrate just a no-op at the moment? If so, it should probably be mentioned in the docs.
Edit: Same for setMaxVideoSendBandwidth et al, they set various properties that never seem to be accessed.
Another edit: Turns out I'm dumb, kmsagnosticbin accesses the property using -> syntax instead of the macro thingy (I'm not much of a C coder :P).
That seems a bit off, it means that if max_bitrate is greater than the default target bitrate (from kmsagnosticbin.c), then target-bitrate is set to the default instead of the user-defined target.
Maybe instead kms_enc_tree_bin_new should only take min_bitrate and max_bitrate arguments, and use max_bitrate as the target bitrate.
Edit: Just rewrote the macro to return max_bitrate, now the encoder's target-bitrate is set properly!
Activity
igracia commentedon Dec 17, 2015
I think you are using it wrong. Could you explain what's the expected behavior, and describe your pipeline? If you want to exchange higher rate video between two endpoints, you need to
setMaxOutputBitratein the source. That means that if you have a presenter, you'd do something like thisAs for the other parameters, at this moment setting 0 as the max value, is not setting unlimited bandwidth. We've opened a bug about that, and it shouldn't take long. In the mean time, set a ridiculously high value in those max settings if you want unlimited bandwidth.
One more thing, it is important that those
setMaxandsetMinare done before the negotiation of SDPs takes place, or they will have no effect. We are also working on fixing that.[-]setMaxOuputBitrate doesn't do anything[/-][+]setMaxVideoxxx to 0 does not set unlimited upper values, and there is a typo in setMaxOuputBitrate[/+]igracia commentedon Dec 17, 2015
@mparis You already filed the internal bug, but just for traceability I'm assigning this here, too.
hunternet93 commentedon Dec 17, 2015
I'm streaming from an h.264 RTSP source (using PlayerEndpoint) to a WebRTC endpoint. I just tried
setMaxOutputBitrateon the PlayerEndpoint, but it didn't change the encoder'starget-bitrate.Here's a PDF (because GitHub won't let me upload SVG) of the pipeline's GstreamerDot: rtsp-to-webrtc-vp8-incorrect-bitrate.pdf
SDP of the WebRTC connection
hunternet93 commentedon Jan 4, 2016
Just dug through the code a bit, setMaxOuputBitrate sets the the element's MIN_OUTPUT_BITRATE and MAX_OUTPUT_BITRATE GObject properties. Oddly enough, I couldn't find any other mentions of those constants except for their #defines, is setMaxOuputBitrate just a no-op at the moment? If so, it should probably be mentioned in the docs.
Edit: Same for setMaxVideoSendBandwidth et al, they set various properties that never seem to be accessed.
Another edit: Turns out I'm dumb, kmsagnosticbin accesses the property using -> syntax instead of the macro thingy (I'm not much of a C coder :P).
hunternet93 commentedon Jan 5, 2016
After poking around a bit, I found something odd in kmsenctreebin.c:
That seems a bit off, it means that if max_bitrate is greater than the default target bitrate (from kmsagnosticbin.c), then target-bitrate is set to the default instead of the user-defined target.
Maybe instead kms_enc_tree_bin_new should only take min_bitrate and max_bitrate arguments, and use max_bitrate as the target bitrate.
Edit: Just rewrote the macro to return max_bitrate, now the encoder's target-bitrate is set properly!
igracia commentedon Jan 5, 2016
@mparis Could you please check this?
jcaden commentedon Jan 5, 2016
I'll review this
dfernandezlop commentedon Jun 1, 2016
Hi,
In the last KMS release (6.5.0) we have fixed the wrong behaviour of the properties and typos in properties.
Thanks for the report.