wader / static-ffmpeg

Multi-arch docker image with ffmpeg/ffprobe binaries built as hardened static PIE binaries with no external dependencies
https://hub.docker.com/r/mwader/static-ffmpeg/
MIT License
233 stars 56 forks source link

Remove hyphen from cd to support ffmpeg snapshot builds #461

Closed timhovius closed 1 month ago

timhovius commented 1 month ago

I want to build a ffmpeg snapshot version which I downloaded from https://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2

When I build this version (with a custom build argument), I get this error:

cd: ffmpeg-*: No such file or director

This error occurs because the ffmpeg folder in this archive does not contain a version.

wader commented 1 month ago

👍 ah so you building using --build-arg FFMPEG_VERSION=snapsnot... --build-arg=FFMPEG_SHA256=...? funny i didn't even think about using the ARG:s like that :) was mostly for templating later. Maybe should even be documented as ways to do custom builds 🤔

timhovius commented 1 month ago

👍 ah so you building using --build-arg FFMPEG_VERSION=snapsnot... --build-arg=FFMPEG_SHA256=...? funny i didn't even think about using the ARG:s like that :) was mostly for templating later. Maybe should even be documented as ways to do custom builds 🤔

Yes I use this build command right now:

docker build --build-arg FFMPEG_URL=https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 --build-arg FFMPEG_SHA256=9c45167e381aef5a5735c7d4ebd779ed9a2fc28de0ec2c1acfde10719c6fb86d --build-arg ALPINE_VERSION=custom-alpine -t ffmpeg-static

FYI the newest FFmpeg version has a native xHE-AAC decoder out of the box :partying_face:

wader commented 1 month ago

FYI the newest FFmpeg version has a native xHE-AAC decoder out of the box 🥳

Yeap! have tried it? seems it still is lack some parts of xhe? ...wonder if there is plans for an encoder also, which i guess is a quite large undertaking.

timhovius commented 1 month ago

FYI the newest FFmpeg version has a native xHE-AAC decoder out of the box 🥳

Yeap! have tried it? seems it still is lack some parts of xhe? ...wonder if there is plans for an encoder also, which i guess is a quite large undertaking.

Yes I tried it with some files from the internet, and it works pretty decent.