Crates.io | transcode |
lib.rs | transcode |
version | 0.3.0 |
source | src |
created_at | 2016-10-31 23:05:52.086717 |
updated_at | 2016-11-08 10:11:57.310049 |
description | Command-line utility for converting directories of audio/video format to run on a raspberry pi. |
homepage | |
repository | https://github.com/bjornua/transcode |
max_upload_size | |
id | 7057 |
size | 94,576 |
Transcode a directory of videos
transcode ~/Videos/ ~/ConvertedVideos
~/Videos/
to ~/VideosConverted/
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
Currently the only target format is hardcoded and is:
Container | Audio | Video |
---|---|---|
Matroska | Opus 192k | h.264 4.1 |
cargo install transcode
~/.cargo/bin/transcode
(you can add ~/.cargo/bin/
to PATH
)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:
So i decided i wanted to write a more specific program for the job.