Last active
December 20, 2015 14:28
-
-
Save mattintosh4/b2b206060d62a42b42f4 to your computer and use it in GitHub Desktop.
カラオケメーカー by VLC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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