failed to encode frame: failure timeout

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

failed to encode frame: failure timeout

1,786 Views
aminebouhoula
Contributor I

Hello,

I am trying to use iMX6 to stream camera input via HDMI using gstreamer using the next command:

gst-launch-1.0 -e --gst-debug-level=2 imxv4l2src device=/dev/video0 ! imxvpuenc_h264 ! mpegtsmux ! hlssink max-files=5 target-duration=2 playlist-location=/www/pages/playlist.m3u8 location=/www/pages/segment%05d.ts playlist-length=3

After few seconds, I always get the next error:

0:00:22.326621669  1492  0x1353520 ERROR imxvpubaseenc ../src/vpu/encoder/base_enc.c:804:gst_imx_vpu_base_enc_handle_frame:<imxvpuh264enc0> failed to encode frame: failure timeout

Please help me.

Thanks a lot!

Labels (3)
0 Kudos
Reply
3 Replies

1,464 Views
joanxie
NXP TechSupport
NXP TechSupport

what yocto version do you use? you mean that you can capture video correctly fisrt, then faile? could you upload the complete log file?

0 Kudos
Reply

1,464 Views
aminebouhoula
Contributor I

Thanks for your answer:

uname -a ==> Linux ventana 3.10.17-1.0.0_ga+yocto+g4d177f6

Full output:

root@ventana:~# gst-launch-1.0 -e --gst-debug-level=2 imxv4l2src device=/dev/video0 ! imxvpuenc_h264 ! mpegtsmux ! hlssink max-files=5 target-duration=2 playlist-location=/www/pages/playlist.m3u8 location=/www/pages/segment%05d.ts playlist-length=3

Setting pipeline to PAUSED ...

[INFO]  Product Info: i.MX6Q/D/S

Pipeline is live and does not need PREROLL ...

Setting pipeline to PLAYING ...

New clock: GstSystemClock

[INFO]  ringBufferEnable 0, chromaInterleave 0, mapType 0, linear2TiledEnable 0

[WARN]  VPU iram is less than needed, some parts don't use iram

0:00:54.297814674 15063  0x1d40520 ERROR          imxvpubaseenc ../src/vpu/encoder/base_enc.c:804:gst_imx_vpu_base_enc_handle_frame:<imxvpuh264enc0> failed to encode frame: failure timeout

[INFO]  vpu_SWReset

0:00:54.303632674 15063  0x1d40520 WARN                 basesrc /home/amine/ventana-yocto2/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.4.1-r0/gstreamer-1.4.1/libs/gst/base/gstbasesrc.c:2933:gst_base_src_loop:<imxv4l2src0> error: Internal data flow error.

0:00:54.305582340 15063  0x1d40520 WARN                 basesrc /home/amine/ventana-yocto2/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.4.1-r0/gstreamer-1.4.1/libs/gst/base/gstbasesrc.c:2933:gst_base_src_loop:<imxv4l2src0> error: streaming task paused, reason error (-5)

ERROR: from element /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0: Internal data flow error.

Additional debug info:

/home/amine/ventana-yocto2/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.4.1-r0/gstreamer-1.4.1/libs/gst/base/gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0:

streaming task paused, reason error (-5)

EOS on shutdown enabled -- waiting for EOS after Error

Waiting for EOS...

Got EOS from element "pipeline0".

EOS received - stopping pipeline...

Execution ended after 0:00:54.009322674

Setting pipeline to PAUSED ...

Setting pipeline to READY ...

Setting pipeline to NULL ...

Freeing pipeline ...

0 Kudos
Reply

1,464 Views
aminebouhoula
Contributor I

Any help please?

0 Kudos
Reply