Tool/software: Linux
Hi,
I am using AM571x EVM. Using processor SDK 05.01.00.11. I am using gst-launch1.0 to create gstreamer links to capture and display. I am able to capture 720p video using gstreamer using following command:
gst-launch-1.0 -v v4l2src device=/dev/video1 num-buffers=1000 io-mode=4 ! 'video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720' ! vpe num-input-buffers=8 ! queue ! kmssink
I am trying to capture 1080p video.
gst-launch-1.0 -v v4l2src device=/dev/video1 num-buffers=1000 io-mode=4 ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080' ! vpe num-input-buffers=8 ! queue ! kmssink
But I am getting following error:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../../../../gstreamer-1.12.2/libs/gst/base/gstbasesrc.c(2939): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.007080717
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Should I configure v4l2 to capture 1080p. If required, what are the commands to configure it.
I tried changing the buffers in the above command but no use.
I tired to configure the v4l2 device using following command:
v4l2-ctl -d /dev/video1 --set-fmt-video=width=1920,height=1080,pixelformat='NV12'
I verified the camera and display using following command:
dmabuftest -s 35:1920x1080 -c 1920x1080@NV12 -d /dev/video1
Using above command I am able to capture and display 1080p video. How to do same thing using Gstreamer
Thanks and Regards,
Pranay kumar