avenc_h264_omx crashes

Nicolas Dufresne nicolas at ndufresne.ca
Thu Nov 25 15:17:47 UTC 2021


Le mercredi 24 novembre 2021 à 22:21 +0100, JPM via gstreamer-devel a écrit :
> It seems that v4l2h264enc is not working either.
> 
> gst-launch-1.0 videotestsrc ! video/x-
> raw,width=1280,height=720,framerate=30/1,format=I420 ! v4l2h264enc ! fakesink

Selecting profile and level is mandatory on RPi, the driver will not pick a
valid pair for you (and fails quite generically).

Try something like:

  v4l2h264enc ! video/x-h264,profile=main,level=3.0


I'm never certain how to properly select that, but there is good tables on both
wikipedia and wikimedia to help you out.

Nicolas

> 
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Redistribute latency...
> ERROR: from element /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0: Failed to
> process frame.
> Additional debug info:
> ../sys/v4l2/gstv4l2videoenc.c(828): gst_v4l2_video_enc_handle_frame ():
> /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0:
> Maybe be due to not enough memory or failing driver
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
> Internal data stream error.
> Additional debug info:
> ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
> streaming stopped, reason error (-5)
> ERROR: pipeline doesn't want to preroll.
> Freeing pipeline ...



More information about the gstreamer-devel mailing list