rk3588 h264_rkmpp/hevc-rkmpp encoder can not be found #228

Closed
opened 2025-12-23 10:36:25 +01:00 by backuprepo · 3 comments
Owner

Originally created by @flyingbird1002 on GitHub (Dec 5, 2025).

Originally created by @flyingbird1002 on GitHub (Dec 5, 2025).
Author
Owner

@flyingbird1002 commented on GitHub (Dec 5, 2025):

This issue is the same as 240
I try a lot, but it can not be solved;
I refer to "https://blog.csdn.net/Leon_Chenl/article/details/145042973" , a lot of person encounter this problem:

@flyingbird1002 commented on GitHub (Dec 5, 2025): This issue is the same as 240 I try a lot, but it can not be solved; I refer to "https://blog.csdn.net/Leon_Chenl/article/details/145042973" , a lot of person encounter this problem:
Author
Owner

@flyingbird1002 commented on GitHub (Dec 5, 2025):

编码器找不到,但解码器可以找到
// 查找解码器
rk_h264_decodec = avcodec_find_decoder_by_name(DECODEC_NAME);
if (!rk_h264_decodec) {
std::cerr << "Codec '" << DECODEC_NAME << "' not found" << std::endl;
exit(1);
}
else
{
std::cerr << "decoder '" << DECODEC_NAME << "' found" << std::endl;
}

// 查找编码器
rk_hevc_encodec = avcodec_find_encoder_by_name(ENCODEC_NAME);
if (!rk_hevc_encodec) {
std::cerr << "Codec '" << ENCODEC_NAME << "' not found" << std::endl;
exit(1);
}
else
{
std::cerr << "encoder '" << ENCODEC_NAME << "' found" << std::endl;
}

运行结果是:decoder 'h264_rkmpp' found
Codec 'hevc_rkmpp' not found

@flyingbird1002 commented on GitHub (Dec 5, 2025): 编码器找不到,但解码器可以找到 // 查找解码器 rk_h264_decodec = avcodec_find_decoder_by_name(DECODEC_NAME); if (!rk_h264_decodec) { std::cerr << "Codec '" << DECODEC_NAME << "' not found" << std::endl; exit(1); } else { std::cerr << "decoder '" << DECODEC_NAME << "' found" << std::endl; } // 查找编码器 rk_hevc_encodec = avcodec_find_encoder_by_name(ENCODEC_NAME); if (!rk_hevc_encodec) { std::cerr << "Codec '" << ENCODEC_NAME << "' not found" << std::endl; exit(1); } else { std::cerr << "encoder '" << ENCODEC_NAME << "' found" << std::endl; } 运行结果是:decoder 'h264_rkmpp' found Codec 'hevc_rkmpp' not found
Author
Owner

@nyanmisaka commented on GitHub (Dec 5, 2025):

Unable to reproduce. This is not an ffmpeg-rockchip issue.
2eb0b5dc03/libavcodec/allcodecs.c (L865)
2eb0b5dc03/libavcodec/allcodecs.c (L876)

@nyanmisaka commented on GitHub (Dec 5, 2025): Unable to reproduce. This is not an ffmpeg-rockchip issue. https://github.com/nyanmisaka/ffmpeg-rockchip/blob/2eb0b5dc03d2ed7ee77f9639e2c1d83759bd0c2b/libavcodec/allcodecs.c#L865 https://github.com/nyanmisaka/ffmpeg-rockchip/blob/2eb0b5dc03d2ed7ee77f9639e2c1d83759bd0c2b/libavcodec/allcodecs.c#L876
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#228
No description provided.