Have issue with the Gstream pipeline on jetson xavier (jetpack 5)

Hi All,

Currently I am using the below pipeline for streaming data (video & audio) from jetson xavier to web browser,

‘’’
webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.google.com:19302

v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! videoconvert ! queue !
vp8enc target-bitrate=100000 overshoot=25 undershoot=100 deadline=33000 keyframe-max-dist=1 ! rtpvp8pay !  queue ! 
application/x-rtp,media=video,encoding-name=VP8,payload=96 ! sendrecv.

v4l2src device=/dev/video2 ! video/x-raw,width=640,height=480 ! videoconvert ! queue !
vp8enc target-bitrate=100000 overshoot=25 undershoot=100 deadline=33000 keyframe-max-dist=1 ! rtpvp8pay !  queue ! 
application/x-rtp,media=video,encoding-name=VP8,payload=96 ! sendrecv.

audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay !
queue ! application/x-rtp,media=audio,encoding-name=OPUS,payload=96 ! sendrecv.

‘’’

When we execute this Gstreamer pipeline it fails to read the data from camera (logitec usb camera) but the led on camera glows which tells us that there is connection happening and the data will not be transfered to web browser.

Kindly help, if anyone has some suggestion/ changes to the pipeline.

Thank you.

Hi,
Please refer to Jetson Nano FAQ

Q: I have a USB camera. How can I launch it on Jetson Nano?

And make sure you can launch the camera sources first. And then can try RTSP streaming:

Q: Is there any example of running RTSP streaming?

All the mentioned steps works when we run gst-launch commands, we are able to see a window popup with video…but when used under gstream webrtc bin pipeline, it doesn work as expected.

Hi,
We don’t have much experience about webrtcbin. This would need other users to have suggestion.

One suggestion is you may try videotestsrc. See if it works with videotestsrc first, and then try v4l2src. To clarify if the issue is specific to using v4l2src.

yes, with videotestsrc and audiotestsrc work fine… or do you have any different pipeline to work with gstream webrtcbin with sendrecv…?

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