Eyevinn / srt-whep

SRT to WHEP (WebRTC)
Apache License 2.0
69 stars 9 forks source link

Failed to receive SDP offer from WHIP sink: SDP offer not found #57

Closed onorua closed 5 months ago

onorua commented 5 months ago

I've tried to follow instructions:

  1. run docker container to stream SRT: docker run --rm -p 1234:1234/udp eyevinntechnology/testsrc
  2. run srt_whep: srt-whep -i 127.0.0.1:1234 -o 127.0.0.1:8888 -p 8000 -s caller | bunyan
  3. Tried checking SRT stream with: gst-launch-1.0 playbin uri="srt://127.0.0.1:8888"
  4. Got sound and video from docker
  5. Put http://localhost:8000/channel in URL field at https://webrtc.player.eyevinn.technology/
  6. Pressed play and got SDP offer not found error in browser and terminal consoles.

Chrome:

Failed to load resource: the server responded with a status of 400 (Bad Request)
WHEPAdapter.ts:314 WebRTC-player server does not support client-offer, need to reconnect
index.ts:107 WebRTC-player onError=reconnectneeded
WHEPAdapter.ts:314 WebRTC-player Requesting offer from: http://localhost:8000/channel
channel:1 
Failed to load resource: the server responded with a status of 400 (Bad Request)
WHEPAdapter.ts:67 
Error: Failed to process request: SDP offer not found

console:

./srt-whep -i 127.0.0.1:1234 -o 127.0.0.1:8888 -p 8000 -s caller | bunyan
[2024-03-19T17:52:30.169386952Z]  INFO: srt_whep/969624 on x: starting 8 workers (target=actix_server::builder, line=200)
    file: /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-server-2.2.0/src/builder.rs
[2024-03-19T17:52:30.169518195Z]  INFO: srt_whep/969624 on x: Tokio runtime found; starting in existing Tokio runtime (target=actix_server::server, line=197)
    file: /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-server-2.2.0/src/server.rs
[2024-03-19T17:52:30.181431595Z] DEBUG: srt_whep/969624 on x: Setting up pipeline (target=srt_whep::stream::gst_pipeline, line=202, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:30.181553321Z]  INFO: srt_whep/969624 on x: SRT Input uri: srt://127.0.0.1:1234?mode=caller (target=srt_whep::stream::gst_pipeline, line=213, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:30.188136069Z]  INFO: srt_whep/969624 on x: SRT Output uri: srt://127.0.0.1:8888?mode=listener (target=srt_whep::stream::gst_pipeline, line=246, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:30.318216962Z]  INFO: srt_whep/969624 on x: Successfully inserted video sink (target=srt_whep::stream::gst_pipeline, line=458, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:30.318300667Z]  INFO: srt_whep/969624 on x: Successfully inserted audio sink (target=srt_whep::stream::gst_pipeline, line=442, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:30.318335883Z]  INFO: srt_whep/969624 on x: No more pads from the stream. Ready to link. (target=srt_whep::stream::gst_pipeline, line=272, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:30.318362963Z] DEBUG: srt_whep/969624 on x: linking to media "video/x-h264" (target=srt_whep::stream::gst_pipeline, line=290, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:30.319129898Z] DEBUG: srt_whep/969624 on x: linking to media "audio/mpeg" (target=srt_whep::stream::gst_pipeline, line=290, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:30.414431806Z]  INFO: srt_whep/969624 on x: Successfully linked stream. Ready to play. (target=srt_whep::stream::gst_pipeline, line=389, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:37.487455113Z]  INFO: srt_whep/969624 on x: [HTTP REQUEST - START] (target=tracing_actix_web::root_span_builder, line=41, http.client_ip=127.0.0.1, request_id=a64495ef-4e87-4588-a5ef-19b838f991d0, http.host=localhost:8000, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.flavor=1.1, http.scheme=http, http.method=POST, http.target=/channel)
    file: /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-actix-web-0.7.6/src/root_span_builder.rs
    --
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.487771831Z]  INFO: srt_whep/969624 on x: [WHEP - START] (target=srt_whep::routes::whep_handler, line=9, file=src/routes/whep_handler.rs, http.client_ip=127.0.0.1, request_id=a64495ef-4e87-4588-a5ef-19b838f991d0, http.host=localhost:8000, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.flavor=1.1, http.scheme=http, http.method=POST, http.target=/channel)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.487976141Z] DEBUG: srt_whep/969624 on x: (target=srt_whep::routes::whep_handler, line=16, file=src/routes/whep_handler.rs, http.client_ip=127.0.0.1, request_id=a64495ef-4e87-4588-a5ef-19b838f991d0, http.host=localhost:8000, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.flavor=1.1, http.scheme=http, http.method=POST, http.target=/channel)
    [WHEP - EVENT] WHIP Offer: 
     v=0
    o=- 1441595908707314255 2 IN IP4 127.0.0.1
    s=-
    t=0 0
    a=group:BUNDLE 0 1
    a=extmap-allow-mixed
    a=msid-semantic: WMS
    m=video 50098 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 35 36 37 38 102 103 104 105 106 107 108 109 127 125 39 40 41 42 43 44 45 46 47 48 112 113 114 49
    c=IN IP4 16.16.10.76
    a=rtcp:9 IN IP4 0.0.0.0
    a=candidate:1108975549 1 udp 2113937151 7e63d173-5795-48fc-822e-1d95f79fca24.local 52199 typ host generation 0 network-cost 999
    a=candidate:3218063886 1 udp 1677729535 109.251.106.16 52199 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999
    a=candidate:3332544218 1 udp 33562623 16.16.10.76 50098 typ relay raddr 109.251.106.16 rport 52199 generation 0 network-cost 999
    a=ice-ufrag:QjkR
    a=ice-pwd:IFMLGuxq+Vf1sFbHJcMU123W
    a=ice-options:trickle
    a=fingerprint:sha-256 01:B7:CB:F3:CE:DF:62:D2:58:29:DC:93:EE:91:10:49:27:48:C5:29:1F:BB:14:12:61:5D:A3:CB:09:F0:33:59
    a=setup:actpass
    a=mid:0
    a=extmap:1 urn:ietf:params:rtp-hdrext:toffset
    a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
    a=extmap:3 urn:3gpp:video-orientation
    a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
    a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
    a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
    a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
    a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
    a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
    a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
    a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
    a=recvonly
    a=rtcp-mux
    a=rtcp-rsize
    a=rtpmap:96 VP8/90000
    a=rtcp-fb:96 goog-remb
    a=rtcp-fb:96 transport-cc
    a=rtcp-fb:96 ccm fir
    a=rtcp-fb:96 nack
    a=rtcp-fb:96 nack pli
    a=rtpmap:97 rtx/90000
    a=fmtp:97 apt=96
    a=rtpmap:98 VP9/90000
    a=rtcp-fb:98 goog-remb
    a=rtcp-fb:98 transport-cc
    a=rtcp-fb:98 ccm fir
    a=rtcp-fb:98 nack
    a=rtcp-fb:98 nack pli
    a=fmtp:98 profile-id=0
    a=rtpmap:99 rtx/90000
    a=fmtp:99 apt=98
    a=rtpmap:100 VP9/90000
    a=rtcp-fb:100 goog-remb
    a=rtcp-fb:100 transport-cc
    a=rtcp-fb:100 ccm fir
    a=rtcp-fb:100 nack
    a=rtcp-fb:100 nack pli
    a=fmtp:100 profile-id=2
    a=rtpmap:101 rtx/90000
    a=fmtp:101 apt=100
    a=rtpmap:35 VP9/90000
    a=rtcp-fb:35 goog-remb
    a=rtcp-fb:35 transport-cc
    a=rtcp-fb:35 ccm fir
    a=rtcp-fb:35 nack
    a=rtcp-fb:35 nack pli
    a=fmtp:35 profile-id=1
    a=rtpmap:36 rtx/90000
    a=fmtp:36 apt=35
    a=rtpmap:37 VP9/90000
    a=rtcp-fb:37 goog-remb
    a=rtcp-fb:37 transport-cc
    a=rtcp-fb:37 ccm fir
    a=rtcp-fb:37 nack
    a=rtcp-fb:37 nack pli
    a=fmtp:37 profile-id=3
    a=rtpmap:38 rtx/90000
    a=fmtp:38 apt=37
    a=rtpmap:102 H264/90000
    a=rtcp-fb:102 goog-remb
    a=rtcp-fb:102 transport-cc
    a=rtcp-fb:102 ccm fir
    a=rtcp-fb:102 nack
    a=rtcp-fb:102 nack pli
    a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
    a=rtpmap:103 rtx/90000
    a=fmtp:103 apt=102
    a=rtpmap:104 H264/90000
    a=rtcp-fb:104 goog-remb
    a=rtcp-fb:104 transport-cc
    a=rtcp-fb:104 ccm fir
    a=rtcp-fb:104 nack
    a=rtcp-fb:104 nack pli
    a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
    a=rtpmap:105 rtx/90000
    a=fmtp:105 apt=104
    a=rtpmap:106 H264/90000
    a=rtcp-fb:106 goog-remb
    a=rtcp-fb:106 transport-cc
    a=rtcp-fb:106 ccm fir
    a=rtcp-fb:106 nack
    a=rtcp-fb:106 nack pli
    a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
    a=rtpmap:107 rtx/90000
    a=fmtp:107 apt=106
    a=rtpmap:108 H264/90000
    a=rtcp-fb:108 goog-remb
    a=rtcp-fb:108 transport-cc
    a=rtcp-fb:108 ccm fir
    a=rtcp-fb:108 nack
    a=rtcp-fb:108 nack pli
    a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
    a=rtpmap:109 rtx/90000
    a=fmtp:109 apt=108
    a=rtpmap:127 H264/90000
    a=rtcp-fb:127 goog-remb
    a=rtcp-fb:127 transport-cc
    a=rtcp-fb:127 ccm fir
    a=rtcp-fb:127 nack
    a=rtcp-fb:127 nack pli
    a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
    a=rtpmap:125 rtx/90000
    a=fmtp:125 apt=127
    a=rtpmap:39 H264/90000
    a=rtcp-fb:39 goog-remb
    a=rtcp-fb:39 transport-cc
    a=rtcp-fb:39 ccm fir
    a=rtcp-fb:39 nack
    a=rtcp-fb:39 nack pli
    a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
    a=rtpmap:40 rtx/90000
    a=fmtp:40 apt=39
    a=rtpmap:41 H264/90000
    a=rtcp-fb:41 goog-remb
    a=rtcp-fb:41 transport-cc
    a=rtcp-fb:41 ccm fir
    a=rtcp-fb:41 nack
    a=rtcp-fb:41 nack pli
    a=fmtp:41 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=f4001f
    a=rtpmap:42 rtx/90000
    a=fmtp:42 apt=41
    a=rtpmap:43 H264/90000
    a=rtcp-fb:43 goog-remb
    a=rtcp-fb:43 transport-cc
    a=rtcp-fb:43 ccm fir
    a=rtcp-fb:43 nack
    a=rtcp-fb:43 nack pli
    a=fmtp:43 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=f4001f
    a=rtpmap:44 rtx/90000
    a=fmtp:44 apt=43
    a=rtpmap:45 AV1/90000
    a=rtcp-fb:45 goog-remb
    a=rtcp-fb:45 transport-cc
    a=rtcp-fb:45 ccm fir
    a=rtcp-fb:45 nack
    a=rtcp-fb:45 nack pli
    a=rtpmap:46 rtx/90000
    a=fmtp:46 apt=45
    a=rtpmap:47 AV1/90000
    a=rtcp-fb:47 goog-remb
    a=rtcp-fb:47 transport-cc
    a=rtcp-fb:47 ccm fir
    a=rtcp-fb:47 nack
    a=rtcp-fb:47 nack pli
    a=fmtp:47 profile=1
    a=rtpmap:48 rtx/90000
    a=fmtp:48 apt=47
    a=rtpmap:112 red/90000
    a=rtpmap:113 rtx/90000
    a=fmtp:113 apt=112
    a=rtpmap:114 ulpfec/90000
    a=rtpmap:49 flexfec-03/90000
    a=rtcp-fb:49 goog-remb
    a=rtcp-fb:49 transport-cc
    a=fmtp:49 repair-window=10000000
    m=audio 61833 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
    c=IN IP4 16.16.10.76
    a=rtcp:9 IN IP4 0.0.0.0
    a=candidate:1108975549 1 udp 2113937151 7e63d173-5795-48fc-822e-1d95f79fca24.local 60491 typ host generation 0 network-cost 999
    a=candidate:3218063886 1 udp 1677729535 109.251.106.16 60491 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999
    a=candidate:3332544218 1 udp 33562623 16.16.10.76 61833 typ relay raddr 109.251.106.16 rport 60491 generation 0 network-cost 999
    a=ice-ufrag:QjkR
    a=ice-pwd:IFMLGuxq+Vf1sFbHJcMU123W
    a=ice-options:trickle
    a=fingerprint:sha-256 01:B7:CB:F3:CE:DF:62:D2:58:29:DC:93:EE:91:10:49:27:48:C5:29:1F:BB:14:12:61:5D:A3:CB:09:F0:33:59
    a=setup:actpass
    a=mid:1
    a=extmap:14 urn:ietf:params:rtp-hdrext:ssrc-audio-level
    a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
    a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
    a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
    a=recvonly
    a=rtcp-mux
    a=rtpmap:111 opus/48000/2
    a=rtcp-fb:111 nack
    a=rtcp-fb:111 transport-cc
    a=fmtp:111 minptime=10;useinbandfec=1
    a=rtpmap:63 red/48000/2
    a=fmtp:63 111/111
    a=rtpmap:9 G722/8000
    a=rtpmap:0 PCMU/8000
    a=rtpmap:8 PCMA/8000
    a=rtpmap:13 CN/8000
    a=rtpmap:110 telephone-event/48000
    a=rtpmap:126 telephone-event/8000

    --
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.488782398Z]  INFO: srt_whep/969624 on x: [WHEP - END] (target=srt_whep::routes::whep_handler, line=9, file=src/routes/whep_handler.rs, http.client_ip=127.0.0.1, request_id=a64495ef-4e87-4588-a5ef-19b838f991d0, http.host=localhost:8000, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.flavor=1.1, http.scheme=http, http.method=POST, elapsed_milliseconds=0, http.target=/channel)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.489017555Z]  WARN: srt_whep/969624 on x: (target=tracing_actix_web::middleware, line=256, http.status_code=400, http.host=localhost:8000, http.route=/channel, otel.status_code=OK, otel.name="HTTP POST /channel", http.flavor=1.1, http.scheme=http, http.target=/channel, http.client_ip=127.0.0.1, request_id=a64495ef-4e87-4588-a5ef-19b838f991d0, otel.kind=server, http.method=POST)
    [HTTP REQUEST - EVENT] Error encountered while processing the incoming HTTP request: Failed to process request: Invalid SDP: Empty body expected. Client initialization not supported.

    --
    file: /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-actix-web-0.7.6/src/middleware.rs
    --
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
    --
    exception.message: Failed to process request: Invalid SDP: Empty body expected. Client initialization not supported.
    --
    exception.details: Failed to process request: Invalid SDP: Empty body expected. Client initialization not supported.

