This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gstreamer & imx219 not working in TinkerOS
#1
Bug 
OS: TinkerOS 2.0.3


Code:
gst-launch-1.0 --gst-debug=v4l2:9 v4l2src \
! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 \
! fakesink


gives following output:

Code:
0:00:00.095035542 22352 0x7fb14ec0 ERROR          v4l2allocator gstv4l2allocator.c:721:gst_v4l2_allocator_start:<v4l2src0:pool:src:allocator> error requesting 7 buffers: Device or resource busy
0:00:00.095059751 22352 0x7fb14ec0 ERROR         v4l2bufferpool gstv4l2bufferpool.c:892:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src> we received 0 buffer from device '/dev/video0', we want at least 2
0:00:00.095083376 22352 0x7fb14ec0 ERROR             bufferpool gstbufferpool.c:564:gst_buffer_pool_set_active:<v4l2src0:pool:src> start failed
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
gstv4l2src.c(620): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed

TinkerOS binaries & 1.13.x dev branch gave same error message.  num-buffers option has no effect on the error.  all of the other example gst-launch-1.0 commands in the PDF give a similar error.  I built gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gstreamer-rockchip, & orc from the 1.13.x dev branch on my tinkerboard and tried again (same errors), full log attached.  Sorry, didn't keep a log of the vanilla binaries.

edit: a little update.  a slightly different error message is printed without debug output:

Code:
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.248553037  1229 0x80d234c0 ERROR          v4l2allocator gstv4l2allocator.c:906:gst_v4l2_allocator_alloc_dmabuf:<v4l2src0:pool:src:allocator> Failed to export DMABUF: Inappropriate ioctl for device
0:00:00.248673781  1229 0x80d234c0 ERROR         v4l2bufferpool gstv4l2bufferpool.c:479:gst_v4l2_buffer_pool_alloc_buffer:<v4l2src0:pool:src> failed to allocate buffer
0:00:00.248716946  1229 0x80d234c0 ERROR         v4l2bufferpool gstv4l2bufferpool.c:898:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src> allocate failed
0:00:00.248754278  1229 0x80d234c0 ERROR             bufferpool gstbufferpool.c:564:gst_buffer_pool_set_active:<v4l2src0:pool:src> start failed
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
gstv4l2src.c(620): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed


Attached Files
.txt   log2.txt (Size: 50.07 KB / Downloads: 3)
Reply
#2
just read the rockchip commits, looks like ASUS is waiting on them to complete driver work...
Reply
#3
(11-22-2017, 08:52 AM)xenoglyph Wrote: just read the rockchip commits, looks like ASUS is waiting on them to complete driver work...

That commit is for "new" camera architecture for feature that 3A will be inclued.
For TinkerOS 2.0.3, imx219 and ov5647 is working without 3A.

I had tested your command on TinkerOS 2.0.3 with imx219 that is working without any error.
Please share some pictures for your connection and camera module. Let us check it.
Maybe your problem is a hardware issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)