gstreamer produces bad images

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

gstreamer produces bad images

1,457 Views
shlomiperlman
Contributor II

HI,

 

I'm taking images from my v4l2 cam sensor with the following pipeline:

gst-launch-1.0 imxv4l2videosrc device=/dev/video0 num-buffers=1 ! imxvpuenc_mjpeg ! filesink location=test.mjpg

 

and some of the images are captured with the frames unsorted like in the attached.

 

I also tried changing the num-buffers to 2,3.. and the encryption to jpg but no success :/

what can be the problem?

Original Attachment has been moved to: 2.mjpg.zip

Labels (4)
0 Kudos
Reply
2 Replies

1,004 Views
igorpadykov
NXP Employee
NXP Employee

Hi shlomi

there are two kinds of plugins: gstreamer-imx plugins and fsl-gst-plugins, details are :

http://trac.gateworks.com/wiki/Yocto/gstreamer

https://community.freescale.com/thread/376271

imxvpuenc_mjpeg is part of gstreamer-imx plugins developed and supported

by community (https://lists.yoctoproject.org/listinfo/meta-freescale).

Please try nxp vpuenc_jpeg plugin (part of nxp/fsl gstreamer plugins fsl-gst-plugin),

usage described in attached Linux Guide sect.7.3.3 Video encoding, overview in

Release Notes sect.6.1 Freescale GStreamer plugins.

Latest verson can be found in L3.14.52 BSP:

Board Support Packages (29)

L3.14.52_1.1.0_MX6QDLSOLO (REV L3.14.52_1.1.0)

http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-process...

useful link:

Set Quality of vpuenc mjpg

https://community.freescale.com/message/527230#comment-527230

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,004 Views
shlomiperlman
Contributor II

thanks but these cannot solve the problem if i dont know its cause.

i'm guessing it has something to do with the save format/num-buffers because if i display the image directly on a big monitor the issue doesn’t occur.

anyway imxv4l2videosrc doesnt accept the vpuenc_jpeg plugin..

0 Kudos
Reply