ffmpeg-convert/socket_player.sh

6 lines
176 B
Bash
Executable File

#!/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