在OrangePi Ai Pro(8T)上使用ffmpeg_ascend进行解码时报错Failed to create venc channel, ret is -1610055668.,CANN版本为8.0
(base) HwHiAiUser@orangepiaipro:~$ ffmpeg -i video.mp4 -vcodec h264_ascend test.264
ffmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04.3)
configuration: --prefix=/usr --enable-shared --extra-cflags=-I/usr/local/Ascend/ascend-toolkit/latest/acllib/include --extra-ldflags=-L/usr/local/Ascend/ascend-toolkit/latest/aarch64-linux/lib64 --extra-libs='-lacl_dvpp_mpi -lascendcl' --enable-ascend
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
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
comment : vid:v0369cg10004d7u5haaljhtc8l4gs2t0
AIGC : {"Label": "1", "ContentProducer": "001191110102MACQD9K64010000", "ProduceID": "a218f3d1-3676-4bfa-953d-6d7518cdb779", "ReservedCode1": ""}
encoder : Lavf58.76.100
Duration: 00:00:10.08, start: 0.000000, bitrate: 1363 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1231 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_ascend))
Press [q] to stop, [?] for help
[h264_ascend_enc @ 0xaaaaf4e97980] Device id is: 0.
[AVHWDeviceContext @ 0xaaaaf4ee6070] device id is: 0.
[h264_ascend_enc @ 0xaaaaf4e97980] Failed to create venc channel, ret is -1610055668.
[h264_ascend_enc @ 0xaaaaf4e97980] Call create_venc_channel failed, ret is -1610055668.
[h264_ascend_enc @ 0xaaaaf4e97980] Enc sem_timewait = -1, time out, semvalue = 0 ...
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
在OrangePi Ai Pro(8T)上使用ffmpeg_ascend进行解码时报错Failed to create venc channel, ret is -1610055668.,CANN版本为8.0
(base) HwHiAiUser@orangepiaipro:~$ ffmpeg -i video.mp4 -vcodec h264_ascend test.264
ffmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04.3)
configuration: --prefix=/usr --enable-shared --extra-cflags=-I/usr/local/Ascend/ascend-toolkit/latest/acllib/include --extra-ldflags=-L/usr/local/Ascend/ascend-toolkit/latest/aarch64-linux/lib64 --extra-libs='-lacl_dvpp_mpi -lascendcl' --enable-ascend
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
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
comment : vid:v0369cg10004d7u5haaljhtc8l4gs2t0
AIGC : {"Label": "1", "ContentProducer": "001191110102MACQD9K64010000", "ProduceID": "a218f3d1-3676-4bfa-953d-6d7518cdb779", "ReservedCode1": ""}
encoder : Lavf58.76.100
Duration: 00:00:10.08, start: 0.000000, bitrate: 1363 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1231 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_ascend))
Press [q] to stop, [?] for help
[h264_ascend_enc @ 0xaaaaf4e97980] Device id is: 0.
[AVHWDeviceContext @ 0xaaaaf4ee6070] device id is: 0.
[h264_ascend_enc @ 0xaaaaf4e97980] Failed to create venc channel, ret is -1610055668.
[h264_ascend_enc @ 0xaaaaf4e97980] Call create_venc_channel failed, ret is -1610055668.
[h264_ascend_enc @ 0xaaaaf4e97980] Enc sem_timewait = -1, time out, semvalue = 0 ...
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