<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1492099673251_3080">Hej,</div><div id="yui_3_16_0_ym19_1_1492099673251_3065"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_3044" dir="ltr">I'm trying to launch the following pipeline on an IMX6 board to convert four png images to an mp4 movie using hardware accelerated encoding:<br></div><div id="yui_3_16_0_ym19_1_1492099673251_2994" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_2992" dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492099673251_2900">GST_DEBUG="*:2" gst-launch-1.0 -v -e multifilesrc location="image%05d.png" index=0 stop-index=3 caps="image/png,width=960,height=540,framerate=1/1" ! pngdec ! queue ! videoconvert ! imxvpuenc_h264 ! h264parse ! mp4mux ! filesink location=images.mp4</div><div id="yui_3_16_0_ym19_1_1492099673251_3132" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_3133" dir="ltr">I obtain the output: <br></div><div id="yui_3_16_0_ym19_1_1492099673251_3135" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_3136" dir="ltr">Setting pipeline to PAUSED ...<br id="yui_3_16_0_ym19_1_1492099673251_3159">Pipeline is PREROLLING ...<br id="yui_3_16_0_ym19_1_1492099673251_3160">0:00:00.189972820 26707 0x12f0380 WARN basesrc gstbasesrc.c:2943:gst_base_src_loop:<multifilesrc0> error: Internal data flow error.<br id="yui_3_16_0_ym19_1_1492099673251_3161">0:00:00.190759558 26707 0x12f0380 WARN basesrc gstbasesrc.c:2943:gst_base_src_loop:<multifilesrc0> error: streaming task paused, reason not-negotiated (-4)<br id="yui_3_16_0_ym19_1_1492099673251_3162">ERROR: from element /GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0: Internal data flow error.<br id="yui_3_16_0_ym19_1_1492099673251_3163">Additional debug info:<br id="yui_3_16_0_ym19_1_1492099673251_3164">/path/to/yocto_guf/build-imx6guf/tmp/work/cortexa9hf-vfp-neon-guf-linux-gnueabi/gstreamer1.0/1.6.0-r0/gstreamer-1.6.0/libs/gst/base/gstbasesrc.c(2943): gst_base_src_loop (): /GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0:<br id="yui_3_16_0_ym19_1_1492099673251_3165">streaming task paused, reason not-negotiated (-4)<br id="yui_3_16_0_ym19_1_1492099673251_3166">ERROR: pipeline doesn't want to preroll.<br id="yui_3_16_0_ym19_1_1492099673251_3167">Setting pipeline to NULL ...<br id="yui_3_16_0_ym19_1_1492099673251_3168">Freeing pipeline ...</div><div id="yui_3_16_0_ym19_1_1492099673251_3193" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_3192" dir="ltr">When investigating I found that the following successfully runs:</div><div id="yui_3_16_0_ym19_1_1492099673251_3228" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_3229" dir="ltr">gst-launch-1.0 -v -e multifilesrc location="image%05d.png" index=0 stop-index=3 caps="image/png,width=960,height=540,framerate=1/1" ! pngdec ! queue ! videoconvert ! filesink location=foo</div><div id="yui_3_16_0_ym19_1_1492099673251_4864" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_4865" dir="ltr">Also this works (could play the mp4 with playbin):<br></div><div id="yui_3_16_0_ym19_1_1492099673251_4866" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_3237" dir="ltr">gst-launch-1.0 videotestsrc num-buffers=1 ! imxvpuenc_h264 ! h264parse ! mp4mux ! filesink location=i.mp4</div><div id="yui_3_16_0_ym19_1_1492099673251_4887" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_4912" dir="ltr">Using GST_DEBUG="*:4" on the first command (full pipeline) reveals:</div><div id="yui_3_16_0_ym19_1_1492099673251_4945" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_4919" dir="ltr">Pipeline is PREROLLING ... <br id="yui_3_16_0_ym19_1_1492099673251_4939">0:00:00.263635740 29136 0xd931b0 INFO GST_ELEMENT_PADS gstelement.c:894:gst_element_get_static_pad: no such pad 'sink' in element "multifilesrc0" <br id="yui_3_16_0_ym19_1_1492099673251_4940">0:00:00.264714837 29136 0xd931b0 FIXME default gstutils.c:3766:gst_pad_create_stream_id_internal:<multifilesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id<br id="yui_3_16_0_ym19_1_1492099673251_4941">0:00:00.265199547 29136 0xd931b0 FIXME videodecoder gstvideodecoder.c:1057:gst_video_decoder_drain_out:<pngdec0> Sub-class should implement drain() <br id="yui_3_16_0_ym19_1_1492099673251_4942">0:00:00.267156057 29136 0xd931b0 WARN basesrc gstbasesrc.c:2943:gst_base_src_loop:<multifilesrc0> error: Internal data flow error. <br id="yui_3_16_0_ym19_1_1492099673251_4943">0:00:00.267523090 29136 0xd931b0 WARN basesrc gstbasesrc.c:2943:gst_base_src_loop:<multifilesrc0> error: streaming task paused, reason not-negotiated (-4)</div><div id="yui_3_16_0_ym19_1_1492099673251_4970" dir="ltr">0:00:00.267856120 29136 0xd931b0 INFO GST_ERROR_SYSTEM gstelement.c:1837:gst_element_message_full:<multifilesrc0> posting message: Internal data flow error. <br></div><div id="yui_3_16_0_ym19_1_1492099673251_4995" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1492099673251_4996" dir="ltr">I'm happy about any suggestions on how to fix this. Thanks in advance.</div><div id="yui_3_16_0_ym19_1_1492099673251_5004" dir="ltr">Regards, Phil<br></div></div></body></html>