This commit is contained in:
Hri7566 2024-05-20 04:40:41 -04:00
commit 3556b11c2a
2 changed files with 10 additions and 0 deletions

5
convert.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
for file in "$@"; do
ffmpeg -i "$file" -ar 48000 -ac 1 "${file%.*}.dfpwm"
done

5
socket_player.sh Executable file
View File

@ -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