Bunch of small scripts to run a temporary radio stream, automatically. Some liquidsoap, some bash, some pyhton. Combine as if you like Unix. with pipes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
383 B

#!/bin/zsh
echo "Finding mp3s that are under a minute long"
find . -name '*.mp3' -print0 |
while IFS= read -r -d '' track; do
duration=$(ffmpeg -i $track 2>&1 | grep -oE "[0-9]{1}:[0-9]{2}:[0-9]{2}")
if [[ $duration == 0:00* ]] && [[ $track != *"intro"* ]] && [[ $track != *"outro"* ]]
then
echo $track >> 60secOptions.m3u
echo $duration
fi;
done