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

Decoder hang when used with scaling #46

Closed shawwwn closed 5 months ago

shawwwn commented 6 months ago

First of all, thanks for this wonderful piece of software.

The branch I used is exp_m2m.

I found that the decoder would hang on certain media files when used with scaling parameters, here are my commands:

ffmpeg -c:v h264_rkmpp_decoder -width 1280 -height 720 -i input.mp4 -c:v libx264 output.mkv

Often times it would output something like these and hang.

[h264_rkmpp_decoder @ 0x55a7ef9360] Can not get out frame
[h264_rkmpp_decoder @ 0x557ffc8920] RGA timed out for out fifo frame 4186. Dropped
Error while decoding stream #0:0: Unknown error occurred
[h264_rkmpp_decoder @ 0x55bcb0f930] Decoder Failed to decode frame (code = -1313558101)=5.33x
Error while decoding stream #0:0: Unknown error occurred