webrtc rust sample problem

Jun Xiao xiaojuntime at gmail.com
Tue Nov 8 16:11:09 UTC 2022


Thanks Mathieu,

Following is the message with debug log:
gst-plugins-rs$ GST_DEBUG=webrtcsink:6 gst-launch-1.0 webrtcsink
name=ws videotestsrc ! ws. audiotestsrc ! ws.
Setting pipeline to PAUSED ...
0:00:00.017416246  7466 0x55655b56c2d0 DEBUG             webrtcsink
net/webrtc/src/webrtcsink/imp.rs:1192:gstrswebrtc::webrtcsink::imp:<ws>
preparing
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.018513516  7466 0x55655b5fc580 INFO              webrtcsink
net/webrtc/src/webrtcsink/imp.rs:2260:gstrswebrtc::webrtcsink::imp:<ws:video_0>
Received caps event Caps(Event { ptr: 0x55655b603150, type: "caps",
seqnum: Seqnum(50), structure: Some(GstEventCaps { caps: (GstCaps)
video/x-raw, format=(string)ABGR64_LE, width=(int)320,
height=(int)240, framerate=(fraction)30/1,
multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive }) })
Redistribute latency...
0:00:00.028336475  7466 0x55655b5fc5e0 INFO              webrtcsink
net/webrtc/src/webrtcsink/imp.rs:2260:gstrswebrtc::webrtcsink::imp:<ws:audio_0>
Received caps event Caps(Event { ptr: 0x7f77680034a0, type: "caps",
seqnum: Seqnum(61), structure: Some(GstEventCaps { caps: (GstCaps)
audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)44100, channels=(int)1 }) })
Redistribute latency...
0:00:00.095827060  7466 0x7f776c05aea0 ERROR             webrtcsink
net/webrtc/src/webrtcsink/imp.rs:2298:gstrswebrtc::webrtcsink::imp:<ws>
error: No caps found for stream video_0
ERROR: from element /GstPipeline:pipeline0/GstWebRTCSink:ws: There is
no codec present that can handle the stream's type.
Additional debug info:
net/webrtc/src/webrtcsink/imp.rs(2299): gstrswebrtc::webrtcsink::imp
(): /GstPipeline:pipeline0/GstWebRTCSink:ws:
Failed to look up output caps: No caps found for stream video_0
Execution ended after 0:00:00.077864232
Setting pipeline to NULL ...
0:00:00.101370102  7466 0x55655b56c2d0 INFO              webrtcsink
net/webrtc/src/webrtcsink/imp.rs:1207:gstrswebrtc::webrtcsink::imp:<ws>
unpreparing
Freeing pipeline ...

On Tue, Nov 8, 2022 at 11:59 PM Mathieu Duponchelle
<mathieu at centricular.com> wrote:
>
> Do you have video encoders available on your system? Perhaps try to run
> with GST_DEBUG=webrtcsink:6 to get more information.
>
> On Tue, 2022-11-08 at 23:54 +0800, Jun Xiao via gstreamer-devel wrote:
> > Hi,
> >
> > When I tried to run webrtc rust sample in ubuntu 22.04 VM by
> > following
> > https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/tree/main/net/webrtc
> > ,
> > I met following problem:
> >
> > $gst-launch-1.0 webrtcsink name=ws videotestsrc ! ws. audiotestsrc !
> > ws.
> > Setting pipeline to PAUSED ...
> > Pipeline is live and does not need PREROLL ...
> > Pipeline is PREROLLED ...
> > Setting pipeline to PLAYING ...
> > New clock: GstSystemClock
> > Redistribute latency...
> > Redistribute latency...
> > 0:00:00.052590872  7339 0x7fb29006b8a0 ERROR             webrtcsink
> > net/webrtc/src/webrtcsink/imp.rs:2298:gstrswebrtc::webrtcsink::imp:<w
> > s>
> > error: No caps found for stream video_0
> > ERROR: from element /GstPipeline:pipeline0/GstWebRTCSink:ws: There is
> > no codec present that can handle the stream's type.
> > Additional debug info:
> > net/webrtc/src/webrtcsink/imp.rs(2299): gstrswebrtc::webrtcsink::imp
> > (): /GstPipeline:pipeline0/GstWebRTCSink:ws:
> > Failed to look up output caps: No caps found for stream video_0
> > Execution ended after 0:00:00.036349323
> > Setting pipeline to NULL ...
> > Freeing pipeline ...
> >
> > Could anyone share any suggestions?
> > Thanks,
> > Jun


More information about the gstreamer-devel mailing list