commit 3556b11c2abac5af52a72acaf38d3b21b14ff94f Author: Hri7566 Date: Mon May 20 04:40:41 2024 -0400 init diff --git a/convert.sh b/convert.sh new file mode 100755 index 0000000..7ffb03e --- /dev/null +++ b/convert.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +for file in "$@"; do + ffmpeg -i "$file" -ar 48000 -ac 1 "${file%.*}.dfpwm" +done diff --git a/socket_player.sh b/socket_player.sh new file mode 100755 index 0000000..dcf1ed1 --- /dev/null +++ b/socket_player.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +for file in "$@"; do + cat "$file" | ffmpeg -f "${file##*.}" -re -i pipe: -ar 48000 -ac 1 -filter:a "atempo=1" -c:a pcm_s8 -f s8 pipe: | ncat -U /tmp/mcpcm +done