I am working with the Leopardboard 365 with the 5MP camera module (mt9p031 sensor). When using the following GStreamer gst-launch pipeline I get several warnings, also shown below. The GStreamer pipeline was taken from an example given on the RidgeRun website.
gst-launch -ev v4l2src always-copy=false num-buffers=100 ! 'video/x-raw-yuv, format=(fourcc)NV12, width=1280, height=720, framerate=(fraction)23/1' ! dmaiaccel ! dmaienc_h264 encodingpreset=2 ratecontrol=4 ! dmaiperf ! queue ! qtmux ! filesink location=video_capture.mp4
Setting pipeline to PAUSED ...davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124vpfe-capture vpfe-capture: IPIPE Chainedvpfe-capture vpfe-capture: Resizer presentvpfe-capture vpfe-capture: standard not supported/GstPipeline:pipeline0/GstV4l2Src:v4l2src0: queue-size = 3/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)1280, height=(int)720, framerate=(fraction)231Pipeline is live and does not need PREROLL ...WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to set norm for device '/dev/video0'.Additional debug info:../../../src/sys/v4l2/v4l2_calls.c(743): gst_v4l2_set_norm (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:system error: Invalid argumentWARNING: from element /GstPipeline:pipeline0/GstDmaiperf:dmaiperf0: Could not get/set settings from/on resource.Additional debug info:../../src/src/gsttidmaiperf.c(273): gst_dmaiperf_start (): /GstPipeline:pipeline0/GstDmaiperf:dmaiperf0:Engine name not specified, not printing DSP informationWARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Video input device did not accept new frame rate setting.Additional debug info:../../../src/sys/v4l2/v4l2src_calls.c(342): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:system error: Invalid argumentSetting pipeline to PLAYING ......
The stream proceeds to capture video and save to the mp4 file, however the framerate is not as it was specified in the pipeline (which the warning said). Has anyone else run into this problem and had any luck controlling the video capture framerate?
Also, when I try to modify the vertical and horizontal pixel dimensions, the pipeline thows errors and does not execute. Has anyone been able to change the resolution of the camera to something other than 720 x 1280 pixels? I would like to capture 600 x 800 or 450 x 800 video.