update to new ffmpeg naming convention

This commit is contained in:
simon 2021-10-03 20:25:23 +07:00
parent 28216e455e
commit 4e7cba70d5

View File

@ -13,8 +13,7 @@ RUN apt-get clean && apt-get -y update && apt-get -y install --no-install-recomm
# get newest patched ffmpeg and ffprobe builds # get newest patched ffmpeg and ffprobe builds
RUN curl -s https://api.github.com/repos/yt-dlp/FFmpeg-Builds/releases/latest \ RUN curl -s https://api.github.com/repos/yt-dlp/FFmpeg-Builds/releases/latest \
| grep browser_download_url \ | grep browser_download_url \
| grep linux64 \ | grep linux64-nonfree.tar.xz \
| grep ffmpeg-n \
| cut -d '"' -f 4 \ | cut -d '"' -f 4 \
| xargs curl -L --output ffmpeg.tar.xz && \ | xargs curl -L --output ffmpeg.tar.xz && \
tar -xf ffmpeg.tar.xz --strip-components=2 --no-anchored -C /usr/bin/ "ffmpeg" && \ tar -xf ffmpeg.tar.xz --strip-components=2 --no-anchored -C /usr/bin/ "ffmpeg" && \