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.

[参考译文] J722SXH01EVM:DMABuf 导入和导出支持不适用于 E5010 JPEG 编码器驱动程序

Guru**** 2487425 points
Other Parts Discussed in Thread: J722SXH01EVM

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1438539/j722sxh01evm-dmabuf-import-and-export-support-doesn-t-work-for-the-e5010-jpeg-encoder-driver

器件型号:J722SXH01EVM

工具与软件:

您好!

根据 E5010 JPEG 编码器文档(https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-am67/latest/exports/docs/linux/JPEG/Kernel/E5010_JPEG_Encoder.html#dmabuf-import-and-export-support Kernel_Drivers)、Foundational_Components  编码器驱动程序应能够导入和导出用于捕获和输出队列的 dmabuf。 但实际上、它似乎不起作用:

首先、 "output-io-mode"或"capture-io-mode"没有"dmabuf-export"选项、请参阅:

$ gst-inspect-1.0 v4l2jpegenc
Factory Details:
  Rank                     primary + 1 (257)
  Long-name                V4L2 JPEG Encoder
  Klass                    Codec/Encoder/Video/Hardware
  Description              Encode JPEG video streams via V4L2 API
  Author                   Ezequiel Garcia <ezequiel@collabora.com
  Documentation            gstreamer.freedesktop.org/.../v4l2jpegenc.html
 
Plugin Details:
  Name                     video4linux2
  Description              elements for Video 4 Linux
  Filename                 /usr/lib/gstreamer-1.0/libgstvideo4linux2.so
  Version                  1.22.12
  License                  LGPL
  Source module            gst-plugins-good
  Documentation            gstreamer.freedesktop.org/.../
  Source release date      2024-04-29
  Binary package           GStreamer Good Plug-ins source release
  Origin URL               Unknown package origin
 ...
Element Properties:
 
  capture-io-mode     : Capture I/O mode (matches src pad)
                        flags: readable, writable
                        Enum "GstV4l2IOMode" Default: 0, "auto"
                           (0): auto             - GST_V4L2_IO_AUTO
                           (1): rw               - GST_V4L2_IO_RW
                           (2): mmap             - GST_V4L2_IO_MMAP
                           (3): userptr          - GST_V4L2_IO_USERPTR
                           (4): dmabuf           - GST_V4L2_IO_DMABUF
                           (5): dmabuf-import    - GST_V4L2_IO_DMABUF_IMPORT
 ...
  output-io-mode      : Output side I/O mode (matches sink pad)
                        flags: readable, writable
                        Enum "GstV4l2IOMode" Default: 0, "auto"
                           (0): auto             - GST_V4L2_IO_AUTO
                           (1): rw               - GST_V4L2_IO_RW
                           (2): mmap             - GST_V4L2_IO_MMAP
                           (3): userptr          - GST_V4L2_IO_USERPTR
                           (4): dmabuf           - GST_V4L2_IO_DMABUF
                           (5): dmabuf-import    - GST_V4L2_IO_DMABUF_IMPORT
 ...

其次、使用 "output-io-mode=dmabuf-import"也会导致 JPEG 编码器驱动程序出错:

$ gst-launch-1.0 v4l2src device=/dev/video-rpi-cam0 io-mode=5 ! \
video/x-bayer,width=1920,height=1080,format=bggr ! \
tiovxisp sensor-name=SENSOR_SONY_IMX219_RPI dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_1920x1080.bin \
sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_1920x1080.bin sink_0::device=/dev/v4l-rpi-subdev0 ! \
video/x-raw,format=NV12 ! v4l2jpegenc output-io-mode=dmabuf-import ! fakesink
...
ERROR: from element /GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0: Failed to process frame.
...

我们在 J722SXH01EVM 上使用 SDK10。

此致、

Danxuan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!  

    我将对此进行研究、让您了解我的发现。

    此致、
    Sarabesh S.