Failed to get key input frame from packet meta when encoding with h264_rkmpp encoder #90

Closed
opened 2025-12-23 10:32:49 +01:00 by backuprepo · 7 comments
Owner

Originally created by @lumiaJJ on GitHub (Aug 21, 2024).

Hi,
I am transcoding two streams with h264_rkmpp encoder. But I got an error when my program called av_hwframe_transfer_data before encoded the frame. This is an occasional problem, I got some information from this blog :https://brainly.com/question/43026554.
Can you help to analyze the issue from mpp extension's point of view.

[h264_rkmpp @ 0x7fa4015560] Failed to get key input frame from packet meta: -1
malloc(): unaligned tcache chunk detected

MPP log:

orangepi5b mpp[79235]: mpp_mem_pool: mpp_mem_pool_put_f invalid mem pool ptr 0x7f7c003b48 node 0x7f7c003b20 check (nil)

Originally created by @lumiaJJ on GitHub (Aug 21, 2024). Hi, I am transcoding two streams with h264_rkmpp encoder. But I got an error when my program called av_hwframe_transfer_data before encoded the frame. This is an occasional problem, I got some information from this blog :https://brainly.com/question/43026554. Can you help to analyze the issue from mpp extension's point of view. ``` [h264_rkmpp @ 0x7fa4015560] Failed to get key input frame from packet meta: -1 malloc(): unaligned tcache chunk detected ``` MPP log: ``` orangepi5b mpp[79235]: mpp_mem_pool: mpp_mem_pool_put_f invalid mem pool ptr 0x7f7c003b48 node 0x7f7c003b20 check (nil) ```
backuprepo 2025-12-23 10:32:49 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Aug 21, 2024):

The MPP library itself contains some bugs. Use nyanmisaka/mpp instead.

@nyanmisaka commented on GitHub (Aug 21, 2024): The MPP library itself contains some bugs. Use [nyanmisaka/mpp](https://github.com/nyanmisaka/mpp/commits/jellyfin-mpp/) instead.
Author
Owner

@lumiaJJ commented on GitHub (Aug 21, 2024):

The MPP library itself contains some bugs. Use nyanmisaka/mpp instead.

nyanmisaka/mpp is already used to build MPP library, I will checked the version in my local tomorrow.

@lumiaJJ commented on GitHub (Aug 21, 2024): > The MPP library itself contains some bugs. Use [nyanmisaka/mpp](https://github.com/nyanmisaka/mpp/commits/jellyfin-mpp/) instead. [nyanmisaka/mpp](https://github.com/nyanmisaka/mpp/commits/jellyfin-mpp/) is already used to build MPP library, I will checked the version in my local tomorrow.
Author
Owner

@lumiaJJ commented on GitHub (Aug 22, 2024):

@nyanmisaka Hi, checked version of nyanmisaka/mpp in my local env. The lastest commit is 4ded78b9510145fa79bcd51beb1591450c872277 (grafted, HEAD -> jellyfin-mpp, origin/jellyfin-mpp) is same as remote's

@lumiaJJ commented on GitHub (Aug 22, 2024): @nyanmisaka Hi, checked version of [nyanmisaka/mpp](https://github.com/nyanmisaka/mpp/commits/jellyfin-mpp/) in my local env. The lastest commit is 4ded78b9510145fa79bcd51beb1591450c872277 (grafted, HEAD -> jellyfin-mpp, origin/jellyfin-mpp) is same as remote's
Author
Owner

@lumiaJJ commented on GitHub (Aug 22, 2024):

@nyanmisaka Hi, checked version of nyanmisaka/mpp in my local env. The lastest commit is 4ded78b9510145fa79bcd51beb1591450c872277 (grafted, HEAD -> jellyfin-mpp, origin/jellyfin-mpp) is same as remote's. Perhaps it might be a new issue

@lumiaJJ commented on GitHub (Aug 22, 2024): > @nyanmisaka Hi, checked version of [nyanmisaka/mpp](https://github.com/nyanmisaka/mpp/commits/jellyfin-mpp/) in my local env. The lastest commit is 4ded78b9510145fa79bcd51beb1591450c872277 (grafted, HEAD -> jellyfin-mpp, origin/jellyfin-mpp) is same as remote's. Perhaps it might be a new issue
Author
Owner

@nyanmisaka commented on GitHub (Aug 22, 2024):

I can't reproduce with the command described in the Wiki. https://github.com/nyanmisaka/ffmpeg-rockchip/wiki

Can you share a minimal code sample that can be compiled?

@nyanmisaka commented on GitHub (Aug 22, 2024): I can't reproduce with the command described in the Wiki. https://github.com/nyanmisaka/ffmpeg-rockchip/wiki Can you share a minimal code sample that can be compiled?
Author
Owner

@lumiaJJ commented on GitHub (Aug 22, 2024):

I can't reproduce with the command described in the Wiki. https://github.com/nyanmisaka/ffmpeg-rockchip/wiki

Can you share a minimal code sample that can be compiled?

Ok,I will provide it asap.

@lumiaJJ commented on GitHub (Aug 22, 2024): > I can't reproduce with the command described in the Wiki. https://github.com/nyanmisaka/ffmpeg-rockchip/wiki > > Can you share a minimal code sample that can be compiled? Ok,I will provide it asap.
Author
Owner

@lumiaJJ commented on GitHub (Aug 24, 2024):

https://github.com/nyanmisaka/ffmpeg-rockchip/pull/104 Hi, the issue might be related with this PR. You can enable MJPEG decoding to produced. And qsv_decode.c can be a a minimal code sample to test.

@lumiaJJ commented on GitHub (Aug 24, 2024): https://github.com/nyanmisaka/ffmpeg-rockchip/pull/104 Hi, the issue might be related with this PR. You can enable MJPEG decoding to produced. And qsv_decode.c can be a a minimal code sample to test.
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#90
No description provided.