Send key frames every interval

112 views
Skip to first unread message

Julia Casarin

unread,
Apr 16, 2021, 12:23:23 PM4/16/21
to kurento
Hello, is there a way to force kurento to send keyframes constantly within an interval to increase quality, as I fell it's degrading sometimes and lacking flow?
I mean, by looking at a video that's transmitted from rtsp to webrtc that contains a live clock, it jumps 2 seconds sometimes. 
I haven't found anything that resembles keyframes in the configuration files or a function call (node js), or in the PlayerEndpoint options so far. 

Thank you 

israel.r...@gmail.com

unread,
Apr 18, 2021, 1:30:26 PM4/18/21
to kurento
Hi Julia,

The problem isn't really in Kurento but in the camera.
Since you want good LIVE quality feed, you should use kurento without transcoding - that means kurento can't change the feed since it won't even open it.
You should check out your camera configuration to change the feed there.

Good luck

Juan Navarro

unread,
Apr 19, 2021, 5:53:33 AM4/19/21
to kur...@googlegroups.com
Agree

Look into enabling the "useEncodedMedia", this way Kurento will act as a media relay, i.e. the video out of the camera will be sent as-is to the receivers. Otherwise (if you don't enable "useEncodedMedia"), Kurento would be re-encoding all video and audio, which causes a lot more CPU usage.

If you can control the codec and other settings in the camera, it's best to enable useEncodedMedia in the PlayerEndpoint, and control all encoding parameters directly from within the camera:

                let player = await pipeline.create('PlayerEndpoint', {
                  uri: 'rtsp://localhost:5000/video',
                  useEncodedMedia: true,
                });

Note that, specifically for WebRTC, the best is to use H.264 with Contrained Baseline profile, level 3.1:
--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/7f59ffae-6aae-44b4-a8f8-cfd826fa8781n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages