Hi.
My RPI2 will not boot the PREEMPT_RT image. The "act" led is just on constantly.
Im only trying too stream video, so i tried with the normal Raspbian image, But get an error when running your script. Ive tried to run it line by line, and found that this error occurs in line 11. in your script.
pi@raspberrypi ~ $ sudo sh gstreamer.sh
VIDIOC_ENUM_FMT: failed: Invalid argument
Video input set to 1 (Composite1: ok)
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
pi@raspberrypi ~ $
When i run "v4l2-ctl --?" it dosent list "--set-fmt-video" as a option.
General/Common options:
--all display all information available
-C, --get-ctrl=[,...]
get the value of the controls [VIDIOC_G_EXT_CTRLS]
-c, --set-ctrl==[,=...]
set the value of the controls [VIDIOC_S_EXT_CTRLS]
-D, --info show driver info [VIDIOC_QUERYCAP]
-d, --device= use device instead of /dev/video0
if starts with a digit, then /dev/video is used
-h, --help display this help message
--help-all all options
--help-io input/output options
--help-misc miscellaneous options
--help-overlay overlay format options
--help-selection crop/selection options
--help-stds standards and other video timings options
--help-streaming streaming options
--help-tuner tuner/modulator options
--help-vbi VBI format options
--help-vidcap video capture format options
--help-vidout vidout output format options
-k, --concise be more concise if possible.
-l, --list-ctrls display all controls and their values [VIDIOC_QUERYCTRL]
-L, --list-ctrls-menus
display all controls and their menus [VIDIOC_QUERYMENU]
-w, --wrapper use the libv4l2 wrapper library.
--list-devices list all v4l devices
--log-status log the board status in the kernel log [VIDIOC_LOG_STATUS]
--get-priority query the current access priority [VIDIOC_G_PRIORITY]
--set-priority=
set the new access priority [VIDIOC_S_PRIORITY]
is 1 (background), 2 (interactive) or 3 (record)
--silent only set the result code, do not print any messages
--sleep= sleep , call QUERYCAP and close the file handle
--verbose turn on verbose ioctl status reporting
pi@raspberrypi ~ $
Love your work!