changed from old to new commands of linux script

This commit is contained in:
Martin Eesmaa 2022-09-17 12:13:54 +10:00 committed by GitHub
parent 7a9c811cca
commit 8a9d643a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,22 +1,30 @@
#!/bin/bash #!/bin/bash
sudo apt update && sudo apt upgrade -y sudo apt update && sudo apt upgrade -y && \
sudo apt install libxml2 libsdl2-dev libx264-dev libx265-dev libvpx-dev libopus-dev cmake build-essential -y sudo apt install build-essential cmake nasm autoconf pkg-config python3-setuptools libtool git wget && \
echo Downloading libvvdec... git clone --depth=1 https://github.com/fraunhoferhhi/vvenc && \
cd ~/Downloads git clone --depth=1 https://github.com/fraunhoferhhi/vvdec && \
mkdir buildforlinux git clone --depth=1 https://github.com/mstorsjo/fdk-aac && \
cd buildforlinux git clone --depth=1 https://github.com/libsdl-org/SDL && \
git clone --depth=1 https://github.com/fraunhoferhhi/vvenc git clone --depth=1 https://github.com/gnome/libxml2 && \
git clone --depth=1 https://github.com/fraunhoferhhi/vvdec git clone --depth=1 https://github.com/xiph/opus && \
cd vvenc git clone --depth=1 https://github.com/MartinEesmaa/FFmpeg-FixVVC && \
sudo make install wget https://gist.githubusercontent.com/MartinEesmaa/6c4c8158139e04d432f49ac005ba7528/raw/04b05601cb51eec7e5041f8a45b71caa552669c2/libvvenc.pc.in && \
cd ../ cp libvvenc.pc.in vvenc/pkgconfig/ && \
cd vvdec cd vvenc && sudo make install-release install-prefix=/usr/local disable-lto=1 && \
sudo make install cd .. && \
cd ../ cd vvdec && sudo make install-release install-prefix=/usr/local disable-lto=1 && \
echo Downloading FFmpeg with VVC support cd .. && \
git clone --depth=10 https://github.com/tbiat/FFmpeg cd fdk-aac && autoreconf -if && ./configure --prefix=/usr/local --enable-static --disable-shared && sudo make install -j $nproc && \
cd FFmpeg cd .. && \
./configure --enable-libvvenc --enable-libvvdec --enable-pic --enable-libxml2 --enable-libx264 --enable-libx265 --enable-libvpx --enable-libopus cd libxml2 && autoreconf -if && ./configure --prefix=/usr/local --enable-static --disable-shared && sudo make install -j $nproc && \
cd .. && \
cd opus && autoreconf -if && ./configure --prefix=/usr/local --enable-static --disable-shared && sudo make install -j $nproc && \
cd .. && \
cd SDL && ./configure --prefix=/usr/local --enable-static --disable-shared && sudo make install -j $nproc && \
cd .. && cd FFmpeg-FixVVC && \
./configure --enable-static --pkg-config-flags="--static" --extra-ldexeflags="-static" \
--enable-libfdk-aac --enable-libvvenc --enable-libvvdec --enable-pic \
--enable-libxml2 --enable-libopus --enable-sdl2 && \
make -j make -j
echo You're ready to preview VVC, view VVC information or convert from VVC using ffmpeg, ffplay and ffprobe. echo You're ready to preview VVC, view VVC information or convert from VVC using ffmpeg, ffplay and ffprobe.
echo - Martin Eesmaa echo - Martin Eesmaa