diff --git a/Cargo.toml b/Cargo.toml index 6fb1618..5ab67f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] # 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" diff --git a/build/etc/adept.toml b/build/etc/adept.toml new file mode 100644 index 0000000..aad6a41 --- /dev/null +++ b/build/etc/adept.toml @@ -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