Created
August 31, 2024 09:31
-
-
Save fnx4/f0db79ec17c092bd69868fc927c74c30 to your computer and use it in GitHub Desktop.
build mpv+vs(R66) ubu24 intel U/SoC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt install g++ make autoconf automake libtool pkg-config nasm git meson | |
mkdir builds | |
cd builds/ | |
ls | |
git clone --branch release-3.0.5 https://github.com/sekrit-twc/zimg.git | |
cd zimg/ | |
./autogen.sh | |
./configure | |
make -j4 | |
sudo make install | |
cd .. | |
sudo apt-get install cython3 | |
git clone --branch R66 https://github.com/vapoursynth/vapoursynth.git | |
cd vapoursynth | |
./autogen.sh | |
./configure | |
make -j4 | |
sudo make install | |
sudo ldconfig | |
sudo ln -s /usr/local/lib/python3.12/site-packages/vapoursynth.so /usr/lib/python3.12/lib-dynload/vapoursynth.so | |
vspipe | |
cd .. | |
sudo apt install libssl-dev libfribidi-dev libharfbuzz-dev libluajit-5.1-dev libx264-dev xorg-dev libxpresent-dev libegl1-mesa-dev libfreetype-dev libfontconfig-dev libffmpeg-nvenc-dev libva-dev libdrm-dev libplacebo-dev libasound2-dev libpulse-dev python-is-python3 libdav1d* gnutls-* libmp3lame* opus-tools libopus* libunwind-dev libshaderc* glsl* spirv-* libspirv-cross-c-shared* vorbis* libvorbis* libvpx* openal-tools libopenal* libvdpau* wayland-protocols wayland-utils xkb* libxkbcommon* lua-any fst-dev libfst* mujs libmujs* libbluray* libarchive-dev rubberband-* librubberband* sndio-tools libsndio-dev uchardet libuchardet-dev caca-utils libcaca0 libcaca-dev libjack0 libjack-dev libpipewire-0.3-dev libgbm* libsixel* libdav1d* | |
git clone https://github.com/mpv-player/mpv-build.git | |
cd mpv-build | |
touch ffmpeg_options | |
echo --enable-libx264 >> ffmpeg_options | |
echo --enable-libmp3lame >> ffmpeg_options | |
echo --enable-libdav1d >> ffmpeg_options | |
echo --enable-cuvid >> ffmpeg_options | |
echo --enable-vapoursynth >> ffmpeg_options | |
echo --enable-openal >> ffmpeg_options | |
echo --enable-opengl >> ffmpeg_options | |
echo --enable-vaapi >> ffmpeg_options | |
echo --enable-vdpau >> ffmpeg_options | |
echo --enable-gpl >> ffmpeg_options | |
echo --enable-gnutls >> ffmpeg_options | |
echo --enable-libass >> ffmpeg_options | |
echo --enable-libfreetype >> ffmpeg_options | |
echo --enable-libopus >> ffmpeg_options | |
echo --enable-libvorbis >> ffmpeg_options | |
echo --enable-libvpx >> ffmpeg_options | |
echo --enable-nonfree >> ffmpeg_options | |
touch mpv_options | |
echo -Dbuildtype=release >> mpv_options | |
echo -Dvapoursynth=enabled >> mpv_options | |
echo -Dlibmpv=true >> mpv_options | |
echo -Dgl=enabled >> mpv_options | |
echo -Dvdpau=enabled >> mpv_options | |
echo -Dxv=enabled >> mpv_options | |
echo -Dx11=enabled >> mpv_options | |
echo -Dwayland=enabled >> mpv_options | |
echo -Dvulkan=enabled >> mpv_options | |
echo -Dpulse=enabled >> mpv_options | |
./use-ffmpeg-release | |
./rebuild -j4 | |
sudo ./install | |
cd .. | |
mpv --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment