Last active
August 29, 2015 14:13
-
-
Save ryonakae/81f28a6cee451addeedb to your computer and use it in GitHub Desktop.
MKVファイルをMP4ファイルに変換(動画はコピー、音声はAACに変換)
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 | |
| DIRPATH=$1 | |
| for FILE in ${DIRPATH}*.mkv | |
| do | |
| # AAC | |
| # ffmpeg -y -i "${FILE}" -vcodec copy -acodec aac -strict experimental -ab 320k "${FILE%.mkv}.mp4" | |
| # Stream Mapping | |
| ffmpeg -y -i "${FILE}" -vcodec copy -acodec aac -strict experimental -ab 320k -map 0:0 -metadata:s:v:0 language=jpn -map 0:1 -metadata:s:a:1 language=jpn "${FILE%.mkv}.mp4" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment