ffmpegはオーディオをビデオとマージし、音量を下げます
オーディオmp3ファイルとビデオmp4ファイルをマージしようとしています。ビデオクリップのバックグラウンドミュージックになるように、オーディオファイルの音量を少し下げる必要があります。 これは私のコードがどのように見えるかです(2つのmp3をマージする以前のコードから適応しようとしました)- ffmpeg \ -i output.mp4 \ -i music.mp3 \ -filter_complex "[0:a]volume=0.15[A];[1:a][A]amerge[out]" \ -map [out] -y output-final.mp4 2>&1 編集 amergeでfilter_complexを使用してmp4ビデオをエンコードすると、iphoneに問題があるようです。 コンソール出力- ffmpeg version N-90767-g768c077-syslint Copyright (c) 2000-2018 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16) configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvorbis …