gstreamer 264 encode on debian...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gstreamer 264 encode on debian...

Jump to solution
538 Views
EdSutter
Senior Contributor II

Hi,

I'm running debian 11 bullseye on iMX8MPlus.  Referring to the i.MX8 Gstreamer User Guide, I run:

gst-launch-1.0 videotestsrc ! video/x-raw, format=I420, width=640, height=480 ! vpuenc_h264 ! filesink location=test.mp4

and I get this error:

Setting pipeline to PAUSED ...
====== VPUENC: 4.6.2 build on Dec 10 2021 07:27:12. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 9 2021 13:26:41)
vpulib: 1.1.1
firmware: 1.1.1.43691
ERROR: from element /GstPipeline:pipeline0/vpuenc_h264:vpuenc_h264-0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideoencoder.c(1781): gst_video_encoder_change_state (): /GstPipeline:pipeline0/vpuenc_h264:vpuenc_h
264-0:
Failed to start encoder
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.

Any idea what I'm missing here?
Tx

0 Kudos
1 Solution
531 Views
EdSutter
Senior Contributor II

Answering my own question here...

Turns out if I run the pipeline as root (or change permissions on /dev/mxc_* and /dev/ion), then it works fine.

View solution in original post

0 Kudos
1 Reply
532 Views
EdSutter
Senior Contributor II

Answering my own question here...

Turns out if I run the pipeline as root (or change permissions on /dev/mxc_* and /dev/ion), then it works fine.

0 Kudos