瀏覽代碼

icecast format conversions

Bob Mottram 7 年之前
父節點
當前提交
a19a8df2ff
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/freedombone-app-icecast

+ 2
- 2
src/freedombone-app-icecast 查看文件

122
     cd ${1}
122
     cd ${1}
123
 
123
 
124
     echo $'Converting any mp3 files to ogg format'
124
     echo $'Converting any mp3 files to ogg format'
125
-    find . -type f -name '*.mp3' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${f/%mp3/ogg}' '{}' \;
125
+    find . -type f -name '*.mp3' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${0/%mp3/ogg}"' '{}' \;
126
 
126
 
127
     echo $'Converting any mp4 files to ogv format'
127
     echo $'Converting any mp4 files to ogv format'
128
-    find . -type f -name '*.mp4' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${f/%mp4/ogv}' '{}' \;
128
+    find . -type f -name '*.mp4' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${0/%mp3/ogv}"' '{}' \;
129
 
129
 
130
     chown -R icecast2:icecast $ICECAST_DIR
130
     chown -R icecast2:icecast $ICECAST_DIR
131
 }
131
 }