Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BlockListed/encodedir
Encode a dir using ffmpeg
https://github.com/BlockListed/encodedir
automation encoding ffmpeg linux rust unix video
Last synced: about 2 months ago
JSON representation
Encode a dir using ffmpeg
- Host: GitHub
- URL: https://github.com/BlockListed/encodedir
- Owner: BlockListed
- License: gpl-3.0
- Created: 2021-07-24T17:26:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-02T10:44:58.000Z (about 1 year ago)
- Last Synced: 2024-08-07T23:40:44.600Z (5 months ago)
- Topics: automation, encoding, ffmpeg, linux, rust, unix, video
- Language: Rust
- Homepage:
- Size: 83 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LINUX ONLY
# Encodedir
Encode a directory using the systems ffmpeg.# Install
* Make sure ffmpeg is installed on your system.
* Download latest release from the releases tab.
* Unpack the archive using `tar -xf [downloaded archive goes here]`.
* Run `sh ./install.sh` from a terminal in the extracted folder.
* If your shell can't find it, that probably means the default binary location (~/.local/bin) isn't in your path.
* If this is the case please either add the location to your path or run with `~/.local/bin/encodedir`.
## Notes
* The default config use hevc_nvenc as the encoder. If your system doesn't have an nvidia gpu with nvenc, edit the config file to use an encoder like hevc_vaapi (for systems, that support vaapi) or just the cpu encoder (libx265).# Install from source
* Install a rust toolchain for your system. (Only linux is tested and I probably won't add config locations that work with windows for a while).
* Compile with `cargo build --release`.
* (Optional) strip binary with `strip target/release/encodedir`.
* Move file to a location in your path (Ex. /usr/bin or $HOME/.local/bin (AKA ~/.local/bin)).
* Use with `encodedir [Path to directory]`.# Usage
* Usage information is available using `encodedir --help`# Configuration
* The config file is location at `$HOME/.config/encodedir.toml` (AKA `~/.config/encodedir.toml`).
* Configure command args (Like switching from nvidia nvenc to vaapi or cpu encoding).
* Configure what files encodedir sees as video files, incase you don't have your files in an MKV, MP4 or MOV container.