-
-
Save qunwang6/ca41ce416407d51fa92f to your computer and use it in GitHub Desktop.
This file contains 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 | |
# == References | |
# | |
# * OSXでMP4動画からAAC音声抽出 | |
# http://d.hatena.ne.jp/ikki_j/20080304/1204629353 | |
# > H.264+AACなMP4動画から再コンパイルなしでAAC音声のみを抽出する方法。 | |
# | |
# * EvalVid - A Video Quality Evaluation Tool-set Pre-compiled binaries (static) | |
# http://www2.tkn.tu-berlin.de/research/evalvid/fw.html#bin | |
# | |
# == Requirements | |
# | |
# * ffmpeg | |
# * MP4Box | |
for filename in *.mp4; do | |
basename=${filename%.mp4} | |
ffmpeg -i "$filename" -vn -acodec copy "$basename.aac" | |
MP4Box -add "$basename.aac" "$basename.m4a" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment