Dear community,
Now, I am working camera preview by MJPEG with AP1302(13M Camera) and sabre lite board.
As you know, iMX6q support 4096*4096 input image from camera.
(IMX6DQRM : The frame resolution supported is up to 4096x4096 for input )
So, I changed frame format from UVUY to MJPG in camera.
Now, Camera is sending the MJPG frame.
but,mxc_v4l2_capture is not support MJPG format. Is right ??
And when I use guvcview (guvcview -d /dev/video0), I got a fail result by VIDIOC_QUERYCTRL.
VIDIOC_QUERYCTRL is not support by IMX6Q.
How to working camera preview with MJPG format from sensor ?
Please recommend to me.
Thank you !!
Hello,
Please check if Gstreamer elements can support MJPEG, using "gst-inspect" command.
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Dear Yuri,
Thank you for your reply.
As I check with gst-inspect.
$ gst-inspect-1.0 imxv4l2src > imxv4l2src.txt
not support MJPG
$ gst-inspect-1.0 v4l2src > v4l2src.txt
support MJPG
$ gst-inspect-1.0 imxv4l2sink > imxv4l2sink.txt
not support MJPG
$ gst-inspect-1.0 v4l2sink > v4l2sink.txt
not support MJPG
$ gst-launch-1.0 --gst-debug-level=4 v4l2src device=/dev/video0 ! 'video/x-raw.formatMJPG' ! v4l2sink
could not link v4l2src0 to v4l2sink0
gst-launch_01.txt
$ gst-launch-1.0 --gst-debug-level=4 v4l2src device=/dev/video0 ! 'video/x-raw.formatMJPG' ! imxv4l2sink
could not link v4l2src0 to imxv4l2sink0
gst-launch_02.txt
I will attach files about result.
What is your recommend about it ?
Thank you !!
Dear Yuri,
I can't upload txt file. so I uploaded capture files.
gst-inspect-1.0 imxv4l2src
gst-inspect-1.0 imxv4l2sink
gst-inspect-1.0 v4l2src
gst-inspect-1.0 v4l2sink
gst-launch-1.0 --gst-debug-level=4 v4l2src device=/dev/video0 ! 'video/x-raw.formatMJPG' ! v4l2sink
gst-launch-1.0 --gst-debug-level=4 v4l2src device=/dev/video0 ! 'video/x-raw.formatMJPG' ! imxv4l2sink
Hello,
You may use just " v4l2src" (say, USB cam) as camera source for the MJPG.
Regards,
Yuri.