icecast format conversions
This commit is contained in:
parent
6353bda886
commit
a19a8df2ff
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue