Git Product home page Git Product logo

Comments (7)

wader avatar wader commented on July 24, 2024 1

Thanks, adding to reading list!

from static-ffmpeg.

mathieu-aubin avatar mathieu-aubin commented on July 24, 2024

It would probably require a full set of test for each library... which wouldnt be such a bad idea in the grand scheme of things.

from static-ffmpeg.

wader avatar wader commented on July 24, 2024

Nope only heard of it but never used it. Is is known to cause issues?

Yes some kind of tests could be nice (even without UPX). What would you like to test? encode/decode with various libs? one could also run ffmpeg fate.

from static-ffmpeg.

mathieu-aubin avatar mathieu-aubin commented on July 24, 2024

no idea about ffmpeg fate and no idea either about which tests could be reliable. It could be left to uses to find bugs but that can cause issues with integration at a later date for you. Regressions and such. UPX is great and as far as i know, is not known to cause issues. It does slow up start times tho. But it compresses binaries ALOT.

Maybe only worth for when yuo download the thing but if you use it enough, in the long run, the longer start time will bite you back. Maybe offer a choice when compiling, maybe dismiss this altogether? Just a thought about UPX.

from static-ffmpeg.

wader avatar wader commented on July 24, 2024

Ok will think about it. In my use cases it has not been a concern that the binaries are quite large (in some projects they are small compared to other things in the image :). At least docker will compress the images quite well, latest it 60MB compressed 160MB uncompressed.

from static-ffmpeg.

mathieu-aubin avatar mathieu-aubin commented on July 24, 2024

What about UPX? If you’re not familiar with UPX, it’s an amazing tool that reduces the size of binaries. It does so by compressing the binary, and adding a small stub to uncompress and run it transparently. If we want to reduce the footprint of our containers, UPX will also be very counter-productive. First, the disk and network usage won’t be reduced a single bit, since layers are compressed anyway; so UPX won’t get us anything here.

from https://www.ardanlabs.com/blog/2020/04/docker-images-part3-going-farther-reduce-image-size.html

from static-ffmpeg.

mathieu-aubin avatar mathieu-aubin commented on July 24, 2024

docker-slim seems interresting. maybe not here but in general.

from static-ffmpeg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.