Sign inSign up

cdzombak/quick-media-conv

By cdzombak

•Updated about 3 years ago

Scripts for quick ffmpeg/imagemagick conversions on Linux & macOS

Image
0

1.7K

cdzombak/quick-media-conv repository overview

⁠quick-media-conv

Scripts for quick ffmpeg/imagemagick conversions on Linux & macOS. These scripts emphasize usability and prioritize getting a result with little thought, rather than providing many ways to customize and perfect the conversion process.

⁠Usage

flv2mp4 [OPTIONS] file1 [file2 ...]
toalac [OPTIONS] file1 [file2 ...]
tom4a [OPTIONS] file1 [file2 ...]
tomp4[-hq|-robust] [OPTIONS] file1 [file2 ...]
topng [OPTIONS] file1 [file2 ...]
⁠Options

All scripts accept the following options:

  • -h, --help: Print help and exit.
  • -v, --version: Print version and exit.

⁠Installation

⁠macOS via Homebrew
brew install cdzombak/oss/quick-media-conv
⁠Debian via PackageCloud

Install my PackageCloud Debian repository if you haven't already:

curl -s https://packagecloud.io/install/repositories/cdzombak/oss/script.deb.sh?any=true | sudo bash

Then install quick-media-conv via apt-get:

sudo apt-get install quick-media-conv
⁠Manual installation from build artifacts

Pre-built binaries for are downloadable from each GitHub Release⁠. Debian packages for each release are available as well.

⁠Build and install locally
git clone https://github.com/cdzombak/quick-media-conv.git
cd quick-media-conv
make build

Then copy the resulting files from out/ to your desired installation path.

⁠Docker

Docker images are available for amd64 and arm64 from Docker Hub and GHCR:

docker pull cdzombak/quick-media-conv:1
docker pull ghcr.io/cdzombak/quick-media-conv:1

Commands within the container run in the /work directory, so take care to map this volume to the directory on your machine containing media files, and pass filenames to the container's command appropriately. Sample usage:

$ ls mediafiles/
file1.webm  file2.flac

$ docker run --rm -v ./mediafiles:/work cdzombak/quick-media-conv:1 tomp4 file1.webm
$ docker run --rm -v ./mediafiles:/work cdzombak/quick-media-conv:1 toalac file2.flac

$ ls mediafiles/
file1.webm  file1.mp4  file2.flac  file2.alac

⁠About

⁠License

LGPLv3; see LICENSE in this repository.

Tag summary

Content type

Image

Digest

sha256:d093e2129…

Size

171.7 MB

Last updated

about 3 years ago

docker pull cdzombak/quick-media-conv