first commit
This commit is contained in:
commit
cfa5a4823d
1 changed files with 123 additions and 0 deletions
123
README.md
Normal file
123
README.md
Normal file
|
@ -0,0 +1,123 @@
|
||||||
|
# FFMPEG per RK35888 Orange Pi 5 Plus
|
||||||
|
|
||||||
|
|
||||||
|
______________________________________
|
||||||
|
______________________________________
|
||||||
|
https://github.com/rockchip-linux/mpp
|
||||||
|
https://github.com/nyanmisaka/ffmpeg-rockchip/tree/master
|
||||||
|
https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Compilation
|
||||||
|
______________________________________
|
||||||
|
______________________________________
|
||||||
|
|
||||||
|
|
||||||
|
sudo apt-get update -qq && sudo apt-get -y install \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
build-essential \
|
||||||
|
cmake \
|
||||||
|
git-core \
|
||||||
|
libass-dev \
|
||||||
|
libfreetype6-dev \
|
||||||
|
libgnutls28-dev \
|
||||||
|
libmp3lame-dev \
|
||||||
|
libsdl2-dev \
|
||||||
|
libtool \
|
||||||
|
libva-dev \
|
||||||
|
libvdpau-dev \
|
||||||
|
libvorbis-dev \
|
||||||
|
libxcb1-dev \
|
||||||
|
libxcb-shm0-dev \
|
||||||
|
libxcb-xfixes0-dev \
|
||||||
|
meson \
|
||||||
|
ninja-build \
|
||||||
|
pkg-config \
|
||||||
|
texinfo \
|
||||||
|
wget \
|
||||||
|
yasm \
|
||||||
|
zlib1g-dev
|
||||||
|
|
||||||
|
______________________________________
|
||||||
|
|
||||||
|
|
||||||
|
sudo apt install -y git make cmake gcc g++ wget
|
||||||
|
git clone https://github.com/rockchip-linux/mpp -b develop
|
||||||
|
cd ~/mpp/build/linux/aarch64
|
||||||
|
./make-Makefiles.bash
|
||||||
|
sudo make -j$(nproc)
|
||||||
|
|
||||||
|
|
||||||
|
test da fare
|
||||||
|
non so se serve
|
||||||
|
cd ~/mpp/build/linux/aarch64/test
|
||||||
|
make -j$(nproc)
|
||||||
|
|
||||||
|
cd
|
||||||
|
cd wget https://dl.radxa.com/media/video/1080p.264
|
||||||
|
|
||||||
|
export mpi_debug=1 && export mpp_debug=1 && export h264d_debug=1 && export mpp_syslog_perror=1
|
||||||
|
sudo ~/mpp/build/linux/aarch64/test/mpi_dec_test -i ~/1080p.264 -t 7 -h 1080 -w 1920
|
||||||
|
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
______________________________________
|
||||||
|
|
||||||
|
# Build MPP
|
||||||
|
mkdir -p ~/dev && cd ~/dev
|
||||||
|
git clone -b jellyfin-mpp --depth=1 https://github.com/nyanmisaka/mpp.git rkmpp
|
||||||
|
pushd rkmpp
|
||||||
|
mkdir rkmpp_build
|
||||||
|
pushd rkmpp_build
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
|
-DBUILD_TEST=OFF \
|
||||||
|
..
|
||||||
|
make -j $(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
|
||||||
|
# Build RGA
|
||||||
|
mkdir -p ~/dev && cd ~/dev
|
||||||
|
git clone -b jellyfin-rga --depth=1 https://github.com/nyanmisaka/rk-mirrors.git rkrga
|
||||||
|
meson setup rkrga rkrga_build \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=lib \
|
||||||
|
--buildtype=release \
|
||||||
|
--default-library=shared \
|
||||||
|
-Dcpp_args=-fpermissive \
|
||||||
|
-Dlibdrm=false \
|
||||||
|
-Dlibrga_demo=false
|
||||||
|
meson configure rkrga_build
|
||||||
|
ninja -C rkrga_build install
|
||||||
|
|
||||||
|
______________________________________
|
||||||
|
|
||||||
|
# Build the minimal FFmpeg (You can customize the configure and install prefix)
|
||||||
|
mkdir -p ~/dev && cd ~/dev
|
||||||
|
git clone https://github.com/nyanmisaka/ffmpeg-rockchip.git
|
||||||
|
cd ffmpeg-rockchip
|
||||||
|
./configure --prefix=/usr --enable-gpl --enable-version3 --enable-libdrm --enable-rkmpp --enable-rkrga
|
||||||
|
make -j $(nproc)
|
||||||
|
|
||||||
|
# Try the compiled FFmpeg without installation
|
||||||
|
./ffmpeg -decoders | grep rkmpp
|
||||||
|
./ffmpeg -encoders | grep rkmpp
|
||||||
|
./ffmpeg -filters | grep rkrga
|
||||||
|
|
||||||
|
# Install FFmpeg to the prefix path
|
||||||
|
make install
|
||||||
|
|
||||||
|
______________________________________
|
||||||
|
altro
|
||||||
|
______________________________________
|
||||||
|
https://github.com/nyanmisaka/ffmpeg-rockchip
|
||||||
|
https://github.com/nyanmisaka/jellyfin-ffmpeg/tree/next-rockchip
|
||||||
|
|
||||||
|
https://github.com/rockchip-linux/mpp
|
||||||
|
https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Compilation
|
||||||
|
|
||||||
|
|
||||||
|
https://wiki.radxa.com/Rock5/guide/rockchip-mpp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue