<HTML><BODY>My purpose is decoding a received from RTCP stream h264 AVPacket-s to AVFrame-s using by hardware of rk3399 (Rockchip RK3399 is a processor for computing(aarch64, Rockchip platform))<br><br>I found that rk3399 has mpp. Media Process Platform(mpp) is the video codec parser and <span class="_Tgc">Hardware Abstraction Layer library for the Rockchip platforms.<br>Mpp provides C API for decoding h264 video files using by hardware of Rockchip platform.</span><br><br>And now i am thinking that the problem is converting from AVPacket(contain H264 data from RTCP stream) to MppPacket(this packet i will send to hardware decoder)<br><br>Thanks,<br>Anton Prikazchikov<br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        Понедельник,  9 апреля 2018, 20:06 +04:00 от Henri Zikken <zikken@xs4all.nl>:<br>
        <br>
        <div id="">

<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div>
                <base target="_self" href="https://e.mail.ru/">
                
            <div id="style_15232899660000000175_BODY"><div class="class_1523321765"><div class="WordSection1_mailru_css_attribute_postfix"><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US">Ok, the rk339 is soms sort of computer. You are receiving a stream on that computer. Now you wish to decode that stream.</span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US">What is your purpose? What do you mean by decoding a stream? What has MPP got to do witht his all?</span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US">Ffmpeg can decode H264. See the docs for a full example of this:</span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US"><a href="https://ffmpeg.org/doxygen/trunk/decoding__encoding_8c-source.html" target="_blank" rel=" noopener noreferrer">https://ffmpeg.org/doxygen/trunk/decoding__encoding_8c-source.html</a></span><br data-mce-bogus="1"></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US">You need more than just including .h files. The .h files can be seen as ‘descriptions of stuff to be found somewhere else’. So having the .h files might make it compile, but then it won’t link or won’t run due to missing files.</span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US">You need the compiled .so, .a or .dll files. So you need to compile ffmpeg yourself, or find the binaries suitable for your system.</span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US">Regards,</span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US">Henri Zikken</span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span style="mso-fareast-language:EN-US"> </span></p><div><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal_mailru_css_attribute_postfix"><b>Van:</b> Libav-user <<a href="mailto:libav-user-bounces@ffmpeg.org">libav-user-bounces@ffmpeg.org</a>> <b>Namens </b>Anton Prikazchikov<br><b>Verzonden:</b> maandag 9 april 2018 16:27<br><b>Aan:</b> <a href="mailto:libav-user@ffmpeg.org">libav-user@ffmpeg.org</a><br><b>Onderwerp:</b> [Libav-user] How to use rkmpp decoder?</p></div></div><p class="MsoNormal_mailru_css_attribute_postfix"> </p><div><div><div id="style_15232839560000000369_BODY_mailru_css_attribute_postfix"><div><p>Hello,<br><br>I have rk3399 and installed mpp(<a href="https://github.com/rockchip-linux/mpp" target="_blank" rel=" noopener noreferrer">https://github.com/rockchip-linux/mpp</a>).<br><br>I am receiving rtsp stream using by ffmpeg(C++).<br>And now I have to decode h264 video using by mpp but I don't understand how to do this. <br><br>I found <a href="https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/rkmppdec.c" target="_blank" rel=" noopener noreferrer">https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/rkmppdec.c</a>  and try to use this code for decoding.</p><p>I stopped on the code line below:</p><p>ret = <span class="pl-c1mailrucssattributepostfix_mailru_css_attribute_postfix">ff_decode_get_packet</span>(avctx, &pkt);<br><br>This function requires .h files from ffmpeg which i have not in my compiled version. Could someone prompt can I add some flags at configuration stage for .h files or somthing else?(I don't want take these files from github src)<br><br>Or maybe is there a better way for h264 decoding using by hw?<br><br>Thanks,<br>Anton Prikazchikov</p></div></div></div></div></div></div></div>
            
                
                    <div>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div>
                
             
        
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote>
<br></BODY></HTML>