Commit fae4c018 authored by Colomban Wendling's avatar Colomban Wendling

Automatically select ffmpeg or avconv depending on availability

parent 6e5d4677
......@@ -17,7 +17,19 @@
# limitations under the License.
#
FFMPEG=avconv
select_program() {
for p in "$@"; do
if type "$p" >/dev/null 2>&1; then
echo "$p"
return
fi
done
# fall back on the first choice
echo "$1"
}
FFMPEG=$(select_program ffmpeg avconv)
QUALITY=5
TITLE="Convertir en MP3"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment