Skip to content

Instantly share code, notes, and snippets.

@mattintosh4
Last active December 20, 2015 14:28
Show Gist options
  • Save mattintosh4/b2b206060d62a42b42f4 to your computer and use it in GitHub Desktop.
Save mattintosh4/b2b206060d62a42b42f4 to your computer and use it in GitHub Desktop.
カラオケメーカー by VLC
#!/bin/sh
set -e
set -x
case ${VLC} in
"")
VLC=`which vlc`
;;
esac
test -x "${VLC}"
for f
do
test -f "${f}" || continue
case ${f##*/} in
*.?|*.??|*.???|*.????) out=${f%.*};;
*) out=${f};;
esac
out=${out}_karaoke.wav
"${VLC}" -I dummy "${f}" \
--sout-transcode-acodec=s16l \
--sout-transcode-afilter=karaoke \
--sout-standard-access=file \
--sout-standard-mux=wav \
--sout-standard-dst="${out}" \
--sout=#transcode:std \
vlc://quit
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment