gpt4 book ai didi

audio - 是否可以在不重新编码的情况下将立体声合并/缩混为单声道(m4a 或 opus)

转载 作者:行者123 更新时间:2023-12-04 23:10:34 25 4
gpt4 key购买 nike

我需要将立体声转换为 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com