Media tools
ffmpeg, sox, jpegoptim, pngquant and poppler: convert and shrink video, audio, images and PDFs.
Five command-line tools for the media that ends up in a repository or a message: video and audio with ffmpeg and sox, images with jpegoptim and pngquant, and PDFs with poppler.
On the workstation
-
Installed by the
ffmpeg,sox,jpegoptim,pngquantandpopplerformulae. -
poppler brings
pdftotext,pdftoppmandpdfinfo.
Keys and commands
| Key or command | Does |
|---|---|
|
Convert a screen recording to a small MP4 |
|
Make a GIF for a README or a pull request |
|
Take the audio out of a video |
|
Resample audio to 16 kHz mono, as speech models expect |
|
Shrink JPEGs and drop their metadata |
|
Shrink PNGs in place and drop their metadata |
|
Print a PDF’s text, keeping its columns |
|
Render each page to a PNG |
|
Show a PDF’s pages, size and producer |
With zc-workstation
The screenshots in these docs are PNGs. Before committing one, shrink it:
$ pngquant --quality=65-80 --strip --ext .png --force docs/modules/ROOT/images/*.png
--strip drops metadata, such as which machine and app made the image.
See also
-
Everyday apps, for Shottr
Edit this page Last updated