Added some packaging info

This commit is contained in:
Gregory Ballantine 2022-09-01 12:35:39 -04:00
parent 38547bb175
commit d4449b3144
2 changed files with 39 additions and 0 deletions

View File

@ -1,7 +1,11 @@
[package]
name = "adept"
description = "Bit Goblin automated video transcoding service."
version = "0.1.0"
edition = "2021"
readme = "README.md"
license = "BSD 2-Clause"
authors = ["Gregory Ballantine <gballantine@bitgoblin.tech>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -10,3 +14,27 @@ toml = "0.5"
serde = "1.0"
serde_derive = "1.0"
shellexpand = "2.1"
[package.metadata.deb]
license-file = "LICENSE"
maintainer-scripts = "build/debian/service"
depends = "ffmpeg (>= 4)"
section = "video"
assets = [
["target/release/adept", "usr/bin", "755"],
["build/etc/example.toml", "etc/adept/example.toml", "644"],
["README.md", "usr/share/doc/adept/README", "644"]
]
[package.metadata.deb.systemd-units]
unit-name = "adept.service"
enable = true
start = true
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/adept", dest = "/usr/bin/adept", mode = "755" },
{ source = "build/etc/example.toml", dest = "/etc/adept/example.toml", mode = "755"},
{ source = "README.me", dest = "/usr/share/doc/adept/README", mode = "644"}
]
[package.metadata.generate-rpm.requires]
ffmpeg = ">= 4"

11
build/etc/adept.toml Normal file
View File

@ -0,0 +1,11 @@
# This example transcodes footage to DNxHD 1080p60 for use in video editors like DaVinci Resolve.
[transcoder]
repository = "~/adept" # location of the videos to transcode
interval = 15
video_format = "mov" # video container format
video_codec = "dnxhd" # video codec to use
video_profile = "dnxhr_hq" # DNxHD has multiple presets for various video qualities
video_resolution = "1920x1080"
video_framerate = 60
video_color = "yuv422p"
audio_codec = "pcm_s16le" # audio codec to use