Hi All,
I'm trying to setup a gstreamer chain that takes the camera input and encode into two different resolutions: I get two errors on vpuenc1
negotiation problem
encoder not initialized
Does anyone have a clue about the meaning of this error ? encoding one copy works fine as well as replacing one of the tee branch with fakesink so this is not an issue of threads etc.....
Thanks
Lior
root@varsomimx6:~# gst-launch-1.0 imxv4l2src ! videoconvert ! video/x-raw,width=1920,height=1080,format=I420 ! tee name=t \
> t. ! queue ! vpuenc bitrate=2000 ! capsfilter caps="video/x-h264,width=1920,height=1080,framerate=(fraction)30/1" ! matroskamux ! filesink location='/tmp/cap0.mkv' sync=false \
> t. ! queue ! videoscale ! video/x-raw,width=640,height=480 ! vpuenc bitrate=1000 ! capsfilter caps="video/x-h264,width=640,height=480,framerate=(fraction)30/1" ! matroskamux ! filesink location='/tmp/cap1.mkv' sync=false
====== IMXV4L2SRC: 4.0.3 build on Aug 4 2015 11:06:57. ======
Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX6Q/D/S
====== VPUENC: 4.0.3 build on Aug 4 2015 11:07:01. ======
wrapper: 1.0.58 (VPUWRAPPER_ARM_LINUX Build on Aug 4 2015 11:06:35)
vpulib: 5.4.28
firmware: 3.1.1.46063
[INFO] Product Info: i.MX6Q/D/S
====== VPUENC: 4.0.3 build on Aug 4 2015 11:07:01. ======
wrapper: 1.0.58 (VPUWRAPPER_ARM_LINUX Build on Aug 4 2015 11:06:35)
vpulib: 5.4.28
firmware: 3.1.1.46063
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[INFO] ringBufferEnable 0, chromaInterleave 0, mapType 0, linear2TiledEnable 0
ERROR: from element /GstPipeline:pipeline0/GstVpuEnc:vpuenc1: GStreamer error: negotiation problem.
Additional debug info:
/home/variscite/var-som-mx6-yocto-dizzy/build_x11/tmp/work/cortexa9hf-vfp-neon-mx6-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.4.1-r0/gst-plugins-base-1.4.1/gst-libs/gst/video/gstvideoencoder.c(1474): gst_video_encoder_chain (): /GstPipeline:pipeline0/GstVpuEnc:vpuenc1:
encoder not initialized
Execution ended after 0:00:01.048597667
Setting pipeline to PAUSED ...
Hello,
Please try at first two separate (non parallel) streams with minimal
number gstreamer elements (source -> queue -> sink) – to define
what elements (parameters) are not “compatible”.
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------