I’m using the latest mediasoup-demo installed locally. Everything works fine with the default settings.
I want to use FullHD (1920x1080) resolution, so I added it to the sample app
I don’t know why it does not work or why the video stops after a while. In fact, in my Macbook Pro I cannot get webcam FHD resolution (it just generates HD 1280x720) so I assume you have a different webcam that generates FHD. This is, I cannot reproduce the problem.
Anyway, mediasoup provides lot of log levels, log tags, RTC stats, etc, all them properly documented in the API. You provide cero mentions to them, so this is just “the demo does not work after changing something”.
Please, read the mediasoup API documentation, enable RTP, BWE, simulcast, SVC logs, etc. Check the producer and consumer RTP stats, and realize of what is happening. We spent lot of time documenting everything in detail for people to use it and for people to diagnoste issues that later can report to us.
Today I traced the problem.
The VP9 + SVC + FullHD causes the browser to stop encoding after about 700-800 frames. The bitrate goes to zero. I checked these on chrome://webrtc-internals.
Then I started chrome with debug log ‘–enable-logging --v=1’.
[58540:36099:0723/185020.479200:ERROR:video_stream_encoder.cc(760)] Failed to initialize the encoder associated with codec type: VP9 (2)
[58540:36099:0723/185020.479287:ERROR:video_stream_encoder.cc(786)] Failed to configure encoder.
[58540:36099:0723/185020.479576:ERROR:video_stream_encoder.cc(1363)] Failed to encode frame. Error code: -7
[58540:36099:0723/185020.480517:ERROR:video_stream_encoder.cc(1363)] Failed to encode frame. Error code: -7
[58540:9223:0723/185020.481380:ERROR:video_stream_encoder.cc(1363)] Failed to encode frame. Error code: -7
[58540:36099:0723/185020.508365:ERROR:video_stream_encoder.cc(1363)] Failed to encode frame. Error code: -7
[58540:34819:0723/185020.538945:ERROR:video_stream_encoder.cc(1363)] Failed to encode frame. Error code: -7
[58540:36099:0723/185020.584776:ERROR:video_stream_encoder.cc(1363)] Failed to encode frame. Error code: -7
[58540:36099:0723/185020.613607:ERROR:video_stream_encoder.cc(1363)] Failed to encode frame. Error code: -7
…
Cool. BTW ensure you are not limiting the mediasoup transport bitrate (the demo limits it via REMB if you set maxIncomingBitrate in the config.js file.
I’d recommend you testing the same video settings using other WebRTC apps, specially P2P apps.