Created
January 13, 2012 05:12
-
-
Save mh61503891/1604787 to your computer and use it in GitHub Desktop.
OSXでMP4動画からAAC音声抽出するShellスクリプト
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