lenLRX/Atlas_ACL_E2E_Demo

FFmpeg

Opened this issue · 4 comments

作者您好,我想咨询一下该仓库是否对ffmpeg版本有要求?红框的地方报错。我使用的CANN是版本是6.0.0.alpha003。
image
image

之后重新制卡运行了环境,现在的问题和[MichaelToLearn]提问的问题一样了,也是Segmentation fault,错误的地方也一致,我用的也是CANN6.0,感觉是CANN版本的问题。

我测试了以下软件版本没有问题。
驱动1.0.13.alpha版本:
A200dk-npu-driver-21.0.4-ubuntu18.04-aarch64-minirc.tar.gz
CANN6.0.0.alpha003:
Ascend-cann-nnrt_6.0.0.alpha003_linux-aarch64.run

按照我的环境配置文档应该是没有问题的制卡后环境配置

测试输出:
root@davinci-mini:~/Atlas_ACL_E2E_Demo# ./run.sh config/yolov5_v6_demo.json
total dev count: 1
aicpu_kernels_device/
aicpu_kernels_device/libtf_kernels.so
aicpu_kernels_device/libaicpu_kernels.so
aicpu_kernels_device/libcpu_kernels.so
aicpu_kernels_device/libtensorflow.so
aicpu_kernels_device/version.info
aicpu_kernels_device/libpt_kernels.so
[FFMPEGInput::Init] freecar.mp4 codec name:h264
avcc profile: 100
frame h: 1080 frame w: 1920
ticks_per_frame: 2
framerate.num: 25
framerate.den: 1
ref frame num: 1
has B frame: 1
pix format: 0
codec_tag 828601953
extra_data size: 45
[DvppDecoder::Init] h: 1080 w:1920output_size: 3110400
YOLOv5 Model Info:
ACLModel:./model/yolov5s_v6.om
Input Num:1
Input shapes:614400,
Output Num:4
Output shapes:8568000, 6528000, 1632000, 408000,
FFMPEGOutput::Init frame send interval: 0.04
[libx264 @ 0xfffee530c940] using cpu capabilities: ARMv8 NEON
[libx264 @ 0xfffee530c940] profile High, level 4.0
[libx264 @ 0xfffee530c940] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=12 keyint_min=1 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'freecar_yolov5_v6.mp4':
Stream #0:0: Video: h264 (libx264), nv12, 1920x1080, q=-1--1
[FFMPEGOutput::Init] expected frame size 3110400
[DvppEncoder::Init] height:1080 width: 1920 size: 3110400
/usr/local/lib/python3.6/dist-packages/torchvision/io/image.py:11: UserWarning: Failed to load image Python extension:
warn(f"Failed to load image Python extension: {e}")
[FFMPEGInput::ReceivePacketWithBSF] err string: End of file
End of stream input: stream[0] freecar.mp4
AppProfiler shutdown

你好现在网上都是推荐镜像制卡,制卡出来后运行有什么变动吗