Remove source stream files after conversion
This commit is contained in:
parent
a19a8df2ff
commit
0f5803abc9
|
@ -123,9 +123,11 @@ function icecast_convert_files {
|
|||
|
||||
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 "${0/%mp3/ogg}"' '{}' \;
|
||||
find . -name "*.mp3" -print0 | xargs -0 rm -f
|
||||
|
||||
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 "${0/%mp3/ogv}"' '{}' \;
|
||||
find . -name "*.mp4" -print0 | xargs -0 rm -f
|
||||
|
||||
chown -R icecast2:icecast $ICECAST_DIR
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue