[agl-dev-community] Aroundview application error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I downloaded the AroundView sample v4l2 application from the AGL repository. I added qlibhomescreen and qlibwindowmanager support for it. 

Sources were built with agl imx8mqevk built toolchain creating a widget

While testing the widget on the imx8mqevk target , I am facing an unknown pixel format:'XR24' run time issue. I tested it with the NXP MIPI CSI-2 camera and USB web cameras connected to imx8mqevk board but it was showing the same pixel format error on both the cameras.

I used the v4l2-ctl -d /dev/video2 --all command and identified the camera info and pixel format.

USB cam info :
------------------------------
imx8mqevk:~# v4l2-ctl -d /dev/video2 --all
Driver Info:
Driver name : uvcvideo
Card type : USB2.0 PC CAMERA: USB2.0 PC CAM
Bus info : usb-xhci-hcd.0.auto-1.2
Driver version : 4.19.35
Capabilities : 0x84a00001
Video Capture
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : uvcvideo
Model : USB2.0 PC CAMERA: USB2.0 PC CAM
Serial :
Bus info : 1.2
Media version : 4.19.35
Hardware revision: 0x00000100 (256)
Driver version : 4.19.35
Interface Info:
ID : 0x03000002
Type : V4L Video
Entity Info:
ID : 0x00000001 (1)
Name : USB2.0 PC CAMERA: USB2.0 PC CAM
Function : V4L2 I/O
Flags : default
Pad 0x01000007 : 0: Sink
Link 0x0200000d: from remote pad 0x100000a of entity 'Processing 2': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'YUYV' (YUYV 4:2:2)
Field : None
Bytes per Line : 1280
Size Image : 614400
Colorspace : Default
Transfer Function : Default (maps to Rec. 709)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Limited Range)
Flags :
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 640, Height 480
Default : Left 0, Top 0, Width 640, Height 480
Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 640, Height 480, Flags:
Selection: crop_bounds, Left 0, Top 0, Width 640, Height 480, Flags:
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 30.000 (30/1)
Read buffers : 0
brightness 0x00980900 (int) : min=0 max=255 step=1 default=128 value=128
contrast 0x00980901 (int) : min=0 max=255 step=1 default=130 value=130
saturation 0x00980902 (int) : min=0 max=255 step=1 default=64 value=64
hue 0x00980903 (int) : min=-127 max=127 step=1 default=0 value=0
gamma 0x00980910 (int) : min=1 max=8 step=1 default=4 value=4
power_line_frequency 0x00980918 (menu) : min=0 max=2 default=1 value=1
sharpness 0x0098091b (int) : min=0 max=15 step=1 default=13 value=13
backlight_compensation 0x0098091c (int) : min=1 max=5 step=1 default=1 value=1

I changed the pixel format to 'YUYV' in the source based on the above info. But that also not
accepting and throwing following errors,

Jul 30 09:51:32 imx8mqevk kernel: unknown pixelformat:'YUYV'
Jul 30 09:51:32 imx8mqevk kernel: mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x32315559) invalid.
Jul 30 09:51:32 imx8mqevk afbd-aroundview@0.1[4479]: fmt.fmt.pix.pixelformat 842093913
Jul 30 09:51:32 imx8mqevk afbd-aroundview@0.1[4479]: VIDIOC_S_FMT error 22, Invalid argument

For more details please see the following jornalctl logs and help me with how to solve the issues.

journalctl logs
============

