anonradio: add ffmpeg transcode preset

Also provide token documentation and a real example.

Signed-off-by: Joseph B. Konno <thac0@tx0.org>
This commit is contained in:
2025-05-31 19:19:09 +00:00
committed by thac0
parent a06513c1d2
commit c23f39a4e5
3 changed files with 34 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: 0BSD
if [ -z $1 ] || [ -z $2 ]; then
echo "ERROR: expecting 2 arguments: input file (1) and output file (2)"
exit 1
fi
FFMPEG_DATADIR="$PWD" \
ffmpeg -i "$1" -fpre transcode.ffpreset "$2"