awslabs / amazon-kinesis-video-streams-webrtc-sdk-c

Amazon Kinesis Video Streams Webrtc SDK is for developers to install and customize realtime communication between devices and enable secure streaming of video, audio to Kinesis Video Streams.
https://awslabs.github.io/amazon-kinesis-video-streams-webrtc-sdk-c/group__PublicMemberFunctions.html
Apache License 2.0
997 stars 299 forks source link

[Bug]: decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session #2001

Closed RTL8710 closed 3 weeks ago

RTL8710 commented 1 month ago

Please confirm you have already done the following

Please answer the following prompt

Describe the bug

v1.10.2

Expected Behavior

not error

Current Behavior

2024-05-31 17:21:20.872 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.872 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.873 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 18446744071425134064 2024-05-31 17:21:20.874 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.879 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.879 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.880 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.880 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.881 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.881 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.881 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.882 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.882 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.883 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001

Reproduction Steps

2024-05-31 17:21:20.872 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.872 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.873 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 18446744071425134064 2024-05-31 17:21:20.874 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.879 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.879 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.880 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.880 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.881 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.881 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.881 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.882 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001 2024-05-31 17:21:20.882 ERROR decryptSrtcpPacket(): Decrypting rtcp packet failed with error code 9 on srtp session 44774108358413808 2024-05-31 17:21:20.883 WARN onInboundPacket(): decryptSrtcpPacket failed with 0x5b000001

WebRTC C SDK version being used

v1.10.2

If it was working in a previous version, which one?

No response

Compiler and Version used

5.4.0

Operating System and version

embed mips linux

Platform being used

linux

niyatim23 commented 1 month ago

Hi @RTL8710, we haven't seen this issue before. Can you share more details about the audio / video codecs you are selecting? What is your viewer?

RTL8710 commented 1 month ago

Hi,@niyatim23 ,only H264 video,usewebrtc-js test.

In actual testing, after obtaining the video stream, the video stutters every 10 seconds or so during playback.


Test Run Time: | 10 sec Client ID: | FVBQLEXWSEG Selected remote candidate: | [prflx] Selected local candidate: | [host] 192.168.43.122:60901 - udp Time from viewer button click to signaling setup: | 5893 ms Time set up viewer media view: | 0 ms Time from offer to first decoded frame: | 5686 ms Time from viewer button click to first decoded frame (without viewer media screen set up): | 11588 ms Avg RTT: | 0.031 sec Video Resolution: | 1920 x 1080 Avg Video bitrate: | 924.6 kbps Avg Video Frame Rate: | 23.96 FPS Avg Frame Drop : | 6.73 % Avg Video Jitter: | 0.007 sec Avg Audio bitrate: | 0.0 kbps Avg Audio Jitter: | 0.000 sec

disa6302 commented 1 month ago

@RTL8710 ,

The error is coming from the SRTP library the SDK depends on. Can we confirm if you are building with -DBUILD_DEPENDENCIES=OFF or ON?

RTL8710 commented 3 weeks ago

Thank you for your response. Due to issues with my device's streaming, not due to KVS.