Dear Tim,
Oh, I am sorry for lacking of describing more details.
I am using OV5640 camera sensor MIPI with iMX6sabreqsd board.
From imxv4l2src, I saw that it can support higher resolution up to 1920x1080p 15fps.
I also tried with a simpler pipeline:
gst-launch-1.0 imxv4l2src device=/dev/video1 ! 'video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080, framerate=(fraction)15/1' ! imxvpuenc_h264 bitrate=10000 ! filesink location=/tmp/file.mp4
But the same error happened. I can not link the pipeline, the debug log said that the "caps is incompatible".
In my environment, there is no plugin imxv4l2videosrc, I used the native one imxv4l2src instead.
When I used gst-inspect-1.0 for imxv4l2src, I saw a list of capabilities:
Capabilities:
video/x-raw
format: { I420, NV12, YUY2, UYVY }
width: 640
height: 480
framerate: { 30/1, 15/1 }
video/x-raw
format: { I420, NV12, YUY2, UYVY }
width: 320
height: 240
framerate: { 30/1, 15/1 }
video/x-raw
format: { I420, NV12, YUY2, UYVY }
width: 720
height: 480
framerate: { 30/1, 15/1 }
video/x-raw
format: { I420, NV12, YUY2, UYVY }
width: 720
height: 576
framerate: { 30/1, 15/1 }
video/x-raw
format: { I420, NV12, YUY2, UYVY }
width: 1280
height: 720
framerate: { 30/1, 15/1 }
video/x-raw
format: { I420, NV12, YUY2, UYVY }
width: 1920
height: 1080
framerate: 15/1
And also for the imxvpuenc_h264 plugins.
As my understanding, I can create a capsfilter for choosing the format linking between imxv4l2src and imxvpuenc_h264. Is it correct? Or there is any other constraint when working with a specific camera device.
Please help me to make it clear.
Thanks a lot for your support Tim