.
This commit is contained in:
parent
6d6cd37a46
commit
b9316708e7
1 changed files with 8 additions and 0 deletions
8
sd/to-opus-audiobook
Executable file
8
sd/to-opus-audiobook
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
# Converts an input file into .opus for audiobooks. Arguments: filename artist album date picture
|
||||
set -euo pipefail
|
||||
echo "Converting $1"
|
||||
filepath="$(basename -- $1)"
|
||||
filestem="${filepath%.*}"
|
||||
nix-shell -p ffmpeg-full opusTools --command "ffmpeg -i $1 -f wav pipe:1 | opusenc --bitrate 32 --speech --framesize 60 --artist \"$2\" --album \"$3\" --date $4 --genre Hörbuch --picture \"$5\" - $filestem.opus"
|
||||
|
Loading…
Reference in a new issue