Stream video from filesrc to webrtcsink

Hello everyone,

i would like to stream a mp4 video using webrtcsink and also show directly in the display.

Here is my pipeline:
gst-launch-1.0
filesrc location=video.mp4 !
decodebin !
videoconvert !
tee name=t
t. ! queue ! video/x-raw,width=1920,height=1080,framerate=30/1,format=RGB !
webrtcsink name=sink do-fec=false
t. ! queue ! video/x-raw,width=1920,height=1080,framerate=30/1,format=RGB !
autovideosink

However, I got the error:
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
Redistribute latency…
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Delayed linking failed.
Additional debug info:
gst/parse/grammar.y(915): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
failed delayed linking some pad of GstDecodeBin named decodebin0 to some pad of GstVideoConvert named videoconvert0
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
…/gst/isomp4/qtdemux.c(7423): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
streaming stopped, reason not-linked (-1)
Execution ended after 0:00:00.065434560
Setting pipeline to NULL …
Freeing pipeline …

It seems like there is a problem with decodebin, and it cannot link to the webrtcsink, but I didn’t find anything helpful from Internet. Any help would be very appreciated!

Can you rerun with gst-launch-1.0 -v to enable verbose output?

It would also help to run gst-discoverer-1.0 video.mp4 to show us some detailed info on the source.

Or try to repro this problem with videotestsrc so others can more easily test on their systems.