http://opensource.rock-chips.com/wiki_Mpp
MPP
You can get mpp source from git.
git clone -b release https://github.com/rockchip-linux/mpp.git
cmake -DRKPLATFORM=ON -DHAVE_DRM=ON && make
Gstreamer
We offer the Gstreamer Rockchip, it is a standard Gstreamer plugin for the hardware decoder and encoder at Rockchip platform. I would suggest all the user in the Linux don\'t develop the MPP directly unless you know what you are doing. Choose Gstreamer rocckchip in you convenience.
Source:
git clone https://github.com/rockchip-linux/gstreamer-rockchip.git
Build:
./autogen.sh --disable-rkximage && make
出现错误:
[toybrick@localhost gstreamer-rockchip]$ ./autogen.sh --disable-rkximage && make
+ passing argument --disable-rkximage to configure
+ options passed to configure: --disable-rkximage
+ check for build tools
checking for autoreconf ...
/usr/bin/autoreconf
checking for pkg-config ...
/usr/bin/pkg-config
Can\'t exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 345.
autoreconf: failed to run autopoint: No such file or directory
autoreconf: autopoint is needed because this package uses Gettext
解决方法:
yum install -y gettext-devel
出现错误:
gst/rockchipmpp/Makefile.am:1: error: Libtool library used but \'LIBTOOL\' is undefined
gst/rockchipmpp/Makefile.am:1: The usual way to define \'LIBTOOL\' is to add \'LT_INIT\'
gst/rockchipmpp/Makefile.am:1: to \'configure.ac\' and run \'aclocal\' and \'autoconf\' again.
gst/rockchipmpp/Makefile.am:1: If \'LT_INIT\' is in \'configure.ac\', make sure
gst/rockchipmpp/Makefile.am:1: its definition is in aclocal\'s search path.
gst/vpudec/Makefile.am:1: error: Libtool library used but \'LIBTOOL\' is undefined
gst/vpudec/Makefile.am:1: The usual way to define \'LIBTOOL\' is to add \'LT_INIT\'
gst/vpudec/Makefile.am:1: to \'configure.ac\' and run \'aclocal\' and \'autoconf\' again.
gst/vpudec/Makefile.am:1: If \'LT_INIT\' is in \'configure.ac\', make sure
gst/vpudec/Makefile.am:1: its definition is in aclocal\'s search path.
autoreconf: automake failed with exit status: 1
解决方法:
sudo dnf install libtool
出现错误:
configure: Package \'gstreamer-1.0\', required by \'virtual:world\', not found
configure: error: no gstreamer-1.0 >= 1.12.0 (GStreamer) found
解决方法:
[toybrick@localhost gstreamer-rockchip]$ dnf search gstreamer1
Last metadata expiration check: 0:00:30 ago on Tue 13 Aug 2019 03:00:33 AM EDT.
==================================================================================================== Name Exactly Matched: gstreamer1 =====================================================================================================
gstreamer1.aarch64 : GStreamer streaming media framework runtime
=================================================================================================== Summary & Name Matched: gstreamer1 ====================================================================================================
mingw32-gstreamer1-plugins-good.noarch : Cross compiled GStreamer1 plug-ins good
mingw64-gstreamer1-plugins-good.noarch : Cross compiled GStreamer1 plug-ins good
gstreamer1-rtsp-server-devel.aarch64 : Development files for gstreamer1-rtsp-server
mingw32-gstreamer1-plugins-bad-free.noarch : Cross compiled GStreamer1 plug-ins "bad"
mingw64-gstreamer1-plugins-bad-free.noarch : Cross compiled GStreamer1 plug-ins "bad"
======================================================================================================== Name Matched: gstreamer1 =========================================================================================================
perl-GStreamer1.noarch : Bindings for GStreamer 1.x
gstreamer1-libav.aarch64 : GStreamer 1.0 libav-based plug-ins
gstreamer1-devel.aarch64 : Libraries/include files for GStreamer streaming media framework
gstreamer1-vaapi.aarch64 : GStreamer plugins to use VA API video acceleration
libnice-gstreamer1.aarch64 : GStreamer plugin for libnice
mingw32-gstreamer1.noarch : MinGW Windows Streaming-Media Framework Runtime
mingw64-gstreamer1.noarch : MinGW Windows Streaming-Media Framework Runtime
python2-gstreamer1.aarch64 : Python bindings for GStreamer
python3-gstreamer1.aarch64 : Python bindings for GStreamer
gstreamer1-devel-docs.noarch : Developer documentation for GStreamer streaming media framework
gstreamer1-plugins-fc.aarch64 : Future Composer input plugin for GStreamer 1.0.x
gstreamer1-rtsp-server.aarch64 : GStreamer RTSP server library
gstreamer1-plugins-base.aarch64 : GStreamer streaming media framework base plugins
gstreamer1-plugins-good.aarch64 : GStreamer plugins with good code and licensing
gstreamer1-plugins-ugly.aarch64 : GStreamer 1.0 streaming media framework "ugly" plug-ins
gstreamer1-plugins-entrans.aarch64 : GStreamer plug-ins from GEntrans
gstreamer1-plugins-bad-free.aarch64 : GStreamer streaming media framework "bad" plugins
gstreamer1-plugins-good-gtk.aarch64 : GStreamer "good" plugins gtk plugin
gstreamer1-vaapi-devel-docs.noarch : Developer documentation for GStreamer VA API video acceleration plugins
gstreamer1-libav-devel-docs.noarch : Development documentation for the libav GStreamer plug-in
gstreamer1-plugins-ugly-free.aarch64 : GStreamer streaming media framework "ugly" plugins
gstreamer1-plugins-base-devel.aarch64 : GStreamer Base Plugins Development files
gstreamer1-plugins-base-tools.aarch64 : Tools for GStreamer streaming media framework base plugins
gstreamer1-plugins-good-extras.aarch64 : Extra GStreamer plugins with good code and licensing
gstreamer1-plugins-entrans-docs.noarch : Documentation for GStreamer plug-ins from GEntrans
mingw32-gstreamer1-plugins-base.noarch : Cross compiled GStreamer media framework base plug-ins
mingw64-gstreamer1-plugins-base.noarch : Cross compiled GStreamer media framework base plug-ins
gstreamer1-plugins-bad-freeworld.aarch64 : GStreamer 1.0 streaming media framework "bad" plug-ins
gstreamer1-plugins-bad-free-devel.aarch64 : Development files for the GStreamer media framework "bad" plug-ins
gstreamer1-rtsp-server-devel-docs.noarch : Developer documentation for GStreamer-based RTSP server library
gstreamer1-plugins-bad-free-extras.aarch64 : Extra GStreamer "bad" plugins (less often used "bad" plugins)
gstreamer1-plugins-base-devel-docs.noarch : Developer documentation for GStreamer Base plugins library
gstreamer1-plugins-ugly-free-devel.aarch64 : Development files for the GStreamer media framework "ugly" plug-ins
gstreamer1-plugins-bad-free-wildmidi.aarch64 : GStreamer "bad" plugins wildmidi plugin
gstreamer1-plugins-bad-free-fluidsynth.aarch64 : GStreamer "bad" plugins fluidsynth plugin
dnf install gstreamer1-devel gstreamer1-plugins-base-devel