Gstreamer and H264 encoders

I am trying to use gstreamer and ROS to capture an external USB video camera.

I followed the Accelerated Gstreamer guide and have all the packages installed however when I am trying to launch the following I got an error:

gst-launch-1.0 --gst-debug=1 v4l2src device=/dev/video0 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! queue max-size-time=0 ! tee name=t t. ! decodebin ! queue name=prex264 max-size-time=0 ! nvv4l2h264enc rate-control=cbr bitrate=8000 ! video/x-h264,stream-format=byte-stream ! h264parse ! queue name=premp4 max-size-time=0 ! mp4mux ! video/quicktime,framerate=0/1 ! filesink location=/home/jptalledo/test.h264 sync=false t. ! queue name=preros max-size-time=0
0:00:00.061807455 25264 0x558e4ef580 ERROR GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element “nvv4l2h264enc”
0:00:00.061912671 25264 0x558e4ef580 ERROR GST_PIPELINE grammar.y:901:priv_gst_parse_yyparse: link has no sink [source=@0x558e5103c0]
0:00:00.062949346 25264 0x558e4ef580 ERROR GST_PIPELINE grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@0x558e52e360]
WARNING: erroneous pipeline: no element “nvv4l2h264enc”

I assume nvv4l2h264enc should be supported on Xavier AGX? or which encoder should I use for H264?

Hi @jpvans ,

Is this topic for DRIVE AGX or Jetson? GStreamer is only officially supported on Jetson. Thanks.

My bad. Just aware of not gstreamer support for DRIVE AGX

1 Like