You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

iMX6Q平台GStreamer视频编码pipeline随机冻结卡顿问题

iMX6Q平台GStreamer录制Pipeline周期性冻结故障

故障表现

在基于iMX6Q的开发板上运行GStreamer pipeline应用时出现异常:启动视频输入录制到文件的功能后,运行随机时长后,主显示屏上的pipeline画面会冻结数秒后才恢复播放,同一pipeline运行过程中该现象可多次出现,最终录制的视频中也会出现与冻结次数一致的画面跳变。

复现方式

使用gst-launch构建如下测试pipeline可复现相同问题:

gst-launch-1.0 imxv4l2videosrc ! imxvideoconvert_ipu ! tee name=t t. ! queue ! imxipuvideosink t. ! queue ! vpuenc_h264 bitrate=20000 quant=0 ! matroskamux ! filesink  async=true location=/home/root/exam/noname.mp4

动态构建的pipeline示意图

尝试替换编码器为imxvpuenc_h264,故障现象完全一致。

已采集的定位信息

  • 开启DEBUG输出并添加timeoverlay元素捕获时间戳,测得故障分别在运行至14秒、24秒、44.077秒时触发,已留存关联GST日志。
  • 曾捕获到一次特殊运行输出(后续未再复现),观察到每次日志出现freed block记录时,pipeline就会从冻结状态恢复,相关日志片段如下:

0:02:21.136883684 696 0x1fc7d80 INFO imxphysmemallocator
phys_mem_allocator.c:190:gst_imx_phys_mem_allocator_free:
freed block 0x69203548 at phys addr 0x3c9c0000 with size: 235200
0:02:21.137171351 696 0x1fc7d80 INFO imxphysmemallocator phys_mem_allocator.c:190:gst_imx_phys_mem_allocator_free:
freed block 0x69203688 at phys addr 0x3c5c0000 with size: 235200
0:02:21.139984017 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a611ad8 at phys addr 0x3ce40000 with 235200
bytes
0:02:21.478791684 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a611a88 at phys addr 0x3c5c0000 with 235200
bytes
0:02:21.487979017 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69202d40 at phys addr 0x3c9c0000 with 235200
bytes
0:02:35.688026352 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a6058a8 at phys addr 0x3ce80000 with 235200
bytes
0:02:35.718750019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69202f70 at phys addr 0x3cec0000 with 235200
bytes
0:02:35.751753019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a611948 at phys addr 0x3cf00000 with 235200
bytes
0:02:35.785059352 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a6118a8 at phys addr 0x3cf40000 with 235200
bytes
0:02:35.819149686 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69203728 at phys addr 0x3cf80000 with 235200
bytes
0:02:35.851361352 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a6119e8 at phys addr 0x3cfc0000 with 235200
bytes
0:02:35.886579019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a611a38 at phys addr 0x3d000000 with 235200
bytes
0:02:35.918826019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69209da8 at phys addr 0x3d040000 with 235200
bytes
0:02:35.949963686 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69209e48 at phys addr 0x3d080000 with 235200
bytes
0:02:35.984716352 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69209ee8 at phys addr 0x3d0c0000 with 235200
bytes
0:02:36.018140019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69209f88 at phys addr 0x3d100000 with 235200
bytes
0:02:36.051139686 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a613470 at phys addr 0x3d140000 with 235200
bytes
0:02:36.084571352 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a613510 at phys addr 0x3d180000 with 235200
bytes
0:02:36.117948019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a6135b0 at phys addr 0x3d1c0000 with 235200
bytes
0:02:36.151357352 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a613650 at phys addr 0x3d200000 with 235200
bytes
0:02:36.184409686 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a6136f0 at phys addr 0x3d240000 with 235200
bytes
0:02:36.217806686 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a613790 at phys addr 0x3d280000 with 235200
bytes
0:02:36.250990019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a613420 at phys addr 0x3d2c0000 with 235200
bytes
0:02:36.283248686 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69209e98 at phys addr 0x466c0000 with 235200
bytes
0:02:36.316750019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a605b28 at phys addr 0x46700000 with 235200
bytes
0:02:36.349774019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69202de0 at phys addr 0x46740000 with 235200
bytes
0:02:36.383089019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a611808 at phys addr 0x46780000 with 235200
bytes
0:02:36.416394686 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a613740 at phys addr 0x467c0000 with 235200
bytes
0:02:36.452180686 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a613600 at phys addr 0x46800000 with 235200
bytes
0:02:36.481756019 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a6134c0 at phys addr 0x46840000 with 235200
bytes
0:02:36.516267686 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69209f38 at phys addr 0x46880000 with 235200
bytes
0:02:54.977848021 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x6a613560 at phys addr 0x468c0000 with 235200
bytes
0:02:54.984635355 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69209d58 at phys addr 0x46900000 with 235200
bytes
0:02:55.271305021 696 0x1fc7c30 INFO imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:
allocated memory block 0x69209cb8 at phys addr 0x46940000 with 235200
bytes
0:02:55.623891021 696 0x1fc7d80 INFO imxphysmemallocator phys_mem_allocator.c:190:gst_imx_phys_mem_allocator_free:
freed block 0x6a6118a8 at phys addr 0x3cf40000 with size: 235200

补充说明

冻结故障发生时,GStreamer bus上未收到状态变更类消息,也无其他异常消息上报,需提供问题排查与解决思路。


内容的提问来源于stack exchange,提问作者deletMe

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.02 03:24:28