在算能
开发板上,使用最新sophonsdk中对应sophon-sail_20230605_085400目录,运行对应视频解码用例 video_decoder,结果发现用例会卡住,
并出现如下打印:
BMvidDecCreateW5 board id 0 coreid 0
经过增加打印调测发现,发现卡在 sail::Decoder 构造函数运行过程中,运行Decoder_CC构造函数avcodec_open2未返回,然后就看不到具体代码。
用例中尝试使用avi或mp4视频格式,均能复现以上卡住问题。
查看当前安装sophon相关dev包如下:
linaro@BM1684-180:/data/young/sophonsdk/Release_230501-public/sophon-sail_20230605_085400/sophon-sail/sample/cpp$ sudo dpkg -l | grep sophon
ii sophon-driver 0.4.8 arm64 libsophon built using CMake
ii sophon-libsophon 0.4.8 arm64 libsophon built using CMake
ii sophon-mw-soc-sophon-ffmpeg 0.6.3 arm64 Sophon mul
timedia library
ii sophon-mw-soc-sophon-ffmpeg-dev 0.6.3 arm64 Sophon multimedia library
ii sophon-mw-soc-sophon-opencv 0.6.3 arm64 Sophon multimedia library
ii sophon-mw-soc-sophon-opencv-dev 0.6.3 arm64 Sophon multimedia library
ii sophon-mw-sophon-ffmpeg 0.6.3 arm64 Sophon multimedia library
ii sophon-mw-sophon-opencv 0.6.3 arm64 Sophon multimedia library
ii sophon-mw-sophon-sample 0.6.3 arm64 Sophon multimedia library
ii sophon-soc-libsophon 0.4.8 arm64 libsophon built using CMake
ii sophon-soc-libsophon-dev 0.4.8 arm64 libsophon built using CMake
当前使用sdk版本为Release_230501-public,帮忙如何解决该视频解码卡住问题?