Other Parts Discussed in Thread: AM62P
器件型号: AM62A7
主题: AM62P 中讨论的其他器件、
尊敬的工程师:
我目前正在两个不同端口之间切换流、每个流都从不同的摄像头推送。 但是、我在运行时遇到随机崩溃。
在启动过程中、我注意到以下错误:
rmmod: ERROR: Module wave5 is in use
为了解决这个问题、我进行了 init_script.sh 如下修改:
diff --git a/edgeai-gst-apps/init_script.sh b/edgeai-gst-apps/init_script.sh
old mode 100755
new mode 100644
index 69d6d19..ab9dbd0
--- a/edgeai-gst-apps/init_script.sh
+++ b/edgeai-gst-apps/init_script.sh
@@ -59,8 +59,7 @@ elif [ "$SOC" == "j784s4" ]; then
k3conf set clock 400 1 720000000 &> /dev/null #VPAC1
k3conf set clock 92 0 480000000 &> /dev/null #DMPAC
elif [ "$SOC" == "am62a" ]; then
- rmmod wave5
- modprobe wave5 vpu_poll_interval=1
+ lsmod | grep -q wave5 || modprobe wave5 vpu_poll_interval=1
fi
尽管发生了此更改、但我仍然看到运行时错误和警告:
[ 539.203443] vdec 30210000.video-codec: wave5_vpu_enc_finish_encode: encoded buffer (1) was not in ready queue 0.
[ 539.214308] vdec 30210000.video-codec: wave5_vpu_enc_finish_encode: no source buffer with index: 1 found
[ 573.338134] vdec 30210000.video-codec: wave5_vpu_firmware_command_queue_error_check: result not ready: 0x800
[ 573.348087] vdec 30210000.video-codec: wave5_vpu_firmware_command_queue_error_check: result not ready: 0x800
[ 573.358347] vdec 30210000.video-codec: wave5_vpu_dec_finish_decode: could not get output info.
** (python3:1854): WARNING **: v4l2h264dec0: Too old frames, bug in decoder -- please file a bug
问题似乎与 wave5 切换流时的 VPU 解码器或缓冲区处理有关。
请告知:
- 是否可以通过适当的处理方法来解决此问题?
- 或者、是否有任何推荐的流切换替代方法来避免这些崩溃?
此致、
Sajan
