Hello. I have a script which convert usb cam source to a janus server and let the user to see on web. The script is:
gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! videoscale ! video/x-raw,width=720,height=480,framerate=20/1 ! omxh264enc bitrate=1000000 control-rate=1 profile=high preset-level=0 qp-range=15,30:5,20:-1,-1 ! rtph264pay pt=96 config-interval=1 ! udpsink host=127.0.0.1 port=5002
It works nornally. But last week I bought a new xavier nx and use this script. It says “WARNING: erroneous pipeline: no element “omxh264enc””
So I check the forums and change omxh264enc to nvv4l2h264enc and occur the following problem:
WARNING: erroneous pipeline: could not link videoscale0 to nvv4l2h264enc0, nvv4l2h264enc0 can’t handle caps video/x-raw, width=(int)720, height=(int)480, framerate=(fraction)20/1
How can I solve this problem. Thanks for the help!!
Here are some jetpack info:
Package: nvidia-jetpack
Version: 5.1.1-b56
Architecture: arm64