Closed Seliah closed 4 months ago
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.
Thank you for this information! We are not sure about adding in additional support yet but we will let you guys know.
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