nyanmisaka / ffmpeg-rockchip

FFmpeg with async and zero-copy Rockchip MPP & RGA support
Other
529 stars 77 forks source link

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

Open lumiaJJ opened 3 months ago

lumiaJJ commented 3 months ago

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)
nyanmisaka commented 3 months ago

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

lumiaJJ commented 3 months ago

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 3 months ago

@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 3 months ago

@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

nyanmisaka commented 3 months ago

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?

lumiaJJ commented 3 months ago

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 3 months ago

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.