ascend ffmpeg硬件加速解码器成功,编码器失败 待解决
收藏回复举报
ascend ffmpeg硬件加速解码器成功,编码器失败 待解决
t('forum.solved') 已解决
发表于2024-12-25 16:09:28
0 查看

./ffmpeg -hwaccel ascend -device_id 5 -c:v h264_ascend -i t2.mp4 -c:v h264_ascend -y t.mp4

[h264_ascend @ 0x26c9440] Call hi_mpi_venc_get_mod_param failed, ret is: -1610055664.
[h264_ascend_enc @ 0x26c9940] Call set_venc_mod_param failed, ret is -1610055664.
[h264_ascend_enc @ 0x26c9940] 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
[aac @ 0x276a200] Qavg: 136.082
[aac @ 0x276a200] 2 frames left in the queue on closing
[h264_ascend_dec @ 0x2698f00] Decode sem_timewait = -1, semvalue = 0.

image.png

如果只使用解码器

./ffmpeg -hwaccel ascend -device_id 5 -c:v h264_ascend -i t2.mp4 -y t.mp4 可以成功

我要发帖子