hbiyik / FFmpeg

PLEASE USE https://github.com/nyanmisaka/ffmpeg-rockchip REPO INSTEAD.
https://github.com/nyanmisaka/ffmpeg-rockchip
Other
90 stars 7 forks source link

hevc_rkmpp_decoder #45

Closed great9 closed 10 months ago

great9 commented 11 months ago

I am getting "[hevc_rkmpp_decoder @ 0x...] Can not get out frame" Is this an mpp bug or the exp_refactor_all branch?

hbiyik commented 10 months ago

This is only a case with exp_refactor_all branch. It is trying to manage decoder and rga conversion at the same time with limited memory range (4GB due to rga limitation).

https://github.com/hbiyik/FFmpeg/blob/65d4cf4bd74904dcbcd935685d2160da83f8f72d/libavcodec/rkmppdec.c#L396C1-L397C1 you can increase the preallocated buffer counts here, but take note increasing those will cause OOM for 8k videos.

All of those are handled in a better way in https://github.com/nyanmisaka/ffmpeg-rockchip/ therefore i dont plan to improve this fork any more, you can try numbers if you want.

great9 commented 10 months ago

I'm now on ffmpeg-rockchip repo