【问题标题】:1080p @ 60fps for the iMX 6 Quad or iMX 8?iMX6 Quad 或 iMX8 的 1080p @ 60fps?
【发布时间】:2020-11-03 02:44:01
【问题描述】:

我正在尝试在 iMX 6 Quad 上同时进行视频编码和流式传输。目前,这是我正在使用的管道:

gst-launch-1.0 -v videotestsrc num-buffers=300 ! video/x-raw,format=YUY2,width=1280,height=720,framerate=60/1! videoconvert ! video/x-raw,format=I420 ! \
   tee name=t \
   t. ! queue ! imxvpuenc_h264 ! h264parse ! mp4mux ! filesink location="test-3.mp4" \
   t. ! queue ! imxipuvideosink

注意videotestsrc是模拟一个输出格式为YUY2的相机。

我不能超过 720p @ 60fps [这也包括 1080p 的任何帧速率]。这是由于我设置的硬件或管道造成的性能瓶颈吗?因为我收到这样的警告消息:

   WARNING: from element /GstPipeline:pipeline0/GstImxIpuVideoSink:imxipuvideosink0: A lot of buffers are being dropped.
   Additional debug info:
   gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstImxIpuVideoSink:imxipuvideosink0:
   There may be a timestamping problem, or this computer is too slow.

另外,如果有人有 iMX 8 板,您能否尝试运行 1080p @ 60fps 并查看此管道是否有任何性能问题?

gst-launch-1.0 -v videotestsrc num-buffers=300 ! video/x-raw,format=YUY2,width=1920,height=1080,framerate=60/1! videoconvert ! video/x-raw,format=I420 ! \
   tee name=t \
   t. ! queue ! imxvpuenc_h264 ! h264parse ! mp4mux ! filesink location="test-3.mp4" \
   t. ! queue ! imxipuvideosink

【问题讨论】:

标签: gstreamer-1.0 imx6


【解决方案1】:

您的管道中有几个瓶颈:

  1. 首先,让 videotestsrc 生成 1080 码流太多了。如果可能,我建议使用相机,或者至少将 pattern 属性更改为 black
  2. 不要使用videoconvert,这是基于软件的。在 imx6 中,您可以使用基于硬件的 imxipuvideotransformimxg2dvideotransform

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-11-09
    • 1970-01-01
    • 2019-11-25
    • 1970-01-01
    • 1970-01-01
    • 2016-07-24
    • 1970-01-01
    相关资源
    最近更新 更多