[Libav-user] How to use rkmpp decoder?

Henri Zikken zikken at xs4all.nl
Mon Apr 9 19:05:47 EEST 2018


Ok, the rk339 is soms sort of computer. You are receiving a stream on that computer. Now you wish to decode that stream.

 

What is your purpose? What do you mean by decoding a stream? What has MPP got to do witht his all?

 

Ffmpeg can decode H264. See the docs for a full example of this:

 

https://ffmpeg.org/doxygen/trunk/decoding__encoding_8c-source.html

 

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.

 

You need the compiled .so, .a or .dll files. So you need to compile ffmpeg yourself, or find the binaries suitable for your system.

 

Regards,

 

Henri Zikken

 

Van: Libav-user <libav-user-bounces at ffmpeg.org> Namens Anton Prikazchikov
Verzonden: maandag 9 april 2018 16:27
Aan: libav-user at ffmpeg.org
Onderwerp: [Libav-user] How to use rkmpp decoder?

 

Hello,

I have rk3399 and installed mpp(https://github.com/rockchip-linux/mpp).

I am receiving rtsp stream using by ffmpeg(C++).
And now I have to decode h264 video using by mpp but I don't understand how to do this. 

I found https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/rkmppdec.c  and try to use this code for decoding.

I stopped on the code line below:

ret = ff_decode_get_packet(avctx, &pkt);

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)

Or maybe is there a better way for h264 decoding using by hw?

Thanks,
Anton Prikazchikov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180409/5f687afe/attachment.html>


More information about the Libav-user mailing list