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
Hi guys! First of all, thank you so much for maintaining and providing this awesome library.
I am currently encountering a problem with display issues that seem like artifacts in RTSP streaming. I would be very happy to know what you guys think might cause effects like this. Also I would be very interested in the steps I need to take or functions I need to implement to fix this.
Description
Artifacts like in the screenshots below pop up in a high resolution (Full HD) RTSP stream with a specific camera type. This happens after starting the stream and stays for a few seconds. It does not always happen but most of the times. The camera type is the DS-2CD6D24FWD-IZHS by HIKVISION. This is a device with 4 cameras which will be identified as one device with many profiles in ONVIF. You can find it here: https://www.hikvision.com/en/products/IP-Products/Network-Cameras/Panoramic-Series/DS-2CD6D24FWD--I--Z--H--S---NFC-/.
In native players like VLC or ffplay, this problem does not occur - even when opening the stream around 10 times simultaneously.
Reducing the bitrate of the streams fixes the artifacts. Using a minimal bitrate is not optimal in my use case though.
I inserted the debug logs of this library that occur in the described event below. I noticed that the following messages will be repeated as long as the stream stays up:
16:13:42.642 browser.mjs:268 msl:h264depay H264depayComponent can only extract types 1,5 and 28, got 7 +2s
16:13:42.643 browser.mjs:268 msl:h264depay H264depayComponent can only extract types 1,5 and 28, got 8 +1ms
16:13:42.643 browser.mjs:268 msl:h264depay H264depayComponent can only extract types 1,5 and 28, got 6 +0ms
NAL types 6, 7 and 8 are called SEI, SPS and PPS. I was wondering if the correct interpretation of these packets would solve my problem. Do you think that could be a possibility?
To Reproduce
Reproducing is likely very hard as this problem only pops up in the case of this exact camera type. It happens on high bitrate Full HD Streams, when opening them up.
Screenshots
Green overlaying artifacts:
Occasional mild artifacts:
Environment:
OS: Linux - Pop_OS!
Browsers: Chrome, Firefox, Opera, Vivaldi
Version: 12.2.0
Steps I took
I updated this library to the newest version, tried old versions like 6.0.4 as well
Minimized the usage of the camera to sort out problems of parallel nature
The NAL units that are SPS and PPS are probably OK to ignore, we cannot handle these in-band but instead we rely on this information to be sent out-of-band in the sprop-parameter-sets in the SDP (which according to your logs seems to be there).
However, not parsing the SEI NAL unit might be the problem. If you can find out more about what this does you could potentially add support for these?
Note: I changed this from "bug" to "enhancement", since the library is not designed for full H.264 support anyway, but we are happy to accept contributions to increase the level of what can be handled.
Hi guys! First of all, thank you so much for maintaining and providing this awesome library.
I am currently encountering a problem with display issues that seem like artifacts in RTSP streaming. I would be very happy to know what you guys think might cause effects like this. Also I would be very interested in the steps I need to take or functions I need to implement to fix this.
Description
Artifacts like in the screenshots below pop up in a high resolution (Full HD) RTSP stream with a specific camera type. This happens after starting the stream and stays for a few seconds. It does not always happen but most of the times. The camera type is the DS-2CD6D24FWD-IZHS by HIKVISION. This is a device with 4 cameras which will be identified as one device with many profiles in ONVIF. You can find it here: https://www.hikvision.com/en/products/IP-Products/Network-Cameras/Panoramic-Series/DS-2CD6D24FWD--I--Z--H--S---NFC-/.
In native players like VLC or ffplay, this problem does not occur - even when opening the stream around 10 times simultaneously.
Reducing the bitrate of the streams fixes the artifacts. Using a minimal bitrate is not optimal in my use case though.
I inserted the debug logs of this library that occur in the described event below. I noticed that the following messages will be repeated as long as the stream stays up:
NAL types 6, 7 and 8 are called SEI, SPS and PPS. I was wondering if the correct interpretation of these packets would solve my problem. Do you think that could be a possibility?
To Reproduce
Reproducing is likely very hard as this problem only pops up in the case of this exact camera type. It happens on high bitrate Full HD Streams, when opening them up.
Screenshots
Green overlaying artifacts:
Occasional mild artifacts:
Environment:
Steps I took
Logs
The text was updated successfully, but these errors were encountered: