LoginSignup
0
0

More than 1 year has passed since last update.

Docker ffmpeg wav to m4a

Last updated at Posted at 2022-09-06

Docker for desktop 起動
コマンドプロンプト起動

イメージ所得
docker pull jrottenberg/ffmpeg:3.3-alpine
wav2m4a.sh
# UTF-8 改行コードLF で保存
# ↓ドライブ名は必ず小文字にする
INPUT_PATH=f/NHK-FM/
OUTPUT_PATH=f/NHK-FM/

FILE_NAME="名演奏 ピエール・ブーレーズの名指揮"

INPUT_FILE="${FILE_NAME}.wav"
OUTPUT_FILE="${FILE_NAME}_2.m4a"
OPTION=" -acodec libfdk_aac -profile:a aac_he_v2 -ab 48k -ar 48000 -ac 2 "

# コマンド終了時にコンテナを削除、ドライブのマウント、コーデック等
docker run --rm -v ${INPUT_PATH}:/input -v ${OUTPUT_PATH}:/output jrottenberg/ffmpeg:3.3-alpine -i "input/${INPUT_FILE}" ${OPTION} "output/${OUTPUT_FILE}"
実行
sh wav2m4a.sh
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0