Giter VIP home page Giter VIP logo

Comments (8)

ropery avatar ropery commented on May 23, 2024 1

@phw Is there a reason why you're using huffyuv output? It's ridiculously HUGE.

I know nothing about the matter, but see the comment on this page recommending libx264rgb, for instance.
You may want to check out this famous post on how to produce high quality GIF using ffmpeg.

Personally, I use PNG output (e.g. %05d.png) and post-process with ImageMagick or Gifsicle.

from peek.

phw avatar phw commented on May 23, 2024

Might be related to the fact that the screen recording uses temp files, and by default /tmp on Arch is a RAM disk. What approximate duration and area was your recording?

I will look into this and see whether I can reduce the used storage.

from peek.

mareknovotny avatar mareknovotny commented on May 23, 2024

how could default /tmp be changed to something else?

from peek.

phw avatar phw commented on May 23, 2024

Try to start Peek like this to use the tmp directory in your home (or set any other path you want):

TMPDIR=$HOME/tmp peek

from peek.

mareknovotny avatar mareknovotny commented on May 23, 2024

thanks! it works fine

from peek.

phw avatar phw commented on May 23, 2024

And if you don't want to have /tmp use your RAM at all but use the disk instead you need to disable tmpfs, see https://wiki.archlinux.org/index.php/Tmpfs for pointers on how to do this.

from peek.

phw avatar phw commented on May 23, 2024

@phw Is there a reason why you're using huffyuv output? It's ridiculously HUGE.

No, no particular reason other than that it worked. I had also a short try with using PNG output, but was not too satisfied with the output I got. But actually I did not invest any more time in trying to optimize this after I had first satisfactory quality results :) Thanks for the link, will definitely change this.

from peek.

phw avatar phw commented on May 23, 2024

Ok, finally found the time to test this and use libx264rgb instead of huffyuv output. huffyuv is indeed ridiculously large. For comparison I recorded a roughly 900 x 500 pixel area, and I recorded about 500 frames. With huffyuv the temporary file was about 300 MB large, with libx264rgb only 3 MB. I think this should solve most RAM issues encountered, and everything else not fixed by this can still use the TMPDIR=$HOME/tmp peek workaround.

from peek.

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.