Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic error in external library #5

Closed
gjm19761 opened this issue Jan 8, 2024 · 2 comments
Closed

Generic error in external library #5

gjm19761 opened this issue Jan 8, 2024 · 2 comments

Comments

@gjm19761
Copy link

gjm19761 commented Jan 8, 2024

[hevc_rkmpp @ 0xaaaaf62be8a0] Failed to init MPP context: -1
[vist#0:0/hevc @ 0xaaaaf62bcbd0] Error while opening decoder: Generic error in an external library
[vost#0:0/h264_rkmpp @ 0xaaaaf62dfa90] Error initializing a simple filtergraph
Error opening output file /ssd/Aliens.Special.Edition.1080p_h264_6M.mkv.
Error opening output files: Generic error in an external library

I get this on my rock 3c which has Rockchip RK3566 SoC and im using 5.10 rk35xx kernel

@nyanmisaka
Copy link
Owner

@gjm19761 Take a look at #3 (comment)

@nyanmisaka
Copy link
Owner

@gjm19761

ok following that, doing the mpp tests, 1080p h264 hardware encoding etc work, but hevc does not, get this error ;

[hevc_rkmpp @ 0xaaaae3ae2aa0] Failed to init MPP context: -1
[vost#0:0/hevc_rkmpp @ 0xaaaae3ae2700] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.

It seems something went wrong in your device tree or the source code of rockchip linux kernel (5.10.110, 5.10.160, 5.10.198). Generally speaking, the rkvenc node enables both h.264 and hevc encoder on rk356x chips, so this is unlikely to happen.

@nyanmisaka nyanmisaka closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2024
nyanmisaka pushed a commit that referenced this issue Apr 17, 2024
In close_output(), a dummy frame is created with format NONE passed
to enc_open(), which isn't prepared for it. The NULL pointer
dereference happened at
av_pix_fmt_desc_get(enc_ctx->pix_fmt)->comp[0].depth.

When fgt.graph is NULL, skip fg_output_frame() since there is
nothing to output.

frame #0: 0x0000005555bc34a4 ffmpeg_g`enc_open(opaque=0xb400007efe2db690, frame=0xb400007efe2d9f70) at ffmpeg_enc.c:235:44
frame #1: 0x0000005555bef250 ffmpeg_g`enc_open(sch=0xb400007dde2d4090, enc=0xb400007e4e2daad0, frame=0xb400007efe2d9f70) at ffmpeg_sched.c:1462:11
frame #2: 0x0000005555bee094 ffmpeg_g`send_to_enc(sch=0xb400007dde2d4090, enc=0xb400007e4e2daad0, frame=0xb400007efe2d9f70) at ffmpeg_sched.c:1571:19
frame #3: 0x0000005555bee01c ffmpeg_g`sch_filter_send(sch=0xb400007dde2d4090, fg_idx=0, out_idx=0, frame=0xb400007efe2d9f70) at ffmpeg_sched.c:2154:12
frame #4: 0x0000005555bcf124 ffmpeg_g`close_output(ofp=0xb400007e4e2d85b0, fgt=0x0000007d1790eb08) at ffmpeg_filter.c:2225:15
frame #5: 0x0000005555bcb000 ffmpeg_g`fg_output_frame(ofp=0xb400007e4e2d85b0, fgt=0x0000007d1790eb08, frame=0x0000000000000000) at ffmpeg_filter.c:2317:16
frame #6: 0x0000005555bc7e48 ffmpeg_g`filter_thread(arg=0xb400007eae2ce7a0) at ffmpeg_filter.c:2836:15
frame #7: 0x0000005555bee568 ffmpeg_g`task_wrapper(arg=0xb400007d8e2db478) at ffmpeg_sched.c:2200:21

Signed-off-by: Zhao Zhili <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants