How to use gstreamer with WebRTC to stream the video from Jetson nano to PC

Hi
below is my gstreamer code to stream the video from camera connected to Jetson nano to other device in UDP protocol.

gst-launch-1.0 -v v4l2src device=/dev/video0 \
! "video/x-raw, format=(string)UYVY, width=(int)2592, height=(int)1944,framerate=24/1" \
! nvvidconv \
! "video/x-raw(memory:NVMM),format=(string)I420" \
! nvv4l2h264enc preset-level=1 MeasureEncoderLatency=1 maxperf-enable=true insert-vui=true insert-sps-pps=1 bitrate=10000000 control-rate=1 vbv-size=734000 \
! h264parse \
! rtph264pay \
! udpsink clients=192.168.18.18:38298 sync=false

I have downloaded the file of WebRTC_R32.5.1_aarch64.tbz2 to Jetson nano.
I have noticed that this command

./peerconnection_server

can open a WebRTC server.
My questions are:

  1. How to modify my gstreamer script as above to stream the video from camera to PC with WebRTC protocol?
  2. How to receive and display the video in PC, gstreamer script or web browser?

Thanks

CX

Hi,
We don’t have much experience in this use-case. Generally we run RTSP and UDP in gstreamer. It would need other users to share experience.

Search online and see a webpage. Please take a look and see if it helps:
GStreamer WebRTC: A flexible solution to web-based media

Thank you for your kind reply and suggestion.
Can any one help me further on this use case?
Thank you very much

CX

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.