/usr/bin/mod2opus is in hxtools 20170430-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #!/bin/bash
#
# mod2opus
# written by Jan Engelhardt, 2004-2007,2017
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the WTF Public License version 2 or
# (at your option) any later version.
#
# MP3 players still lack MOD/XM/IT/MID/etc. support,
# but at least an OGG player was affordable.
#
usage()
{
echo "Usage: mod2opus inputfile[...]";
echo "Example: mod2opus this.it";
exit 1;
}
qual="--bitrate 160";
if [ -z "$1" ]; then
usage;
fi;
prog=$(which timidity 2>/dev/null)
if [ -n "$prog" ]; then
prog="timidity -Ow1sl -idt -o-"
fi
if [ -z "$prog" ]; then
prog=$(which xmp 2>/dev/null)
if [ -n "$prog" ]; then
prog="xmp -i nearest -o-"
fi
fi
if [ -z "$prog" ]; then
echo "No suitable decoder found. Need timidity or xmp."
fi
for i in "$@"; do
$prog "$i" | opusenc $qual --framesize 60 - "$i.opus"
done;
|