Sign inSign up

jim60105/static-ffmpeg-upx

By jim60105

•Updated 6 months ago

This is the UPX compressed wader/static-ffmpeg (Dockerfile, CI image build and test)

Image
0

3.1K

jim60105/static-ffmpeg-upx repository overview

⁠docker-static-ffmpeg-upx

⁠https://github.com/jim60105/docker-static-ffmpeg-upx⁠

CodeFactor

This is the wader/static-ffmpeg⁠ compressed with UPX⁠.

After UPX compression, the binary size is reduced to about 26%.

2024-05-05-182446

2024-05-05-182008

I did nothing except compress. I created this image mainly for my other projects that uses static-ffmpeg. Also added the compressed dumb-init⁠ since I often use it together.

Thanks for all the great works by wader/static-ffmpeg⁠. Please refer to his project⁠ and my Dockerfile⁠ for all technical information.

⁠Usage

Get the Dockerfile at GitHub⁠, or pull the image from ghcr.io⁠ or quay.io⁠.

In Dockerfile

COPY --from=jim60105/static-ffmpeg-upx:7.0-1 /ffmpeg /usr/local/bin/
COPY --from=jim60105/static-ffmpeg-upx:7.0-1 /ffprobe /usr/local/bin/

Run directly

docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" ghcr.io/jim60105/static-ffmpeg-upx:7.0-1 -i file.wav file.mp3
docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" --entrypoint=/ffprobe ghcr.io/jim60105/static-ffmpeg-upx:7.0-1 -i file.wav

As shell alias

alias ffmpeg='docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" ghcr.io/jim60105/static-ffmpeg-upx:7.0-1'
alias ffprobe='docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" --entrypoint=/ffprobe ghcr.io/jim60105/static-ffmpeg-upx:7.0-1'

⁠LICENSE

Note

The main program, [wader/static-ffmpeg](https://github.com/wader/static-ffmpeg), is distributed under [MIT](https://github.com/wader/static-ffmpeg/blob/master/LICENSE). Please consult their repository for access to the source code and licenses. The following is the license for the Dockerfiles and CI workflows in this repository.

The Dockerfile and CI workflow files in this repository are licensed under the MIT license⁠.

Tag summary

Content type

Image

Digest

sha256:c63f69912…

Size

74.9 MB

Last updated

6 months ago

docker pull jim60105/static-ffmpeg-upx