Closed joshuaRosales closed 5 days ago
The sequence errors in your video stream dump are due to LOST packets, not misordering. I also noticed that traffic inbound to janus mp (gstreamer -> mountpint) is IPv4, whereas traffic towards your client is IPv6. Maybe there is some problem with the MTU over IPv6? Just guessing: packet larger than X are being dropped somehow.
At any rate, nothing that should be fixed in Janus, so we can close this issue.
What version of Janus is this happening on? Put the version and the commit identifier (available in
version.c
or from aninfo
request) hereHave you tested a more recent version of Janus too? Yes/no. If yes, which one. If not, why.
No. May 2024 is pretty recent.
Was this working before? If you have information on a version/commit where the issue wasn't there (e.g., the result of a
git bisect
), please provide it here.Not sure.
Is there a gdb or libasan trace of the issue? If you have a trace related to the issue (e.g., after a segfault), provide it as a gist/pastebin/other link here, or as a collapsible section. Do NOT paste logs inline. For more information on the kind of traces we may find useful, please refer to the documentation.
No. I have pcap files though.
Additional context Add any other context about the problem here.
I'm seeing a lot of sequence errors in the RTP packets when watching a stream. This is for a single mountpoint and a single client watching. The RTP packets that I send to the mountpoint are generated by gstreamer. I made use of Janus' mountpoint recording feature which gives me .mjr files, which I then converted into pcap files, and what I noticed is that the timings and sequence numbers are good in the mountpoint recordings. The audio file conversion:
The video pcap conversion:
However, I also recorded the network activity on the server:
And this capture.pcap file has sequence numbers which are messed up. Any idea why that is? I imagine since this is on the host itself, it is not a network issue, and since the input is good in the mountpoint recordings, I'm thinking it's a misconfiguration or a bug with Janus/ the streaming plugin.
I'll put some screenshots of what I'm seeing, so y'all can better understand the issue I'm noticing. The video is 256x256, 25fps, vp8 encoding. Video packets sent every 40ms. The audio is opus encoding. Audio packets sent every 20ms.
Input to mountpoint audio and video (from mjr2pcap) seem clean: Input to mountpoint audio sequence seems clean: Input to mountpoint video sequence seems clean: Input to mountpoint audio timing, pretty good: Input to mountpoint video timing, pretty good:
The following is from the tcpdump source collected on the host -- the media streamed via webrtc: Audio doesn't have sequence errors:
Wrong sequence numbers in wireshark for the video stream:
The timing also is a bit off in certain spots:
I'd appreciate any help in troubleshooting the issue. If y'all want to look at the pcap files, I can share those too, but I'd rather do that through a more secure medium than just posting it on github. I'll continue experimenting and posting results as I find them.