gst-launch-1.0 v4l2src device=/dev/video2 io-mode=dmabuf ! image/jpeg,width=1280,height=720,framerate=30/1 ! v4l2jpegdec ! imxvideoconvert_g2d ! v4l2h264enc ! h264parse ! qtmux ! filesink location=test.mov -e
root@apalis-imx8:~# gst-launch-1.0 v4l2src device=/dev/video2 io-mode=dmabuf ! image/jpeg,width=1280,height=720,framerate=30/1 ! v4l2jpegdec ! imxvideoconvert_g2d ! v4l2h264enc ! h264parse ! qtmux ! filesink location=test.mov -e
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 3492.448173] [VPU Decoder] firmware version is 1.7.0
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../git/libs/gst/base/gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
EOS on shutdown enabled -- waiting for EOS after Error
Waiting for EOS...
////////////////////////////////////////////////////////////////////////
同时imxcompositor_g2d配合v4l2dec也不能使用成功,比如下面
gst-launch-1.0 imxcompositor_g2d name=comp sink_0::zorder=2 sink_0::alpha=0.7 sink_1::xpos=0 sink_1::ypos=0 sink_1::zorder=1 ! waylandsink sync=false sync=false videotestsrc ! comp.sink_0 v4l2src device=/dev/video2 ! image/jpeg,width=1280,height=720,framerate=30/1 ! v4l2jpegdec ! comp.sink_1
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 3680.010757] [VPU Decoder] firmware version is 1.7.0
Although the pipeline is normal, the display is stuck.
Replacing v4l2jpegdec with jpegdec ,It can work normally, but the display will stuck every few seconds .
///////////////////////////
imxcompositor_g2d配合v4l2h264dec
gst-launch-1.0 imxcompositor_g2d name=comp sink_0::zorder=2 sink_0::alpha=0.7 sink_1::xpos=0 sink_1::ypos=0 sink_1::zorder=1 ! waylandsink sync=false sync=false videotestsrc ! comp.sink_0 v4l2src device=/dev/video4 ! video/x-h264,width=1280,height=720,framerate=30/1 ! v4l2h264dec ! comp.sink_1
Same as above.
Hope to get a reply as soon as possible. Thank you very much