MKVファイルをMP4ファイルに変換(動画はコピー、音声はAACに変換)
#!/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