#!/usr/bin/env bash stat ffmpeg-master-latest-linux64-gpl.tar.xz || wget https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz tar xvf ffmpeg-master-latest-linux64-gpl.tar.xz cp -v ffmpeg-master-latest-*/bin/* /usr/bin/ chmod +x /usr/bin/ffmpeg /usr/bin/ffprobe /usr/bin/ffplay cp -v ffmpeg-master-latest-*/man/man1/* /usr/local/share/man/man1/ cp -v ffmpeg-master-latest-*/man/man3/* /usr/local/share/man/man3/ ffmpeg -version