Recieved video muting for 1-2 minutes before starting to play
See original GitHub issueHello,
I am trying to send a camera stream with aiortc through a self-implemented golang SFU (using github.com/pions/webrtc). The intended setup is aiortc client (streaming video) -> SFU -> browser client (displaying video). However I have an issue where the recieved video is first unmuted for ~3 seconds, then muted for 1-2 minutes before starting to play. I have tried some different combinations:
- Using OpenCV
cv2.VideoCapture
to stream the video as in #99 . This results in the video being muted for around 1-2 minutes and then playing. - Using
aiortc.MediaPlayer
with a mp4-file. Same result as 1. - Using
aiortc.MediaPlayer('0', format='avfoundation', options={'framerate': '30'})
. So far this one does not work (never unmutes, even after several minutes). However, this option works in the Webcam example. - Using a browser as client instead of aiortc. This works fine without any muting.
Since 4 works I suspect there might be something aiortc related. Looking at the specification muted seems to mean that there is no video avaliable in the stream, however using wireshark I can see UDP traffic being both sent to the SFU and forwarded to the browser.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How to Solve Facebook Videos Are Partially Muted?
This only happens when the video fails to sustain your interest. This is commonly observed, and people complain that the Facebook video is...
Read more >iPhone 12 Pro (iOS 14.4) - video playback starts muted
To resolve the video starting out muted, go to Settings > Mail, and disable "Auto-Play Videos and Live Photos".
Read more >How to Fix System Muted on Startup on Windows 10 [Tutorial]
Your browser can't play this video. Learn more ... When you power on your Windows PC, the first thing it does is play...
Read more >How to fix an auto muting microphone on Windows 10/11
Test your microphone for a few minutes. Has the random muting stopped? If the bug still occurs, repeat Step 1. Switch to the...
Read more >Sound will mute 10-15 minutes in, but shows that volume is ...
This issue may occur either due to corrupt audio driver or incorrect audio settings. I would suggest you to try following methods and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Managed to get
aiortc
based SFU working, and now it works fine! Works with bothcv2.VideoCapture
andaiortc.MediaPlayer('0', format='avfoundation', options={'framerate': '30'})
, however the first option seems to be much better latency-wise.Edit: Working (very naive) SFU implementation:
I solved and I understood… Mux is not necessary for me only track is enough 😃