[2024-03-19T17:52:37.489270816Z]  INFO: srt_whep/969624 on x: [HTTP REQUEST - END] (target=tracing_actix_web::root_span_builder, line=41, http.status_code=400, http.host=localhost:8000, http.route=/channel, otel.status_code=OK, otel.name="HTTP POST /channel", http.flavor=1.1, http.scheme=http, elapsed_milliseconds=1, http.target=/channel, http.client_ip=127.0.0.1, request_id=a64495ef-4e87-4588-a5ef-19b838f991d0, otel.kind=server, http.method=POST)
    file: /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-actix-web-0.7.6/src/root_span_builder.rs
    --
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
    --
    exception.message: Failed to process request: Invalid SDP: Empty body expected. Client initialization not supported.
    --
    exception.details: Failed to process request: Invalid SDP: Empty body expected. Client initialization not supported.

[2024-03-19T17:52:37.494983487Z]  INFO: srt_whep/969624 on x: [HTTP REQUEST - START] (target=tracing_actix_web::root_span_builder, line=41, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    file: /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-actix-web-0.7.6/src/root_span_builder.rs
    --
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.495152701Z]  INFO: srt_whep/969624 on x: [WHEP - START] (target=srt_whep::routes::whep_handler, line=9, file=src/routes/whep_handler.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.495353695Z]  INFO: srt_whep/969624 on x: [WHEP - EVENT] Create connection d65fcadc-2519-4c32-9fa2-6a4db960f6b4 at time: 2024-03-19T17:52:37.495316125Z (target=srt_whep::routes::whep_handler, line=32, file=src/routes/whep_handler.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.495443401Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Add connection d65fcadc-2519-4c32-9fa2-6a4db960f6b4 to pipeline (target=srt_whep::stream::gst_pipeline, line=92, file=src/stream/gst_pipeline.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.496530811Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Successfully linked video to whip sink (target=srt_whep::stream::gst_pipeline, line=128, file=src/stream/gst_pipeline.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.496911879Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Successfully linked audio to whip sink (target=srt_whep::stream::gst_pipeline, line=150, file=src/stream/gst_pipeline.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.497832509Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Add connection d65fcadc-2519-4c32-9fa2-6a4db960f6b4 to app state (target=srt_whep::domain::app_state, line=110, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.497902549Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Waiting for SDP offer from WHIP sink (target=srt_whep::routes::whep_handler, line=44, file=src/routes/whep_handler.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:37.497942313Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 0/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

(srt-whep:969624): webrtcsink-WARNING **: 19:52:37.526: The `rtpgccbwe` element is not available not doing any congestion control: BoolError { message: "Failed to find element factory with name 'rtpgccbwe' for creating element", filename: "/home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gstreamer-0.21.0/src/element_factory.rs", function: "gstreamer::element_factory::ElementBuilder::build::{{closure}}", line: 291 }
thread 'tokio-runtime-worker' panicked at /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gst-plugin-webrtc-0.11.0/src/webrtcsink/imp.rs:1373:18:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2024-03-19T17:52:38.499802745Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 1/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:39.501744049Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 2/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:40.503267509Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 3/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:41.504210513Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 4/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:42.505291054Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 5/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:43.506337043Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 6/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:44.507182101Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 7/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:45.508718154Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 8/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:46.510130891Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Wait on WHIP SDP offer: d65fcadc-2519-4c32-9fa2-6a4db960f6b4 for 9/10 times (target=srt_whep::domain::app_state, line=194, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:47.511642974Z] ERROR: srt_whep/969624 on x: [WHEP - EVENT] Failed to receive SDP offer from WHIP sink: SDP offer not found (target=srt_whep::routes::whep_handler, line=58, file=src/routes/whep_handler.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:47.511740796Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Remove connection d65fcadc-2519-4c32-9fa2-6a4db960f6b4 from pipeline (target=srt_whep::stream::gst_pipeline, line=171, file=src/stream/gst_pipeline.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:47.511781191Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Removing video-queue-d65fcadc-2519-4c32-9fa2-6a4db960f6b4 from pipeline (target=srt_whep::stream::gst_pipeline, line=632, file=src/stream/gst_pipeline.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:47.511943913Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Removing audio-queue-d65fcadc-2519-4c32-9fa2-6a4db960f6b4 from pipeline (target=srt_whep::stream::gst_pipeline, line=632, file=src/stream/gst_pipeline.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:47.512007501Z] DEBUG: srt_whep/969624 on x: Pad is removed from tee (target=srt_whep::stream::gst_pipeline, line=662, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:47.51219558Z] DEBUG: srt_whep/969624 on x: [WHEP - EVENT] Remove connection d65fcadc-2519-4c32-9fa2-6a4db960f6b4 from app state (target=srt_whep::domain::app_state, line=91, file=src/domain/app_state.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:47.512213904Z] DEBUG: srt_whep/969624 on x: Pad is removed from tee (target=srt_whep::stream::gst_pipeline, line=662, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:47.512271932Z]  INFO: srt_whep/969624 on x: [WHEP - END] (target=srt_whep::routes::whep_handler, line=9, file=src/routes/whep_handler.rs, http.route=/channel, otel.kind=server, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, http.flavor=1.1, elapsed_milliseconds=10017, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.scheme=http, http.client_ip=127.0.0.1)
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:47.512406362Z]  WARN: srt_whep/969624 on x: (target=tracing_actix_web::middleware, line=256, http.status_code=400, http.flavor=1.1, exception.message="Failed to process request: SDP offer not found", http.scheme=http, http.route=/channel, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, otel.status_code=OK, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.client_ip=127.0.0.1, otel.kind=server)
    [HTTP REQUEST - EVENT] Error encountered while processing the incoming HTTP request: Failed to process request: SDP offer not found

    --
    file: /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-actix-web-0.7.6/src/middleware.rs
    --
    exception.details: Failed to process request: SDP offer not found

    --
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:47.512428142Z] DEBUG: srt_whep/969624 on x: video-queue-d65fcadc-2519-4c32-9fa2-6a4db960f6b4 is removed from pipeline (target=srt_whep::stream::gst_pipeline, line=615, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:47.512438311Z] DEBUG: srt_whep/969624 on x: audio-queue-d65fcadc-2519-4c32-9fa2-6a4db960f6b4 is removed from pipeline (target=srt_whep::stream::gst_pipeline, line=615, file=src/stream/gst_pipeline.rs)
[2024-03-19T17:52:47.512533909Z]  INFO: srt_whep/969624 on x: [HTTP REQUEST - END] (target=tracing_actix_web::root_span_builder, line=41, http.status_code=400, elapsed_milliseconds=10017, http.flavor=1.1, exception.message="Failed to process request: SDP offer not found", http.scheme=http, http.route=/channel, otel.name="HTTP POST /channel", http.target=/channel, http.method=POST, http.host=localhost:8000, otel.status_code=OK, request_id=ff794771-de71-4b9e-a866-34455a99239a, http.client_ip=127.0.0.1, otel.kind=server)
    file: /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-actix-web-0.7.6/src/root_span_builder.rs
    --
    exception.details: Failed to process request: SDP offer not found

    --
    http.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
[2024-03-19T17:52:47.512705237Z] DEBUG: srt_whep/969624 on x: whip-sink-d65fcadc-2519-4c32-9fa2-6a4db960f6b4 is removed from pipeline (target=srt_whep::stream::gst_pipeline, line=615, file=src/stream/gst_pipeline.rs)

Expected result: WebRTC in WHEP mode is working and I see the same stream as I can see with gst-launch-1.0 playbin uri="srt://127.0.0.1:8888" inside the https://webrtc.player.eyevinn.technology/ player.

Wkkkkk commented 5 months ago

Hi @onorua, Thanks for trying it out.

(srt-whep:969624): webrtcsink-WARNING **: 19:52:37.526: The rtpgccbwe element is not available not doing any congestion control: BoolError { message: "Failed to find element factory with name 'rtpgccbwe' for creating element" }

From the log you shared, it seems that some elements from GStreamer are missing. Most likely we had some problems installing the framework. But it should be easy to fix. I wonder if you are building it from the source or installing from Cargo? And what platform (MacOS or Linux) are you expecting to run it?

If you are building from the source code. Maybe you have installed GStreamer packages and would you like to check with the command gst-inspect-1.0 rtpgccbwe? In my case, the outcome looks like the following.

Factory Details: Rank none (0) Long-name Google Congestion Control bandwidth estimator Klass Network/WebRTC/RTP/Filter Description Estimates current network bandwidth using the Google Congestion Control algorithm notifying about it through the 'bitrate' property Author Thibault Saunier tsaunier@igalia.com Documentation https://gstreamer.freedesktop.org/documentation/rsrtp/rtpgccbwe.html ...

Wkkkkk commented 5 months ago

Some more details about your running environment would help a lot to fix the problem.

onorua commented 5 months ago

Linux Debian host Linux x 6.7.0 #6 SMP PREEMPT_DYNAMIC Sat Feb 17 17:13:57 EET 2024 x86_64 GNU/Linux I've compiled srt-whep from source code :

   Compiling libc v0.2.147
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling pkg-config v0.3.27
   Compiling once_cell v1.18.0
   Compiling pin-project-lite v0.2.12
   Compiling memchr v2.5.0
   Compiling serde v1.0.183
   Compiling hashbrown v0.14.0
   Compiling futures-core v0.3.28
   Compiling smallvec v1.11.0
   Compiling equivalent v1.0.1
   Compiling winnow v0.5.7
   Compiling version_check v0.9.4
   Compiling bytes v1.4.0
   Compiling heck v0.4.1
   Compiling target-lexicon v0.12.11
   Compiling log v0.4.19
   Compiling futures-sink v0.3.28
   Compiling futures-task v0.3.28
   Compiling futures-channel v0.3.28
   Compiling itoa v1.0.9
   Compiling futures-util v0.3.28
   Compiling slab v0.4.8
   Compiling version-compare v0.1.1
   Compiling pin-utils v0.1.0
   Compiling futures-io v0.3.28
   Compiling lock_api v0.4.10
   Compiling parking_lot_core v0.9.8
   Compiling scopeguard v1.2.0
   Compiling indexmap v2.0.0
   Compiling num-traits v0.2.16
   Compiling fnv v1.0.7
   Compiling tracing-core v0.1.31
   Compiling http v0.2.9
   Compiling num-integer v0.1.45
   Compiling percent-encoding v2.3.0
   Compiling serde_derive v1.0.183
   Compiling quote v1.0.32
   Compiling cfg-expr v0.15.4
   Compiling ryu v1.0.15
   Compiling httparse v1.8.0
   Compiling either v1.9.0
   Compiling indexmap v1.9.3
   Compiling syn v2.0.28
   Compiling jobserver v0.1.26
   Compiling socket2 v0.5.3
   Compiling mio v0.8.8
   Compiling signal-hook-registry v1.4.1
   Compiling num_cpus v1.16.0
   Compiling cc v1.0.82
   Compiling parking_lot v0.12.1
   Compiling time-core v0.1.1
   Compiling typenum v1.16.0
   Compiling syn v1.0.109
   Compiling time-macros v0.2.11
   Compiling generic-array v0.14.7
   Compiling hashbrown v0.12.3
   Compiling deranged v0.3.7
   Compiling socket2 v0.4.9
   Compiling httpdate v1.0.2
   Compiling getrandom v0.2.10
   Compiling untrusted v0.7.1
   Compiling spin v0.5.2
   Compiling openssl-probe v0.1.5
   Compiling form_urlencoded v1.2.0
   Compiling subtle v2.5.0
   Compiling base64 v0.21.2
   Compiling aho-corasick v1.0.3
   Compiling tower-service v0.3.2
   Compiling try-lock v0.2.4
   Compiling regex-syntax v0.7.4
   Compiling outref v0.5.1
   Compiling vsimd v0.8.0
   Compiling want v0.3.1
   Compiling http-body v0.4.5
   Compiling cpufeatures v0.2.9
   Compiling thiserror v1.0.44
   Compiling paste v1.0.14
   Compiling lazy_static v1.4.0
   Compiling rustls v0.21.6
   Compiling bitflags v2.3.3
   Compiling bytes-utils v0.1.3
   Compiling proc-macro-error-attr v1.0.4
   Compiling ring v0.16.20
   Compiling vcpkg v0.2.15
   Compiling base64-simd v0.8.0
   Compiling bitflags v1.3.2
   Compiling tinyvec_macros v0.1.1
   Compiling rustls-pemfile v1.0.3
   Compiling proc-macro-error v1.0.4
   Compiling tinyvec v1.6.0
   Compiling semver v1.0.18
   Compiling rustls-native-certs v0.6.3
   Compiling unicode-bidi v0.3.13
   Compiling block-buffer v0.10.4
   Compiling time v0.3.25
   Compiling crypto-common v0.1.6
   Compiling toml_datetime v0.6.3
   Compiling serde_spanned v0.6.3
   Compiling digest v0.10.7
   Compiling tower-layer v0.3.2
   Compiling toml_edit v0.19.14
   Compiling num-rational v0.4.1
   Compiling openssl-sys v0.9.91
   Compiling fastrand v2.0.0
   Compiling serde_json v1.0.104
   Compiling rand_core v0.6.4
   Compiling unicode-normalization v0.1.22
   Compiling rustc_version v0.4.0
   Compiling openssl v0.10.56
   Compiling foreign-types-shared v0.1.1
   Compiling ppv-lite86 v0.2.17
   Compiling zeroize v1.6.0
   Compiling foreign-types v0.3.2
   Compiling option-operations v0.5.0
   Compiling itertools v0.11.0
   Compiling native-tls v0.2.11
   Compiling idna v0.4.0
   Compiling regex-automata v0.3.6
   Compiling rand_chacha v0.3.1
   Compiling aws-types v0.56.0
   Compiling serde_bytes v0.11.12
   Compiling muldiv v1.0.1
   Compiling url v2.4.0
   Compiling pretty-hex v0.3.0
   Compiling rand v0.8.5
   Compiling aws-smithy-types v0.56.0
   Compiling toml v0.7.6
   Compiling proc-macro-crate v1.3.1
   Compiling sha2 v0.10.7
   Compiling system-deps v6.1.1
   Compiling sha1 v0.10.5
   Compiling hmac v0.12.1
   Compiling zstd-sys v2.0.8+zstd.1.5.5
   Compiling hex v0.4.3
   Compiling uuid v1.4.1
   Compiling anyhow v1.0.72
   Compiling bytestring v1.3.0
   Compiling ahash v0.8.3
   Compiling local-waker v0.1.3
   Compiling zstd-safe v6.0.6
   Compiling atomic_refcell v0.1.10
   Compiling alloc-no-stdlib v2.0.4
   Compiling iana-time-zone v0.1.57
   Compiling crc32fast v1.3.2
   Compiling alloc-stdlib v0.2.2
   Compiling itertools v0.10.5
   Compiling aws-smithy-json v0.56.0
   Compiling encoding_rs v0.8.32
   Compiling utf-8 v0.7.6
   Compiling adler v1.0.2
   Compiling regex v1.9.3
   Compiling data-encoding v2.4.0
   Compiling rustix v0.38.8
   Compiling mime v0.3.17
   Compiling byteorder v1.4.3
   Compiling tracing v0.1.37
   Compiling miniz_oxide v0.7.1
   Compiling brotli-decompressor v2.3.4
   Compiling actix-utils v3.0.1
   Compiling serde_urlencoded v0.7.1
   Compiling actix-service v2.0.2
   Compiling cookie v0.16.2
   Compiling sct v0.7.0
   Compiling rustls-webpki v0.101.3
   Compiling ahash v0.7.6
   Compiling linux-raw-sys v0.4.5
   Compiling convert_case v0.4.0
   Compiling futures-macro v0.3.28
   Compiling tokio-macros v2.1.0
   Compiling tracing-attributes v0.1.26
   Compiling thiserror-impl v1.0.44
   Compiling pin-project-internal v1.1.3
   Compiling openssl-macros v0.1.1
   Compiling prost-derive v0.11.9
   Compiling derive_more v0.99.17
   Compiling brotli v3.3.4
   Compiling tokio v1.30.0
   Compiling chrono v0.4.26
   Compiling glib-sys v0.18.1
   Compiling gobject-sys v0.18.0
   Compiling gstreamer-sys v0.21.0
   Compiling gstreamer-base-sys v0.21.0
   Compiling pin-project v1.1.3
   Compiling gio-sys v0.18.1
   Compiling glib-macros v0.18.0
   Compiling gstreamer-video-sys v0.21.0
   Compiling gstreamer-sdp-sys v0.21.0
   Compiling gstreamer-audio-sys v0.21.0
   Compiling gstreamer-app-sys v0.21.0
   Compiling gstreamer-webrtc-sys v0.21.0
   Compiling gstreamer-rtp-sys v0.21.0
   Compiling prost v0.11.9
   Compiling flate2 v1.0.26
   Compiling actix-router v0.5.1
   Compiling xmlparser v0.13.5
   Compiling urlencoding v2.1.3
   Compiling utf8parse v0.2.1
   Compiling regex-syntax v0.6.29
   Compiling language-tags v0.3.2
   Compiling aws-smithy-query v0.56.0
   Compiling aws-smithy-xml v0.56.0
   Compiling anstyle-parse v0.2.1
   Compiling prost-types v0.11.9
   Compiling gst-plugin-version-helper v0.7.5
   Compiling futures-executor v0.3.28
   Compiling local-channel v0.1.3
   Compiling tungstenite v0.19.0
   Compiling actix-web-codegen v4.2.0
   Compiling gstreamer-pbutils-sys v0.21.0
   Compiling is-terminal v0.4.9
   Compiling actix-macros v0.2.4
   Compiling webpki v0.22.0
   Compiling time v0.1.45
   Compiling colorchoice v1.0.0
   Compiling overload v0.1.1
   Compiling anstyle-query v1.0.0
   Compiling anstyle v1.0.1
   Compiling async-trait v0.1.72
   Compiling nu-ansi-term v0.46.0
   Compiling anstream v0.3.2
   Compiling webpki-roots v0.22.6
   Compiling regex-automata v0.1.10
   Compiling gst-plugin-webrtc v0.11.0
   Compiling tungstenite v0.20.0
   Compiling jsonwebtoken v8.3.0
   Compiling tokio-util v0.7.8
   Compiling tokio-stream v0.1.14
   Compiling tokio-rustls v0.24.1
   Compiling tower v0.4.13
   Compiling tokio-native-tls v0.3.1
   Compiling actix-rt v2.8.0
   Compiling livekit-protocol v0.1.3
   Compiling matchers v0.1.0
   Compiling aws-smithy-async v0.56.0
   Compiling h2 v0.3.20
   Compiling aws-credential-types v0.56.0
   Compiling actix-codec v0.5.1
   Compiling actix-server v2.2.0
   Compiling tokio-tungstenite v0.19.0
   Compiling tracing-log v0.1.3
   Compiling sharded-slab v0.1.4
   Compiling thread_local v1.1.7
   Compiling glib v0.18.1
   Compiling minimal-lexical v0.2.1
   Compiling strsim v0.10.0
   Compiling linked-hash-map v0.5.6
   Compiling clap_lex v0.5.0
   Compiling ipnet v2.8.0
   Compiling clap_builder v4.3.21
   Compiling tracing-subscriber v0.3.17
   Compiling yaml-rust v0.4.5
   Compiling nom v7.1.3
   Compiling async-tungstenite v0.23.0
   Compiling futures v0.3.28
   Compiling async-recursion v1.0.4
   Compiling clap_derive v4.3.12
   Compiling parse_link_header v0.3.3
   Compiling gst-plugin-webrtc-signalling-protocol v0.11.0
   Compiling livekit-api v0.1.3
   Compiling gethostname v0.2.3
   Compiling url-escape v0.1.1
   Compiling pathdiff v0.2.1
   Compiling human_bytes v0.4.2
   Compiling serde-aux v4.2.0
   Compiling timed-locks v0.1.1
   Compiling validator v0.16.1
   Compiling tracing-bunyan-formatter v0.3.8
   Compiling secrecy v0.8.0
   Compiling unicode-segmentation v1.10.1
   Compiling config v0.13.3
   Compiling tokio-async-drop v0.1.0
   Compiling hyper v0.14.27
   Compiling clap v4.3.21
   Compiling gstreamer v0.21.0
   Compiling zstd v0.12.4
   Compiling aws-smithy-http v0.56.0
   Compiling hyper-rustls v0.24.1
   Compiling hyper-tls v0.5.0
   Compiling actix-http v3.3.1
   Compiling reqwest v0.11.18
   Compiling aws-smithy-http-tower v0.56.0
   Compiling aws-sigv4 v0.56.0
   Compiling aws-smithy-runtime-api v0.56.0
   Compiling aws-smithy-client v0.56.0
   Compiling aws-smithy-runtime v0.56.0
   Compiling aws-http v0.56.0
   Compiling aws-sig-auth v0.56.0
   Compiling aws-runtime v0.56.0
   Compiling actix-web v4.3.1
   Compiling aws-sdk-sts v0.29.0
   Compiling aws-sdk-sso v0.29.0
   Compiling aws-sdk-kinesisvideosignaling v0.29.0
   Compiling aws-sdk-kinesisvideo v0.29.0
   Compiling actix-cors v0.6.4
   Compiling tracing-actix-web v0.7.6
   Compiling aws-config v0.56.0
   Compiling gstreamer-base v0.21.0
   Compiling gstreamer-sdp v0.21.0
   Compiling gstreamer-rtp v0.21.0
   Compiling gstreamer-webrtc v0.21.0
   Compiling gstreamer-video v0.21.0
   Compiling gstreamer-app v0.21.0
   Compiling gstreamer-audio v0.21.0
   Compiling gstreamer-utils v0.21.0
   Compiling gstreamer-pbutils v0.21.0
   Compiling srt_whep v1.2.1 (/home/onorua/p/streaming/srt-whep)
    Finished dev [unoptimized + debuginfo] target(s) in 1m 24s

Looks like the plugin was not installed:

gst-inspect-1.0 rtpgccbwe
No such element or plugin 'rtpgccbwe'

Installed sudo apt install gstreamer1.0-plugins-rtp

But I still see the Warning:

(srt-whep:1546355): webrtcsink-WARNING **: 11:10:41.946: The `rtpgccbwe` element is not available not doing any congestion control: BoolError { message: "Failed to find element factory with name 'rtpgccbwe' for creating element", filename: "/home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gstreamer-0.21.0/src/element_factory.rs", function: "gstreamer::element_factory::ElementBuilder::build::{{closure}}", line: 291 }
thread 'tokio-runtime-worker' panicked at /home/onorua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gst-plugin-webrtc-0.11.0/src/webrtcsink/imp.rs:1373:18:
called `Option::unwrap()` on a `None` value

Docker environment worked out fine. So I've checked the list of packages suggested in the installation guide and looks like these 3 were not installed: gstreamer1.0-gtk3 gstreamer1.0-nice gstreamer1.0-qt After installing - I see the test stream. Sorry for bothering!