ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.74k stars 5.28k forks source link

When video: false, audio: true is specified in WHEP, the WARNING log of notrack continues to be output #3951

Open soukichi opened 4 months ago

soukichi commented 4 months ago

Describe the bug When video: false, audio: true is specified in WHEP, the WARNING log of notrack continues to be output

Version SRS/6.0.101(Hang)

To Reproduce Steps to reproduce the behavior:

  1. ingest a rtmp stream by ffmpeg or anything
  2. play the stream on WHEP player with "video: false, audio: true" option on getUserMedia.
  3. SRS output notrack WARN logs continue as below. [2024-02-08 04:56:56.725][WARN][1][875p9gts][11] RTC: Drop for ssrc 10103 not found [2024-02-08 04:56:56.725][WARN][1][875p9gts][11] RTC: Drop for ssrc 10103 not found [2024-02-08 04:56:56.725][WARN][1][875p9gts][11] RTC: Drop for ssrc 10103 not found [2024-02-08 04:56:56.725][WARN][1][875p9gts][11] RTC: Drop for ssrc 10103 not found [2024-02-08 04:56:56.725][WARN][1][875p9gts][11] RTC: Drop for ssrc 10103 not found [2024-02-08 04:56:56.725][WARN][1][875p9gts][11] RTC: Drop for ssrc 10103 not found [2024-02-08 04:56:56.725][WARN][1][875p9gts][11] RTC: Drop for ssrc 10103 not found [2024-02-08 04:56:56.725][WARN][1][875p9gts][11] RTC: Drop for ssrc 10103 not found [2024-02-08 04:56:56.725][WARN][1][875p9gts][11] RTC: Drop for ssrc 10103 not found

Expected behavior Can we suppress this log output for cases where users, such as those with narrow bandwidth on mobile, might only want to listen to the audio?

winlinvip commented 3 months ago

If you wish to publish or play an audio-only stream, you will need to update the player code. We have added support for this feature, allowing you to publish and play audio-only streams. To do this, you must select the 'audio' option and ensure the 'video' option is deselected before you can publish or play the audio-only stream.

Please try the player that has been updated for audio-only streams, as detailed in this pull request. Let us know if you encounter any problems. See https://github.com/ossrs/srs/pull/3964

soukichi commented 1 month ago

Thanks for the update and sorry for the delay in responding. I have tested the updated player code, but the error logs are still there, it outputs 570 lines per min. How could I suppress the logs with audio only stream?