nyanmisaka / ffmpeg-rockchip

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

Generic error in external library #5

Closed gjm19761 closed 4 months ago

gjm19761 commented 5 months ago

[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 commented 5 months ago

@gjm19761 Take a look at https://github.com/nyanmisaka/ffmpeg-rockchip/issues/3#issuecomment-1875297620

nyanmisaka commented 5 months ago

@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.