Skip to content

Commit

Permalink
Add compress-s16.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsampson committed Dec 16, 2019
1 parent d636f9f commit 5c8686f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions compress-s16
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# Compress a .s16 file to .raw.oga.
# XXX Patch ld-compress to do this

if [ -z "$1" ]; then
echo >&2 "Usage: $0 INPUT-FILE.s16"
exit 1
fi

out=$(basename "$1" .s16).raw.oga
ffmpeg -hide_banner -loglevel error \
-f s16le -ar 40k -ac 1 -i "$1" \
-acodec flac -compression_level 11 -f ogg "$out"

0 comments on commit 5c8686f

Please sign in to comment.