GStreamer NVV4L2H264enc fails at runtime with cross compiler

Interesting

For the avdec_h264 to work, I had installed some dependencies first. Otherwise, the element doesn’t exist. Reference to dependency install It should work with the is-live flag on app-src.

The command below worked for me after installing the deps in the link above

gst-launch-1.0 videotestsrc is-live=true ! videoconvert ! video/x-raw,format=NV12 ! nvvidconv ! nvv4l2h264enc ! h264parse ! avdec_h264 ! nvvidconv ! autovideosink

Using the nvv4l2decoder was unsuccessful, even after removing the is-live=flag. Here’s the exact command I ran that lead to failure:

gst-launch-1.0 videotestsrc ! video/x-raw,width=320,height=240,framerate=30/1 ! nvvidconv ! "video/x-raw(memory:NVMM),format=NV12" ! nvv4l2h264enc ! h264parse ! nvv4l2decoder ! nvvidconv ! queue ! autovideosink

EDIT: Failure meaning the autovideosink window never renders. It just gets stuck here.

Can you provide the exact gst-launch command used for the nvv4l2decoder?