# media-tools Python and (legacy) Perl based batch tools to transcode audio and video conveniently (leverages FFMpeg) The tools are also available as actions of 4 unified commands (`videotool`, `audiotool`, `imagetool` and `pdftool`): see [docs/unified-commands.md](docs/unified-commands.md). The `-i` option of the tools accepts files and directories (processed recursively): see [docs/input-files.md](docs/input-files.md). The tools use the Nvidia hardware acceleration when it's available, with a fallback to the CPU if a command fails with it: see [docs/hw-accel.md](docs/hw-accel.md). The verbosity of the logs is set with `-v CRITICAL|ERROR|WARNING|INFO|DEBUG` (`INFO` by default): see [docs/verbosity.md](docs/verbosity.md). The quality of the encoded videos is set with `--quality high|medium|low` (`high` by default, case insensitive, `h`/`m`/`l` shortcuts accepted), a better option than the bitrate: see [docs/quality.md](docs/quality.md). The format of the generated videos is set with `--format`: see [docs/format.md](docs/format.md). The resolutions can be given as `x` or as an alias (`4k`, `2.7k`, `2.5k`, `fhd`, `hd`...): see [docs/resolutions.md](docs/resolutions.md). Videos can be rotated with `videotool rotate`: see [docs/videotool-rotate.md](docs/videotool-rotate.md). Slideshows are created with `videotool slideshow` (50 fps by default): see [docs/videotool-slideshow.md](docs/videotool-slideshow.md). Videos can be flipped (left/right or top/bottom) with `videotool flip`: see [docs/videotool-flip.md](docs/videotool-flip.md). `audiotool lib` renames audio files from their tags and maintains links to audio files: see [docs/audiotool-lib.md](docs/audiotool-lib.md). The volume of audio and video files can be changed, or normalized across a batch of files to their average, with `audiotool volume` / `videotool volume`: see [docs/audiotool-volume.md](docs/audiotool-volume.md). `volume`, `rotate`, `flip` and `denoise` keep a backup of the files they modify in place, and `--restore` puts them back: see [docs/restore.md](docs/restore.md). Posters are created from photos arranged in columns with `imagetool poster`: see [docs/imagetool-poster.md](docs/imagetool-poster.md). They can also be designed interactively (layout, crop, reorder, live preview) in a local web app with `imagetool poster-webapp`: see [docs/imagetool-poster-webapp.md](docs/imagetool-poster-webapp.md). Photos found in directories and/or disk drives, or picked from a Google Photos library, can be inventoried (size, dimensions, a perceptual fingerprint for duplicate detection, dates, GPS coordinates, device, EXIF metadata) into a CSV file with `imagetool inventory`: see [docs/imagetool-inventory.md](docs/imagetool-inventory.md).