ffmpeg-convert/socket_player.sh

6 lines
176 B
Bash
Raw Normal View History

2024-05-20 10:40:41 +02:00
#!/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