Hello,
I am working on implementing video streaming from IP Camera through OpenVidu to web browser. The connection is initialized correctly but the video shown on the web page has a very bad quality: it is blurred and pixelized and freezes.
At the same time the same rtsp uri works perfectly well with VLC Player and the video is shown with the original quality there.
I am using the standard docker container openvidu/openvidu-server-kms.
The session for video streaming is created with the following parameters:
{ customSessionId: sessionId, forcedVideoCodec: ‘H264’, allowTranscoding: true}
The publisher:
const connectionProperties = {
type: ‘IPCAM’,
rtspUri: camera.uri,
adaptativeBitrate: true,
onlyPlayWithSubscribers: false,
networkCache: 3000,
data: camera.description
};
In Open Vidu Logs I can see the following:
2021-10-04 12:04:46,253 DEBG 'kms' stdout output:
0:27:29.309052000 10 0x7f63a4008680 ERROR libav :0:: co located POCs unavailable
2021-10-04 12:04:52,100 DEBG 'kms' stdout output:
0:27:35.156293500 10 0x7f63a4008680 ERROR libav :0:: reference picture missing during reorder
2021-10-04 12:04:52,100 DEBG 'kms' stdout output:
0:27:35.156692400 10 0x7f63a4008680 ERROR libav :0:: Missing reference picture, default is 66048
2021-10-04 12:04:52,260 DEBG 'kms' stdout output:
0:27:35.315893300 10 0x7f63a4008680 ERROR libav :0:: reference picture missing during reorder
2021-10-04 12:04:52,261 DEBG 'kms' stdout output:
0:27:35.316733800 10 0x7f63a4008680 ERROR libav :0:: Missing reference picture, default is 66052
2021-10-04 12:04:55,597 DEBG 'kms' stdout output:
0:27:38.653428900 10 0x7f63a4008680 ERROR libav :0:: reference picture missing during reorder
0:27:38.653449100 10 0x7f63a4008680 ERROR libav :0:: reference picture missing during reorder
0:27:38.653452500 10 0x7f63a4008680 ERROR libav :0:: Missing reference picture, default is 66112
0:27:38.653456500 10 0x7f63a4008680 ERROR libav :0:: Missing reference picture, default is 66112
2021-10-04 12:05:02,594 DEBG 'kms' stdout output:
0:27:45.649735600 10 0x7f63a4008680 ERROR libav :0:: mmco: unref short failure
2021-10-04 12:05:05,206 DEBG 'kms' stdout output:
0:27:48.261893900 10 0x7f63a4008680 ERROR libav :0:: co located POCs unavailable
2021-10-04 12:05:05,317 DEBG 'kms' stdout output:
0:27:48.372810900 10 0x7f63a4008680 ERROR libav :0:: co located POCs unavailable
Is there any way to fix this? Maybe I need to configure the OpenVidu/KMS in a special way?