我需要将立体声转换为 m4a 和 opus 扩展名的单声道文件。
ffmpeg -i input.m4a -ac 1 output.m4a :这会起作用,但会重新编码并改变比特率......有没有办法在不重新编码(无松散)的情况下合并或将 channel 提取到单独的文件中?
最佳答案
我相信你可以使用channelsplit
筛选:
ffmpeg -i stereo.m4a -filter_complex "[0:a]channelsplit=channel_layout=stereo[left][right]" -map "[left]" left.m4a -map "[right]" right.m4a
如:https://trac.ffmpeg.org/wiki/AudioChannelManipulation 中所述您也可以使用此处描述的平移过滤器:https://superuser.com/questions/601972/ffmpeg-isolate-one-audio-channel
这是一个旧帖子,但仍然使用泛过滤器。
过滤器应该只过滤掉流,而不是重新编码。
关于audio - 是否可以在不重新编码的情况下将立体声合并/缩混为单声道(m4a 或 opus),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69982740/