<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-mailStijl19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=NL link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>So what is the issue? It seems to be working?<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b>Van:</b> Libav-user <libav-user-bounces@ffmpeg.org> <b>Namens </b>Anton Prikazchikov<br><b>Verzonden:</b> donderdag 12 april 2018 12:34<br><b>Aan:</b> "This list is about using libavcodec, libavformat, libavutil,libavdevice and libavfilter." <libav-user@ffmpeg.org><br><b>Onderwerp:</b> Re: [Libav-user] How to use rkmpp decoder?<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>>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/?).<br><br>Mpp is built with -DHAVE_DRM.<br>You are right, my user cannot access the DRM device.<br><br>But i started my decoder program with sudo access and this does not help, but the output is changed.<br><br>New output:<br>[NULL @ 0x167f6030] Opening '../4k.h264' for reading<br>[file @ 0x167f66e0] Setting default whitelist 'file,crypto'<br>[h264 @ 0x167f6030] Format h264 probed with size=2048 and score=51<br>[h264 @ 0x167f6030] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:1<br>[AVBSFContext @ 0x167fdd20] nal_unit_type: 6, nal_ref_idc: 0<br>[AVBSFContext @ 0x167fdd20] nal_unit_type: 7, nal_ref_idc: 3<br>[AVBSFContext @ 0x167fdd20] nal_unit_type: 8, nal_ref_idc: 3<br>[AVBSFContext @ 0x167fdd20] nal_unit_type: 5, nal_ref_idc: 3<br>[h264 @ 0x167f7100] nal_unit_type: 6, nal_ref_idc: 0<br>[h264 @ 0x167f7100] nal_unit_type: 7, nal_ref_idc: 3<br>[h264 @ 0x167f7100] nal_unit_type: 8, nal_ref_idc: 3<br>[h264 @ 0x167f7100] nal_unit_type: 5, nal_ref_idc: 3<br>[h264 @ 0x167f7100] Format yuv420p chosen by get_format().<br>[h264 @ 0x167f7100] Reinit context to 1280x544, pix_fmt: yuv420p<br>[h264 @ 0x167f7100] no picture <br>[h264 @ 0x167f6030] max_analyze_duration 5000000 reached at 5017667 microseconds st:0<br>[h264 @ 0x167f6030] After avformat_find_stream_info() pos: 63488 bytes read:65536 seeks:0 frames:123<br>[h264_rkmpp @ 0x167f8760] 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  <- <strong><span style='font-family:"Calibri",sans-serif'>MPP sees drm if I'm not mistaken</span></strong> <br>[h264_rkmpp @ 0x167f8760] RKMPP decoder initialized successfully.<br>Rkmpp codec is opened<br>[h264_rkmpp @ 0x167f8330] 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>[h264_rkmpp @ 0x167f8330] RKMPP decoder initialized successfully.<br>Could not find audio stream in input file '../4k.h264'<br>Input #0, h264, from '../4k.h264':<br>  Duration: N/A, bitrate: N/A<br>    Stream #0:0, 123, 1/1200000: Video: h264 (Main), 1 reference frame, yuv420p(progressive, left), 1280x544, 0/1, 24.08 fps, 23.98 tbr, 1200k tbn, 47.95 tbc<br>Demuxing video from file '../4k.h264' into 'video'<br>[AVBSFContext @ 0x1683f190] The input looks like it is Annex B already<br>[h264_rkmpp @ 0x167f8760] Wrote 35 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 43028 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 99 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 40 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 126 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 32 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Timeout when trying to get a frame from MPP<br>[h264_rkmpp @ 0x167f8760] Wrote 50 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 32 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 49 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 33 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 77 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 41 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 64 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 33 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 48 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 33 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 52 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 37 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 90 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 34 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 67 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 35 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 49 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 33 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 46 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 33 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 72 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 34 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 51 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 36 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 73 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 36 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 647 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 101 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 274 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 56 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 177 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 37 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 157 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Timeout when trying to get a frame from MPP<br>[h264_rkmpp @ 0x167f8760] Wrote 36 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 169 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 37 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 182 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 34 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 156 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 44 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 168 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 40 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 156 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 40 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Wrote 156 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] End of stream.<br>[h264_rkmpp @ 0x167f8760] Wrote 0 bytes to decoder<br>[h264_rkmpp @ 0x167f8760] Received a EOS frame.<o:p></o:p></p></div></body></html>