This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728 weston-simple-dmabuf-v4l 测试 XR24 格式视频 失败

Other Parts Discussed in Thread: AM5728

     我在AM5728 开发板测试 weston-simple-dmabuf-v4l ,通过加载 vivid.ko 得到视频源节点 /dev/video1

执行 weston-simple-dmabuf-v4l  /dev/video1  YUYV  YUYV,可以得到预期的效果

但执行

weston-simple-dmabuf-v4l  /dev/video1  XR24  XR24,得到的结果为:

Created 3 buffers
640×360, XR24
Error: zwp_linux_buffer_params.create failed.
Error: zwp_linux_buffer_params.create failed.
Error: zwp_linux_buffer_params.create failed.

我的实际视频格式为 XR24的,必须得用这种格式,谁能告诉我这个问题该怎么解决?

weston 版本为 1.11.0

  • 你是想同过weston-simple-dmabuf-v4l把视频源转换为XR24格式吧?你有确定weston-simple-dmabuf-v4l支持这种格式吗?是否需要插件

  •     见weston/clients/simple-dmabuf-v4l.c 的源码:

        ......

    printf("\n"
    "How to set up Vivid the virtual video driver for testing:\n"
    "- build your kernel with CONFIG_VIDEO_VIVID=m\n"
    "- add this to a /etc/modprobe.d/ file:\n"
    " options vivid node_types=0x1 num_inputs=1 input_types=0x00\n"
    "- modprobe vivid and check which device was created,\n"
    " here we assume /dev/video0\n"
    "- set the pixel format:\n"
    " $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=640,pixelformat=XR24\n"
    "- launch the demo:\n"
    " $ %s /dev/video0 XR24 XR24\n"
    "You should see a test pattern with color bars, and some text.\n"
    "\n"

    我是按照这个提示来操作的

    " $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=640,pixelformat=XR24\n"
    "- launch the demo:\n"
    " $ %s /dev/video0 XR24 XR24\n"

    XR24即 XRGB8888,我实际的视频源也是XRGB8888格式的,

    在weson-1.11.0版本上执行weston-simple-dmabuf-v4l  /dev/video1  XR24  XR24, 报错:

    Error: zwp_linux_buffer_params.create failed.

    如果装插件,该怎么装插件?

    附带问一下,在AM5728开发板上,如果我想升级wayland 和 weston 的版本,该怎么操作?