【发布时间】: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
【问题讨论】:
-
What topics can I ask about here?这是一道编程题吗?
标签: gstreamer-1.0 imx6