Created
January 7, 2025 11:28
-
-
Save mike2718/2e1718afee81a078ceef7dda12a5d80b to your computer and use it in GitHub Desktop.
Convert custom format used by MMSSTV (http://hamsoft.ca/pages/mmsstv.php) to wave files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| [ $# -eq 0 ] && { echo "No input file given"; exit 1; } | |
| [ ! -f "$1" ] && { echo "File $1 not found"; exit 1; } | |
| tail -c +5 "$1" > /tmp/data.raw | |
| ffmpeg -f s16le -ac 1 -ar 11025 -i /tmp/data.raw -y "${1%.mmv}.wav" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment