Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soukichi opened this issue Feb 8, 2024 · 2 comments
Assignees
Labels
EnglishNative This issue is conveyed exclusively in English. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.

Comments

@soukichi
Copy link

soukichi commented Feb 8, 2024

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 winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Feb 8, 2024
@winlinvip
Copy link
Member

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 #3964

@winlinvip winlinvip self-assigned this Mar 4, 2024
@winlinvip winlinvip added the WebRTC WebRTC, RTC2RTMP or RTMP2RTC. label Mar 4, 2024
@soukichi
Copy link
Author

soukichi commented May 7, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Projects
None yet
Development

No branches or pull requests

2 participants