将 5.1 AC3 混合为立体声 WAV?

将 5.1 AC3 混合为立体声 WAV?

我想知道我是否可以将 5.1 AC3 文件混合为立体声 WAV 文件,即 6 声道 > 2 声道。我想知道如何使用 ffmpeg(或 avconv,因为它说 ffmpeg 已弃用)通过终端执行此操作。

答案1

来自man avconv“音频选项”部分:

-ac[:stream_specifier] channels (input/output,per-stream)
           Set the number of audio channels. For output streams it is set by
           default to the number of input audio channels. For input streams
           this option only makes sense for audio grabbing devices and raw
           demuxers and is mapped to the corresponding demuxer options.

因此你的基本命令行将是:

avconv -i <input file> -ac 2 <output file>.wav

您还可以使用 AC3 解码器的混音设置,即您可以配置的选项如何5.1 的 6 个声道将合并(下混)为 2 个立体声。检查手册部分下的选项-dmix_mode系列-*mixlev*Audio Encoders / ac3

答案2

我不知道 avconv 是否支持 Dolby Pro Logic II,但 ffmpeg 支持。我使用以下命令:

IFL=input.ac3
OFL=output.ogg
/usr/bin/ffmpeg -i "$IFL" \
   -codec:a libvorbis -qscale:a 6 \
   -ac 2 -af "aresample=matrix_encoding=dplii" \
   "$OFL"

这个问题是关于 WAV 的。请参阅ffmpeg 文档关于如何使用 wavpack 代替 libvorbis。

相关内容