WebRTC - often broken image with screen share - getDisplayMedia instead of getUserMedia

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

WebRTC - often broken image with screen share - getDisplayMedia instead of getUserMedia

d3im
Hi,

just starting new thread with different topic pointing to mail - 16. 11.
20 21:27

I tried to share screen over WebRTC instead of camera. (sendrecv demo)

It runs fine for some time and then it breaks image then it fixes and
again and again but often image is broken.
Seem some information missing.

Is there a way how to make transmission correct?
I've tried version 1.16.2 and 1.18.0 on two linux systems also browser
source from Mac.

Is it known issue?

Thanks

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: WebRTC - often broken image with screen share - getDisplayMedia instead of getUserMedia

Matthew Waters
This is very likely due to packet loss which webrtcbin doesn't handle
the fallout from very well as it doesn't control the encoders.  You need
to detect this and respond accordingly.

Cheers
-Matt

On 26/11/20 1:25 am, deim31 wrote:

> Hi,
>
> just starting new thread with different topic pointing to mail - 16.
> 11. 20 21:27
>
> I tried to share screen over WebRTC instead of camera. (sendrecv demo)
>
> It runs fine for some time and then it breaks image then it fixes and
> again and again but often image is broken.
> Seem some information missing.
>
> Is there a way how to make transmission correct?
> I've tried version 1.16.2 and 1.18.0 on two linux systems also browser
> source from Mac.
>
> Is it known issue?
>
> Thanks
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

OpenPGP_signature (505 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WebRTC - often broken image with screen share - getDisplayMedia instead of getUserMedia

d3im
It's weird cause it happens on local network and on one PC also.
I've tried to set FPS of stream from browser to 2 and the problem still
occurs.

How can be this detected in webrtcbin?

Thanks,
deim

Dne 25. 11. 20 v 23:56 Matthew Waters napsal(a):

> This is very likely due to packet loss which webrtcbin doesn't handle
> the fallout from very well as it doesn't control the encoders.  You
> need to detect this and respond accordingly.
>
> Cheers
> -Matt
>
> On 26/11/20 1:25 am, deim31 wrote:
>> Hi,
>>
>> just starting new thread with different topic pointing to mail - 16.
>> 11. 20 21:27
>>
>> I tried to share screen over WebRTC instead of camera. (sendrecv demo)
>>
>> It runs fine for some time and then it breaks image then it fixes and
>> again and again but often image is broken.
>> Seem some information missing.
>>
>> Is there a way how to make transmission correct?
>> I've tried version 1.16.2 and 1.18.0 on two linux systems also
>> browser source from Mac.
>>
>> Is it known issue?
>>
>> Thanks
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: WebRTC - often broken image with screen share - getDisplayMedia instead of getUserMedia

d3im
In reply to this post by Matthew Waters
Does it means the detection and respond to loss is done on browser side
and not webrtcbin?

Thanks,
deim

Dne 25. 11. 20 v 23:56 Matthew Waters napsal(a):

> This is very likely due to packet loss which webrtcbin doesn't handle
> the fallout from very well as it doesn't control the encoders.  You
> need to detect this and respond accordingly.
>
> Cheers
> -Matt
>
> On 26/11/20 1:25 am, deim31 wrote:
>> Hi,
>>
>> just starting new thread with different topic pointing to mail - 16.
>> 11. 20 21:27
>>
>> I tried to share screen over WebRTC instead of camera. (sendrecv demo)
>>
>> It runs fine for some time and then it breaks image then it fixes and
>> again and again but often image is broken.
>> Seem some information missing.
>>
>> Is there a way how to make transmission correct?
>> I've tried version 1.16.2 and 1.18.0 on two linux systems also
>> browser source from Mac.
>>
>> Is it known issue?
>>
>> Thanks
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: WebRTC - often broken image with screen share - getDisplayMedia instead of getUserMedia

d3im
In reply to this post by d3im

Spotted image breaks when packetsLost suddenly grows.

It happens when on console is printed this warning debug info:

** (webrtc-sendrecv:2980): WARNING **: 15:49:03.872: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 10 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:49:13.873: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 20 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:49:33.889: Maximum number of retries failed, not trying again

** (webrtc-sendrecv:2980): WARNING **: 15:51:24.721: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 5 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:51:29.873: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 10 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:51:39.877: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 20 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:51:59.876: Maximum number of retries failed, not trying again

** (webrtc-sendrecv:2980): WARNING **: 15:53:05.722: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 5 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:53:10.870: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 10 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:53:20.878: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 20 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:53:40.889: Maximum number of retries failed, not trying again

** (webrtc-sendrecv:2980): WARNING **: 15:54:46.721: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 5 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:54:51.874: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 10 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:55:01.878: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 20 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:55:21.881: Maximum number of retries failed, not trying again

** (webrtc-sendrecv:2980): WARNING **: 15:56:27.723: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 5 seconds

** (webrtc-sendrecv:2980): WARNING **: 15:56:32.873: Failed to GET http://10.0.0.3:1900/igd.xml: Forbidden, retrying in 10 seconds

Video from GST is OK in browser but video from browser is broken on GST side. I used c version (webrtc-sendrecv.c)

from vivaldi://webrtc-internals

Many thanks for any help and happy new year :-)
-deim

Dne 25. 11. 20 v 15:25 deim31 napsal(a):
Hi,

just starting new thread with different topic pointing to mail - 16. 11. 20 21:27

I tried to share screen over WebRTC instead of camera. (sendrecv demo)

It runs fine for some time and then it breaks image then it fixes and again and again but often image is broken.
Seem some information missing.

Is there a way how to make transmission correct?
I've tried version 1.16.2 and 1.18.0 on two linux systems also browser source from Mac.

Is it known issue?

Thanks


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel