<HTML><BODY><p>>Can you give more detail about your setup and the input stream?<br><br>I have firefly RK3399.<br><br>OS:<br>Linux localhost 4.4.120 #2 SMP Mon Apr 9 10:08:10 +04 2018 aarch64 aarch64 aarch64 GNU/Linux<br>No LSB modules are available.<br>Distributor ID:    Ubuntu<br>Description:    Ubuntu 16.04.3 LTS<br>Release:    16.04<br>Codename:    xenial<br><br>I have installed rockchip kernel from git master branch.<br><br>ffmpeg:<br>ffmpeg version N-90453-g44000b7 Copyright (c) 2000-2018 the FFmpeg developers<br>  built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 20160609<br>  configuration: --prefix=/usr/local --enable-libx264 --enable-libdrm --enable-rkmpp --enable-version3 --enable-gpl<br>  libavutil      56. 12.100 / 56. 12.100<br>  libavcodec     58. 16.100 / 58. 16.100<br>  libavformat    58. 10.100 / 58. 10.100<br>  libavdevice    58.  2.100 / 58.  2.100<br>  libavfilter     7. 13.100 /  7. 13.100<br>  libswscale      5.  0.102 /  5.  0.102<br>  libswresample   3.  0.101 /  3.  0.101<br>  libpostproc    55.  0.100 / 55.  0.100<br><br>I tried this command:<br>sudo ffmpeg -v 55 -c:v h264_rkmpp -i ./4k.h264 -an -frames:v 100  out.h264<br><br>And received:<br>...<br>[h264_rkmpp @ 0x1024c380] Initializing RKMPP decoder.<br>mpi: mpp version: 5849089 author: Herman Chen [mpp]: Add temporally patch for blocking issue<br>hal_h264d_api: hal_h264d_init mpp_buffer_group_get_internal used ion In<br>mpp_rt: NOT found ion allocator<br>mpp_rt: found drm allocator<br>[h264_rkmpp @ 0x1024c380] RKMPP decoder initialized successfully.<br>Stream mapping:<br>  Stream #0:0 -> #0:0 (h264 (h264_rkmpp) -> h264 (libx264))<br>Press [q] to stop, [?] for help<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[AVBSFContext @ 0x102ddf30] The input looks like it is Annex B already<br>[h264_rkmpp @ 0x1024c380] Wrote 35 bytes to decoder<br>[h264_rkmpp @ 0x1024c380] Wrote 43028 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 99 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 40 bytes to decoder<br>[h264_rkmpp @ 0x1024c380] Timeout when trying to get a frame from MPP<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 126 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 32 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 50 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 32 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 49 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 33 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 77 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 41 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 64 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 33 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 48 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 33 bytes to decoder<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 52 bytes to decoder<br>[h264_rkmpp @ 0x1024c380] Timeout when trying to get a frame from MPP<br>cur_dts is invalid (this is harmless if it occurs once at the start per stream)<br>[h264_rkmpp @ 0x1024c380] Wrote 37 bytes to decoder<br>...<br><br>Also i have checked again my built mpp. The command for the test:<br></p><p> sudo ./mpi_dec_test -i ./4k.h264 -o 1080.yuv -w 1920 -h 1080 -t 7<br><br>And have received good video file without errors.<br><br>Maybe do i have to add "--extra-ldflags='-L/usr/local/lib -lmali-midgard-r13p0-fbdev'"?<br><br><br>Thanks,<br>Prikazchikov Anton<br data-mce-bogus="1"></p></BODY></HTML>