Last active
February 27, 2018 09:16
-
-
Save tnishinaga/206a393b60591382834e1ad94bd63f19 to your computer and use it in GitHub Desktop.
MP4の動画から音楽部分だけ抜き出すスクリプト
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/bash -x | |
IFS=$'\n' | |
for f in `find . -type f -name "*.mp4"` | |
do | |
basedir=$(dirname "$f") | |
echo $basedir | |
mkdir -p ./music/"$basedir" | |
filename="${f%.mp4}" | |
echo $filename | |
ffmpeg -i "$f" -vn -acodec copy ./music/"$filename".m4a | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment