登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
Gitee 年度开源项目评选结果正式揭晓,速戳👉
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
人工智能
>
AI-人工智能
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
32
Star
152
Fork
235
Ascend
/
mindsdk-referenceapps
暂停
代码
Issues
22
Pull Requests
26
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
Ascend310 上使用ffmpeg利用NPU加速报错Call hi_mpi_sys_init failed, ret is -1610448875
TODO
#IB8CLR
缺陷
heathcliff
创建于
2024-12-02 13:39
一、问题现象(附报错日志上下文):  二、软件版本:  三、测试步骤: 使用ffmpeg利用NPU进行加速解码: ffmpeg -hwaccel ascend -i test.mp4 -s 1920*1080 -c:v h264_ascend -an out_ascend.264 四、日志信息: [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.355.979 [msprof_callback_impl.cpp:324] >>> (tid:8452) Started to register profiling ctrl callback. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.356.145 [msprof_callback_impl.cpp:331] >>> (tid:8452) Started to register profiling hash id callback. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.356.156 [prof_atls_plugin.cpp:83] >>> (tid:8452) RegisterProfileCallback, callback type is 7 [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.356.162 [msprof_callback_impl.cpp:338] >>> (tid:8452) Started to register profiling enable host freq callback. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.356.168 [prof_atls_plugin.cpp:83] >>> (tid:8452) RegisterProfileCallback, callback type is 8 ffmpeg version d489c121 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 7 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) configuration: --prefix=/usr/local --enable-shared --extra-cflags=-I/usr/local/Ascend/ascend-toolkit/latest/acllib/include --extra-ldflags=-L/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64 --extra-libs='-lacl_dvpp_mpi -lascendcl' --enable-ascend --enable-hwaccel=ascend --enable-gpl --enable-nonfree --enable-ffplay --enable-libx264 --enable-filter=delogo --disable-optimizations --enable-shared --enable-pthreads --enable-cross-compile libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 Splitting the commandline. Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'ascend'. Reading option '-i' ... matched as input url with argument 'test.mp4'. Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '1920x1080'. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'h264_ascend'. Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'. Reading option 'ascend.264' ... matched as output url. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input url test.mp4. Applying option hwaccel (use HW accelerated decoding) with argument ascend. Successfully parsed a group of options. Opening an input file: test.mp4. [NULL @ 0xaaaaef34dbc0] Opening 'test.mp4' for reading [file @ 0xaaaaeede8a90] Setting default whitelist 'file,crypto,data' [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] ISO: File Type Major Brand: isom [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] Unknown dref type 0x206c7275 size 12 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] Processing st: 0, edit list 0 - media time: 0, duration: 52740 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] Before avformat_find_stream_info() pos: 1242 bytes read:32768 seeks:0 nb_streams:1 [h264 @ 0xaaaaef34f040] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] nal_unit_type: 8(PPS), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] nal_unit_type: 8(PPS), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] nal_unit_type: 5(IDR), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] Format yuv420p chosen by get_format(). [h264 @ 0xaaaaef34f040] Reinit context to 640x368, pix_fmt: yuv420p [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] After avformat_find_stream_info() pos: 10933 bytes read:32768 seeks:0 frames:1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.20.100 Duration: 00:00:04.29, start: 0.000000, bitrate: 510 kb/s Stream #0:0(und), 1, 1/12288: Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, left), 640x368, 0/1, 508 kb/s, SAR 46:45 DAR 16:9, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] Successfully opened the file. Parsing a group of options: output url ascend.264. Applying option s (set frame size (WxH or abbreviation)) with argument 1920x1080. Applying option c:v (codec name) with argument h264_ascend. Applying option an (disable audio) with argument 1. Successfully parsed a group of options. Opening an output file: ascend.264. [file @ 0xaaaaef205980] Setting default whitelist 'file,crypto,data' Successfully opened the file. [AVHWDeviceContext @ 0xaaaaef34d870] device id is: 0. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.371.777 [prof_atls_plugin.cpp:154] >>> (tid:8452) Module[7] register callback of ctrl handle. [EVENT] ASCENDCL(8452,ffmpeg):2024-12-02-13:37:03.371.861 [acl_resource_manager.cpp:90]8452 GetRuntimeV2Env: runtime v2 flag : model flag = 1, singleOp flag = 1 [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.381.357 [prof_atls_plugin.cpp:154] >>> (tid:8452) Module[48] register callback of ctrl handle. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.381.387 [prof_atls_plugin.cpp:154] >>> (tid:8452) Module[45] register callback of ctrl handle. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.715.816 [msprof_callback_impl.cpp:79] >>> (tid:8452) MsprofCtrlCallback called, type: 255 [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.715.995 [ai_drv_dev_api.cpp:333] >>> (tid:8452) Succeeded to DrvGetApiVersion version: 0x71f0d [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.716.572 [process_mode_manager.cpp:103][OpenProcess][tid:8452] [ProcessModeManager] enter into open process deviceId[0] rankSize[0] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.716.820 [process_mode_manager.cpp:371][InitTsdClient][tid:8452] [TsdClient] deviceId[0] begin to init hdc client [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.716.978 [version_verify.cpp:34][SetVersionInfo][tid:8452] VersionVerify: send client version to server [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.001 [version_verify.cpp:51][SetVersionInfo][tid:8452] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.010 [version_verify.cpp:51][SetVersionInfo][tid:8452] send feature_info:{msg_type:37, features:{check before send open qs message,}} [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.546 [version_verify.cpp:67][PeerVersionCheck][tid:8452] VersionVerify: Check client version info, server[1230], client[1230] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.564 [version_verify.cpp:88][ParseVersionInfo][tid:8452] VersionVerify: pass client version info success [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.571 [hdc_client.cpp:272][CheckHdcConnection][tid:8452] Service[2] create hdc success [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.582 [version_verify.cpp:121][SpecialFeatureCheck][tid:8452] VersionVerify: new type[35], supported [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.637 [process_mode_manager.cpp:737][GetDeviceCheckCode][tid:8452] [TsdClient][deviceId=0] [sessionId=1]wait package info respond [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.913 [process_mode_manager.cpp:371][InitTsdClient][tid:8452] [TsdClient] deviceId[0] begin to init hdc client [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.052 [version_verify.cpp:34][SetVersionInfo][tid:8452] VersionVerify: send client version to server [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.065 [version_verify.cpp:51][SetVersionInfo][tid:8452] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.073 [version_verify.cpp:51][SetVersionInfo][tid:8452] send feature_info:{msg_type:37, features:{check before send open qs message,}} [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.408 [version_verify.cpp:67][PeerVersionCheck][tid:8452] VersionVerify: Check client version info, server[1230], client[1230] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.433 [version_verify.cpp:88][ParseVersionInfo][tid:8452] VersionVerify: pass client version info success [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.440 [hdc_client.cpp:272][CheckHdcConnection][tid:8452] Service[2] create hdc success [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.448 [process_mode_manager.cpp:418][ConstructOpenMsg][tid:8452] [TsdClient] tsd get process sign successfully, procpid[8452] signSize[48] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.456 [version_verify.cpp:113][SpecialFeatureCheck][tid:8452] VersionVerify: previous type[6], supported [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.473 [process_mode_manager.cpp:120][OpenProcess][tid:8452] [ProcessModeManager] deviceId[0] sessionId[1] rankSize[0], wait sub process start respond [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.032.373 [stub_process_mode_nowin.cpp:61][ProcessQueueForMdc][tid:8452] [TsdClient] it is unnecessary of current mode[0] chiptype[2] to grant queue auth to aicpusd [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.032.398 [stub_process_mode_nowin.cpp:99][OpenInHost][tid:8452] enter into OpenInHost deviceid[0] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.032.406 [stub_process_mode_nowin.cpp:103][OpenInHost][tid:8452] host cpu not support [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.032.412 [process_mode_manager.cpp:150][OpenProcess][tid:8452] [TsdClient][deviceId=0] [sessionId=1] start hccp and computer process success [EVENT] RUNTIME(8452,ffmpeg):2024-12-02-13:37:04.035.815 [npu_driver.cc:5134] 8456 GetDeviceStatus: GetDeviceStatus status=1. [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.035.877 [client_manager.cpp:157][SetProfilingCallback][tid:8452] [TsdClient] set profiling callback success detected 4 logical cores [h264 @ 0xaaaaf4343fd0] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0xaaaaf4343fd0] nal_unit_type: 8(PPS), nal_ref_idc: 3 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_ascend)) Press [q] to stop, [?] for help cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) Last message repeated 1 times [h264 @ 0xaaaaf4343fd0] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0xaaaaf4343fd0] nal_unit_type: 8(PPS), nal_ref_idc: 3 [h264 @ 0xaaaaf4343fd0] nal_unit_type: 5(IDR), nal_ref_idc: 3 [h264 @ 0xaaaaf4343fd0] Format yuv420p chosen by get_format(). [h264 @ 0xaaaaf4343fd0] Reinit context to 640x368, pix_fmt: yuv420p cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) [h264 @ 0xaaaaf454ad00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) [h264 @ 0xaaaaf4566800] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) [h264 @ 0xaaaaf4582300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 [h264 @ 0xaaaaf459de00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'video_size' to value '640x368' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'time_base' to value '1/12288' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'pixel_aspect' to value '46/45' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'frame_rate' to value '24/1' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] w:640 h:368 pixfmt:yuv420p tb:1/12288 fr:24/1 sar:46/45 [scaler_out_0_0 @ 0xaaaaf4351bc0] Setting 'w' to value '1920' [scaler_out_0_0 @ 0xaaaaf4351bc0] Setting 'h' to value '1080' [scaler_out_0_0 @ 0xaaaaf4351bc0] Setting 'flags' to value 'bicubic' [scaler_out_0_0 @ 0xaaaaf4351bc0] w:1920 h:1080 flags:'bicubic' interl:0 [format @ 0xaaaaf4356640] Setting 'pix_fmts' to value 'nv12|ascend' [AVFilterGraph @ 0xaaaaef353be0] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed [scaler_out_0_0 @ 0xaaaaf4351bc0] w:640 h:368 fmt:yuv420p sar:46/45 -> w:1920 h:1080 fmt:nv12 sar:1/1 flags:0x4 [h264_ascend @ 0xaaaaef37a370] Using device ascend0 (type ascend) with h264_ascend encoder. [h264_ascend_enc @ 0xaaaaef3b31a0] Device id is: 0. [AVHWDeviceContext @ 0xaaaaef37afe0] device id is: 0. [ERROR] DVPP(8452,ffmpeg):2024-12-02-13:37:04.077.259 [mpi_sys.cpp:21][WRAP] [hi_mpi_sys_init:21] [tid:8452] sys wrapper is null [h264_ascend_enc @ 0xaaaaef3b31a0] Call hi_mpi_sys_init failed, ret is -1610448875. [h264_ascend_enc @ 0xaaaaef3b31a0] Enc sem_timewait = -1, time out, semvalue = 0 ... [h264_ascend @ 0xaaaaef37a370] Encode closed. Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height [AVIOContext @ 0xaaaaef37ad00] Statistics: 0 seeks, 0 writeouts [AVIOContext @ 0xaaaaee566070] Statistics: 32768 bytes read, 0 seeks Conversion failed! [EVENT] RUNTIME(8452,ffmpeg):2024-12-02-13:37:07.153.461 [runtime.cc:1441] 8452 ~Runtime: deconstruct runtime. 日志提供方式: 将日志打包后作为附件上传。若日志大小超出附件限制,则可上传至外部网盘后提供链接。 获取方法请参考wiki: https://gitee.com/ascend/modelzoo/wikis/%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E6%97%A5%E5%BF%97%E5%92%8C%E8%AE%A1%E7%AE%97%E5%9B%BE?sort_id=4097825
一、问题现象(附报错日志上下文):  二、软件版本:  三、测试步骤: 使用ffmpeg利用NPU进行加速解码: ffmpeg -hwaccel ascend -i test.mp4 -s 1920*1080 -c:v h264_ascend -an out_ascend.264 四、日志信息: [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.355.979 [msprof_callback_impl.cpp:324] >>> (tid:8452) Started to register profiling ctrl callback. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.356.145 [msprof_callback_impl.cpp:331] >>> (tid:8452) Started to register profiling hash id callback. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.356.156 [prof_atls_plugin.cpp:83] >>> (tid:8452) RegisterProfileCallback, callback type is 7 [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.356.162 [msprof_callback_impl.cpp:338] >>> (tid:8452) Started to register profiling enable host freq callback. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.356.168 [prof_atls_plugin.cpp:83] >>> (tid:8452) RegisterProfileCallback, callback type is 8 ffmpeg version d489c121 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 7 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) configuration: --prefix=/usr/local --enable-shared --extra-cflags=-I/usr/local/Ascend/ascend-toolkit/latest/acllib/include --extra-ldflags=-L/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64 --extra-libs='-lacl_dvpp_mpi -lascendcl' --enable-ascend --enable-hwaccel=ascend --enable-gpl --enable-nonfree --enable-ffplay --enable-libx264 --enable-filter=delogo --disable-optimizations --enable-shared --enable-pthreads --enable-cross-compile libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 Splitting the commandline. Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'ascend'. Reading option '-i' ... matched as input url with argument 'test.mp4'. Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '1920x1080'. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'h264_ascend'. Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'. Reading option 'ascend.264' ... matched as output url. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input url test.mp4. Applying option hwaccel (use HW accelerated decoding) with argument ascend. Successfully parsed a group of options. Opening an input file: test.mp4. [NULL @ 0xaaaaef34dbc0] Opening 'test.mp4' for reading [file @ 0xaaaaeede8a90] Setting default whitelist 'file,crypto,data' [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] ISO: File Type Major Brand: isom [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] Unknown dref type 0x206c7275 size 12 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] Processing st: 0, edit list 0 - media time: 0, duration: 52740 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] Before avformat_find_stream_info() pos: 1242 bytes read:32768 seeks:0 nb_streams:1 [h264 @ 0xaaaaef34f040] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] nal_unit_type: 8(PPS), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] nal_unit_type: 8(PPS), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] nal_unit_type: 5(IDR), nal_ref_idc: 3 [h264 @ 0xaaaaef34f040] Format yuv420p chosen by get_format(). [h264 @ 0xaaaaef34f040] Reinit context to 640x368, pix_fmt: yuv420p [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaaef34dbc0] After avformat_find_stream_info() pos: 10933 bytes read:32768 seeks:0 frames:1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.20.100 Duration: 00:00:04.29, start: 0.000000, bitrate: 510 kb/s Stream #0:0(und), 1, 1/12288: Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, left), 640x368, 0/1, 508 kb/s, SAR 46:45 DAR 16:9, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] Successfully opened the file. Parsing a group of options: output url ascend.264. Applying option s (set frame size (WxH or abbreviation)) with argument 1920x1080. Applying option c:v (codec name) with argument h264_ascend. Applying option an (disable audio) with argument 1. Successfully parsed a group of options. Opening an output file: ascend.264. [file @ 0xaaaaef205980] Setting default whitelist 'file,crypto,data' Successfully opened the file. [AVHWDeviceContext @ 0xaaaaef34d870] device id is: 0. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.371.777 [prof_atls_plugin.cpp:154] >>> (tid:8452) Module[7] register callback of ctrl handle. [EVENT] ASCENDCL(8452,ffmpeg):2024-12-02-13:37:03.371.861 [acl_resource_manager.cpp:90]8452 GetRuntimeV2Env: runtime v2 flag : model flag = 1, singleOp flag = 1 [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.381.357 [prof_atls_plugin.cpp:154] >>> (tid:8452) Module[48] register callback of ctrl handle. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.381.387 [prof_atls_plugin.cpp:154] >>> (tid:8452) Module[45] register callback of ctrl handle. [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.715.816 [msprof_callback_impl.cpp:79] >>> (tid:8452) MsprofCtrlCallback called, type: 255 [EVENT] PROFILING(8452,ffmpeg):2024-12-02-13:37:03.715.995 [ai_drv_dev_api.cpp:333] >>> (tid:8452) Succeeded to DrvGetApiVersion version: 0x71f0d [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.716.572 [process_mode_manager.cpp:103][OpenProcess][tid:8452] [ProcessModeManager] enter into open process deviceId[0] rankSize[0] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.716.820 [process_mode_manager.cpp:371][InitTsdClient][tid:8452] [TsdClient] deviceId[0] begin to init hdc client [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.716.978 [version_verify.cpp:34][SetVersionInfo][tid:8452] VersionVerify: send client version to server [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.001 [version_verify.cpp:51][SetVersionInfo][tid:8452] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.010 [version_verify.cpp:51][SetVersionInfo][tid:8452] send feature_info:{msg_type:37, features:{check before send open qs message,}} [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.546 [version_verify.cpp:67][PeerVersionCheck][tid:8452] VersionVerify: Check client version info, server[1230], client[1230] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.564 [version_verify.cpp:88][ParseVersionInfo][tid:8452] VersionVerify: pass client version info success [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.571 [hdc_client.cpp:272][CheckHdcConnection][tid:8452] Service[2] create hdc success [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.582 [version_verify.cpp:121][SpecialFeatureCheck][tid:8452] VersionVerify: new type[35], supported [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.637 [process_mode_manager.cpp:737][GetDeviceCheckCode][tid:8452] [TsdClient][deviceId=0] [sessionId=1]wait package info respond [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.717.913 [process_mode_manager.cpp:371][InitTsdClient][tid:8452] [TsdClient] deviceId[0] begin to init hdc client [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.052 [version_verify.cpp:34][SetVersionInfo][tid:8452] VersionVerify: send client version to server [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.065 [version_verify.cpp:51][SetVersionInfo][tid:8452] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.073 [version_verify.cpp:51][SetVersionInfo][tid:8452] send feature_info:{msg_type:37, features:{check before send open qs message,}} [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.408 [version_verify.cpp:67][PeerVersionCheck][tid:8452] VersionVerify: Check client version info, server[1230], client[1230] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.433 [version_verify.cpp:88][ParseVersionInfo][tid:8452] VersionVerify: pass client version info success [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.440 [hdc_client.cpp:272][CheckHdcConnection][tid:8452] Service[2] create hdc success [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.448 [process_mode_manager.cpp:418][ConstructOpenMsg][tid:8452] [TsdClient] tsd get process sign successfully, procpid[8452] signSize[48] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.456 [version_verify.cpp:113][SpecialFeatureCheck][tid:8452] VersionVerify: previous type[6], supported [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:03.718.473 [process_mode_manager.cpp:120][OpenProcess][tid:8452] [ProcessModeManager] deviceId[0] sessionId[1] rankSize[0], wait sub process start respond [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.032.373 [stub_process_mode_nowin.cpp:61][ProcessQueueForMdc][tid:8452] [TsdClient] it is unnecessary of current mode[0] chiptype[2] to grant queue auth to aicpusd [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.032.398 [stub_process_mode_nowin.cpp:99][OpenInHost][tid:8452] enter into OpenInHost deviceid[0] [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.032.406 [stub_process_mode_nowin.cpp:103][OpenInHost][tid:8452] host cpu not support [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.032.412 [process_mode_manager.cpp:150][OpenProcess][tid:8452] [TsdClient][deviceId=0] [sessionId=1] start hccp and computer process success [EVENT] RUNTIME(8452,ffmpeg):2024-12-02-13:37:04.035.815 [npu_driver.cc:5134] 8456 GetDeviceStatus: GetDeviceStatus status=1. [EVENT] TDT(8452,ffmpeg):2024-12-02-13:37:04.035.877 [client_manager.cpp:157][SetProfilingCallback][tid:8452] [TsdClient] set profiling callback success detected 4 logical cores [h264 @ 0xaaaaf4343fd0] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0xaaaaf4343fd0] nal_unit_type: 8(PPS), nal_ref_idc: 3 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_ascend)) Press [q] to stop, [?] for help cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) Last message repeated 1 times [h264 @ 0xaaaaf4343fd0] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0xaaaaf4343fd0] nal_unit_type: 8(PPS), nal_ref_idc: 3 [h264 @ 0xaaaaf4343fd0] nal_unit_type: 5(IDR), nal_ref_idc: 3 [h264 @ 0xaaaaf4343fd0] Format yuv420p chosen by get_format(). [h264 @ 0xaaaaf4343fd0] Reinit context to 640x368, pix_fmt: yuv420p cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) [h264 @ 0xaaaaf454ad00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) [h264 @ 0xaaaaf4566800] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) [h264 @ 0xaaaaf4582300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 [h264 @ 0xaaaaf459de00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'video_size' to value '640x368' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'time_base' to value '1/12288' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'pixel_aspect' to value '46/45' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] Setting 'frame_rate' to value '24/1' [graph 0 input from stream 0:0 @ 0xaaaaf4358500] w:640 h:368 pixfmt:yuv420p tb:1/12288 fr:24/1 sar:46/45 [scaler_out_0_0 @ 0xaaaaf4351bc0] Setting 'w' to value '1920' [scaler_out_0_0 @ 0xaaaaf4351bc0] Setting 'h' to value '1080' [scaler_out_0_0 @ 0xaaaaf4351bc0] Setting 'flags' to value 'bicubic' [scaler_out_0_0 @ 0xaaaaf4351bc0] w:1920 h:1080 flags:'bicubic' interl:0 [format @ 0xaaaaf4356640] Setting 'pix_fmts' to value 'nv12|ascend' [AVFilterGraph @ 0xaaaaef353be0] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed [scaler_out_0_0 @ 0xaaaaf4351bc0] w:640 h:368 fmt:yuv420p sar:46/45 -> w:1920 h:1080 fmt:nv12 sar:1/1 flags:0x4 [h264_ascend @ 0xaaaaef37a370] Using device ascend0 (type ascend) with h264_ascend encoder. [h264_ascend_enc @ 0xaaaaef3b31a0] Device id is: 0. [AVHWDeviceContext @ 0xaaaaef37afe0] device id is: 0. [ERROR] DVPP(8452,ffmpeg):2024-12-02-13:37:04.077.259 [mpi_sys.cpp:21][WRAP] [hi_mpi_sys_init:21] [tid:8452] sys wrapper is null [h264_ascend_enc @ 0xaaaaef3b31a0] Call hi_mpi_sys_init failed, ret is -1610448875. [h264_ascend_enc @ 0xaaaaef3b31a0] Enc sem_timewait = -1, time out, semvalue = 0 ... [h264_ascend @ 0xaaaaef37a370] Encode closed. Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height [AVIOContext @ 0xaaaaef37ad00] Statistics: 0 seeks, 0 writeouts [AVIOContext @ 0xaaaaee566070] Statistics: 32768 bytes read, 0 seeks Conversion failed! [EVENT] RUNTIME(8452,ffmpeg):2024-12-02-13:37:07.153.461 [runtime.cc:1441] 8452 ~Runtime: deconstruct runtime. 日志提供方式: 将日志打包后作为附件上传。若日志大小超出附件限制,则可上传至外部网盘后提供链接。 获取方法请参考wiki: https://gitee.com/ascend/modelzoo/wikis/%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E6%97%A5%E5%BF%97%E5%92%8C%E8%AE%A1%E7%AE%97%E5%9B%BE?sort_id=4097825
评论 (
3
)
登录
后才可以发表评论
状态
TODO
TODO
WIP
DONE
CLOSED
REJECTED
负责人
未设置
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
未关联
master
Agent_merge_branch
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
C++
1
https://gitee.com/ascend/mindsdk-referenceapps.git
git@gitee.com:ascend/mindsdk-referenceapps.git
ascend
mindsdk-referenceapps
mindsdk-referenceapps
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册