Skip Navigation
Quick oneliner ffmpg help
  • It's a bit long for a one-liner, but this should work.

    for f in /media/johann/5461-000B/DCIM/100MEDIA/*.AVI; do num=${f%.AVI}; num=${num##*IMAG}; ffmpeg -i "$f" -ss 00:00:00 -t 00:00:20 "~/Public/240321/240321_$num.avi"; rm "$f"; done

    This num=${f%.AVI}; num=${num##*IMAG}; extracts the number from the video filename. To make sure it's not deleting anything it shouldn't, you also might want to run it with rm -i "$f"

  • I Study Climate Change. The Data Is Telling Us Something New.
  • It's insane.

    The thermodynamic minimum amount of energy needed to extract CO2 at 450 ppm is 120 kWh per tonne. Current experimental carbon capture plants run at about 5 % efficiency. If we assume we can double their efficiency and can magically produce as many plants as we need, to remove 20 Gt of CO2 per year (half our emissions) we would need 24,000 TWh of energy per year.

    That is the entirety of the world's electricity production. To remove half our emissions.

    Carbon capture is a non-runner.

  • Bram Moolenaar Passed Away
  • My entire life has vim key bindings. My window manager and browser all have vim key bindings. I work in vim. I write my shopping lists in vim.

    I really can't overstate how ingrained vim is in my day to day life. Bram had a big impact.

  • Bram Moolenaar Passed Away

    Bram Moolenaar, creator of vim, has died.

    If you are a vim user, consider donating to International Child Care Fund Holland - a charity Bram heavily supported. You can find the link on vim.org

    :wq

    43
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)LU
    LuckyJones @lemmy.world
    Posts 2
    Comments 9