icecast format conversions

This commit is contained in:
Bob Mottram 2017-11-25 22:21:52 +00:00
parent 6353bda886
commit a19a8df2ff
1 changed files with 2 additions and 2 deletions

View File

@ -122,10 +122,10 @@ function icecast_convert_files {
cd ${1}
echo $'Converting any mp3 files to ogg format'
find . -type f -name '*.mp3' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${f/%mp3/ogg}' '{}' \;
find . -type f -name '*.mp3' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${0/%mp3/ogg}"' '{}' \;
echo $'Converting any mp4 files to ogv format'
find . -type f -name '*.mp4' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${f/%mp4/ogv}' '{}' \;
find . -type f -name '*.mp4' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${0/%mp3/ogv}"' '{}' \;
chown -R icecast2:icecast $ICECAST_DIR
}