On 12/04/18 10:24, Anton Prikazchikov wrote: >>Did you already implement software decoding with libavcodec? >>Once this works, you should only have to switch from the "h264" >>decoder to the "h264_rkmpp" decoder to make it work. > > I rebuilded my ffmpeg and now output: > > Codec is initializated > [NULL @ 0x20f35030] Opening '../4k.h264' for reading > [file @ 0x20f356e0] Setting default whitelist 'file,crypto' > [h264 @ 0x20f35030] Format h264 probed with size=2048 and score=51 > [h264 @ 0x20f35030] Before avformat_find_stream_info() pos: 0 bytes > read:32768 seeks:0 nb_streams:1 > [AVBSFContext @ 0x20f3cd20] nal_unit_type: 6, nal_ref_idc: 0 > [AVBSFContext @ 0x20f3cd20] nal_unit_type: 7, nal_ref_idc: 3 > [AVBSFContext @ 0x20f3cd20] nal_unit_type: 8, nal_ref_idc: 3 > [AVBSFContext @ 0x20f3cd20] nal_unit_type: 5, nal_ref_idc: 3 > [h264 @ 0x20f36100] nal_unit_type: 6, nal_ref_idc: 0 > [h264 @ 0x20f36100] nal_unit_type: 7, nal_ref_idc: 3 > [h264 @ 0x20f36100] nal_unit_type: 8, nal_ref_idc: 3 > [h264 @ 0x20f36100] nal_unit_type: 5, nal_ref_idc: 3 > [h264 @ 0x20f36100] Format yuv420p chosen by get_format(). > [h264 @ 0x20f36100] Reinit context to 1280x544, pix_fmt: yuv420p > [h264 @ 0x20f36100] no picture > [h264 @ 0x20f35030] max_analyze_duration 5000000 reached at 5017667 > microseconds st:0 > [h264 @ 0x20f35030] After avformat_find_stream_info() pos: 63488 bytes > read:65536 seeks:0 frames:123 > [h264_rkmpp @ 0x20f37760] Initializing RKMPP decoder. > mpi: mpp version: 5849089 author: Herman Chen [mpp]: Add temporally patch for > blocking issue > hal_h264d_api: hal_h264d_init mpp_buffer_group_get_internal used ion In > mpp_rt: NOT found ion allocator > mpp_rt: NOT found drm allocator
The ffmpeg implementation requires DRM. Make sure that mpp is built with -DHAVE_DRM and that your user can access the DRM devices (/dev/dri/?). - Mark _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user