Freescale / libimxvpuapi

i.MX VPU API Library
GNU Lesser General Public License v2.1
88 stars 54 forks source link

libimxvpuapi throws encoded frame is not valid JPEG data #19

Closed MarkoVranic closed 5 years ago

MarkoVranic commented 7 years ago

Hi,

I am using gstreamer 1.8 on imx6 platform to show movie preview from gphoto2 library. I am using following command

gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin name=dec ! queue ! imxeglvivsink

and got following error

pic was forced to be done 0:00:01.644015566 4648 0x1fb0c30 WARN GST_PADS gstpad.c:4081:gst_pad_peer_query: could not send sticky events 0:00:01.646049212 4648 0x1fb0c30 WARN GST_PADS gstpad.c:4081:gst_pad_peer_query: could not send sticky events 0:00:01.648171524 4648 0x1fb0c30 ERROR imxvpuapi imxvpuapi_vpulib.c:1858:imx_vpu_dec_decode: encoded frame is not valid JPEG data 0:00:01.648716186 4648 0x1fb0c30 ERROR imxvpudecoder decoder.c:560:gst_imx_vpu_decoder_handle_frame: failed to decode: unspecified error 0:00:01.649318846 4648 0x1fb0c30 WARN basesrc gstbasesrc.c:2948:gst_base_src_loop: error: Internal data flow error. 0:00:01.649793175 4648 0x1fb0c30 WARN basesrc gstbasesrc.c:2948:gst_base_src_loop: error: streaming task paused, reason error (-5) ERROR: from element /GstPipeline:pipeline0/GstFdSrc:fdsrc0: Internal data flow error. Additional debug info: gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstFdSrc:fdsrc0: streaming task paused, reason error (-5) ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ...

What can be the reason for this?

Regards, Marko