– Logs begin at Mon 2020-07-27 17:20:52 UTC. –
Jul 27 17:23:30 imx8mqevk systemd[1]: Starting This is a demo application using openCV...
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -----BEGIN OF CONFIG----
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: – { Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "name": "afbd-aroundview@0.1", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "rootdir": "/var/local/lib/afm/applications/aroundview/0.1", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "workdir": "/home/1001/app-data/aroundview", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "monitoring": true, Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "port": 30024, Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "interface": [ Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "tcp:localuser--24:8080" Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- ], Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "roothttp": ".", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "ws-client": [ Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "unix:/run/user/1001/apis/ws/windowmanager", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "unix:/run/user/1001/apis/ws/homescreen" Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- ], Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "exec": [ Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "/var/local/lib/afm/applications/aroundview/0.1/bin/aroundview", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "@p", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "@t" Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- ], Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "apitimeout": 20, Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "cache-eol": 100000, Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "cntxtimeout": 32000000, Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "session-max": 200, Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "uploaddir": ".", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "rootbase": "/opa", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "rootapi": "/api", Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "ldpaths": [ Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "/usr/lib/afb" Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- ], Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "alias": [ Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- "/monitoring:/usr/lib/afb/monitoring" Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- ] Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -- }
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: -----END OF CONFIG----
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: running with pid 4492 [/home/vipulkumar/platform/A[ 164.377940] mx6s-csi 30a90000.csi1_bridge: CSI dev coherent is 1
GL_Master/build/tmp/work/aarch64-[ 164.386671] unknown pixelformat:'XR24'
agl-linux/af-binder/master+gitAUT[ 164.393143] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x34325258) invalid.
OINC+65353dce81-r0/git/src/main-afb-daemon.c:978,main]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: API monitor added [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-apiset.c:510,afb_apiset_add]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: Can't acces socket path /run/platform/supervisor: No such file or directory [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-supervision.c:164,try_connect_supervisor]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: Scanning dir=[/usr/lib/afb] for bindings [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-api-so.c:176,adddirs]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: Scanning dir=[/usr/lib/afb/monitoring] for bindings [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-api-so.c:176,adddirs]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: API windowmanager added [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-apiset.c:510,afb_apiset_add]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: API homescreen added [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-apiset.c:510,afb_apiset_add]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: NOTICE: API homescreen starting... [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-apiset.c:808,start_api]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: API homescreen started [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-apiset.c:827,start_api]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: NOTICE: API monitor starting... [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-apiset.c:808,start_api]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: API monitor started [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-apiset.c:827,start_api]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: NOTICE: API windowmanager starting... [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-apiset.c:808,start_api]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: API windowmanager started [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-apiset.c:827,start_api]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: INFO: Alias for url="" to path=/usr/lib/afb/monitoring [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/main-afb-daemon.c:299,init_alias]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: NOTICE: Serving rootdir=/var/local/lib/afm/applications/aroundview/0.1 uploaddir=. [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/main-afb-daemon.c:401,start_http_server]
Jul 27 17:23:30 imx8mqevk systemd[1]: Started This is a demo application using openCV.
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: NOTICE: Listening interface *:30024 [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-hsrv.c:557,hsrv_itf_connect]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: NOTICE: Browser URL= "" class="external-link" style="outline:invert;color:rgb(0,82,204);text-decoration:none" href="http://localhost:30024/" target="_blank" rel="nofollow noopener">http://localhost:30024 [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/main-afb-daemon.c:416,start_http_server]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: NOTICE: Listening interface localuser--24:8080 [/home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/af-binder/master+gitAUTOINC+65353dce81-r0/git/src/afb-hsrv.c:557,hsrv_itf_connect]
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: Using Wayland-EGL
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: surfaceID is set to 4
Jul 27 17:23:30 imx8mqevk afbd-aroundview@0.1[4492]: Using the 'ivi-shell' shell integration
Jul 27 17:23:30 imx8mqevk afbd-windowmanager-service@0.1[4217]: Warning: input acceptance event trying to add seat default, that is already in surface 4
Jul 27 17:23:30 imx8mqevk kernel: mx6s-csi 30a90000.csi1_bridge: CSI dev coherent is 1
*Jul 27 17:23:30 imx8mqevk kernel: unknown pixelformat:'XR24'
Jul 27 17:23:30 imx8mqevk kernel: mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x34325258) invalid.*



_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8574) | Reply To Group | Reply To Sender | Mute This Topic | New Topic

Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux