#video #raspberry-pi #audio-video #format #directory #run #convert

app transcode

Command-line utility for converting directories of audio/video format to run on a raspberry pi

3 releases (breaking)

Uses old Rust 2015

0.3.0 Nov 8, 2016
0.1.0 Nov 1, 2016
0.0.1 Oct 31, 2016

#166 in Multimedia

MIT license

93KB
2.5K SLoC

transcode

Cargo version

Transcode a directory of videos

Example

transcode ~/Videos/ ~/ConvertedVideos
  • Converts video/audio files in ~/Videos/ to ~/VideosConverted/

Full Usage

Usage: target/debug/transcode [OPTION]... INPUT_DIRECTORY OUTPUT_DIRECTORY [INPUT_FILE]...

Options:
    -d, --dry-run       No paths are created or updated
    -h, --help          Display this help and exit
    -f, --format        Set the output format

Examples of the --format option:
    --format=mkv,h264,18,normal,opus,192

Features

  • Shows progress for individual files and total progress
  • Shows ETA for individual files and total ETA
  • Takes directory as input, automatically identify audio/video files within.
  • Copies files that are already in the target format instead of processing.

Formats

Currently the only target format is hardcoded and is:

Container Audio Video
Matroska Opus 192k h.264 4.1

Installation

Motivation

I ran into the problem of having many video files of various formats that needed to run on a raspberry pi. So i needed a script to convert all of them for playback in a format that raspberry pi can run.

You could of course just loop through all the files. Though i found the following issues:

Problems:

  • There is no ETA on when the script will finish.
  • Files would be scattered in the file system.

So i decided i wanted to write a more specific program for the job.

Dependencies

~2.4–3.5MB
~60K SLoC