Has anyone got the 5MP camera displaying video with Gstreamer and the Ridge Run SDK for Leopard 365?
Yeah but the framerate is very slow... 1/30fps
Do you use Gstreamer? What command are you using?
Have you tried dvsdk examples?
It could be a gstreamer problem, or a driver problem.
I have tried the examples included with the RR SDK.
I am using:
gst-launch -e v4l2src num-buffers=100 always-copy=false ! dmaiaccel ! queue ! dmaienc_mpeg4 ! qtmux ! filesink location=/test.mp4
Setting pipeline to PAUSED ...
[ 1301.920000] mt9p031 chip version reg = 1801
[ 1301.970000] mt9p031_set_format_params height = 1919, width = 2559
[ 1302.110000] i2c_adapter i2c-0: Invalid id...
[ 1302.130000] i2c_adapter i2c-0: Invalid id...
[ 1302.140000] i2c_adapter i2c-0: Invalid id...
[ 1302.150000] i2c_adapter i2c-0: Invalid id...
[ 1302.170000] i2c_adapter i2c-0: Invalid id...
[ 1302.180000] i2c_adapter i2c-0: Invalid id...
[ 1302.190000] i2c_adapter i2c-0: Invalid id...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
../../../../src/libs/gst/base/gstbasesrc.c(2540): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...
Not sure where to from here.
I tried demo.sh in /examples, but it doesn't work.
Then i commented out (or delete) the if clause,
which tries to detect camera on i2c, but it can't.
So that streaming from MT9P031' code is executed, and not streaming from file.
Then i add file sink to gstreamer arguments.
File test.mp4 is growing, but i can't see video.
./vpss_daemon -v 31 -t 2400 &
gst-launch v4l2src num-buffers=5 always-copy=false ! video/x-raw-yuv, format=\(fourcc\)UYVY, width=720, height=480 ! dmaiaccel ! dmaiperf ! dmaienc_mpeg4 ! qtmux ! filesink location=test.mp4
killall -9 vpss_daemon
The code I used to have a 1/30fps (and mostly purple) image is:
./vpss_daemon -v 31 & gst-launch v4l2src num-buffers=50 always-copy=false ! video/x-raw-yuv, format=\(fourcc\)UYVY, width=720, height=480, framerate=\(fraction\)1001/30000 ! ffmpegcolorspace ! avimux ! filesink location=cam.avi
As you notice, it is an AVI movie file.
dmaiaccel is not working on my version and I have the same problem as you guys, I cannot have output a MPEG file...
According to RidgeRun, it is a problem located at the interface between the camera drivers (initiated by vpss_daemon) and v4l2src GStreamer element. Apparently, "it has to do with some sort of interrupt not being handled properly and a periodic timer goes off and that finally kicks off a frame"
If you know in which file/part of the code we have to change that, I would be eager to get the answer!
Thanks for that.
Purple, and frame rate is very slow.
Is the vpss_daemon source available do you know?
Do you mean this one :
Yes, thanks for pointing out the obvious :)
Whats the best way forward to fix the remaining sensor issues? - Purple and frame rate problems.
Old thread but it can be usefull for others.
In your command line you specify the low framerate :
instead of the right one :