gpt4 book ai didi

windows - ffmpeg "filtergraph join"使用 channel 副本并保留输入 channel 配置(格式 - s32_le)

转载 作者:行者123 更新时间:2023-12-02 23:26:54 25 4
gpt4 key购买 nike

我正在使用的命令如下,使用该命令我得到 8 channel output.wav。

ffmpeg.exe    -i one.wav -i two.wav -i three.wav -i four.wav \
-i five.wav -i six.wav -i seven.wav -i eight.wav \
-filter_complex '[0:0][1:0][2:0][3:0][4:0][5:0][6:0] \
[7:0]join=8:channel_layout=octagonal' output.wav

所有输入文件 one.wav、two.wav 等等 8.wav 都是 32khz、s32le 和一个 channel 。但是,生成的输出是 output.wav,它是 s16le,32khz。

我可以使用以下命令输出 s32le,
ffmpeg.exe -i one.wav -i two.wav -i three.wav -i four.wav \
-i five.wav -i six.wav -i seven.wav -i eight.wav \
-filter_complex '[0:0][1:0][2:0][3:0][4:0][5:0][6:0] \
[7:0]join=8:channel_layout=octagonal' -acodec pcm_s32le output.wav

但是,上面的命令似乎是从 s16_le 到 s32_le 的转换(即 one.wav 与 output.wav 第一个 channel 完全不匹配)。但是我想要的是直接从输入 channel 复制数据,因为所有输入文件的音频格式与输出文件 channel 的预期音频格式(output.wav)相同

有没有办法在 pcm_s32le 指示 filter_graph todo 处理?

这是日志级别设置为调试的日志链接,
https://pastebin.com/ms4x1fLz
MediaInfo.exe one.wav
General
Complete name : one.wav
Format : Wave
File size : 6.50 MiB
Duration : 53 s 280 ms
Overall bit rate mode : Constant
Overall bit rate : 1 024 kb/s

Audio
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 53 s 280 ms
Bit rate mode : Constant
Bit rate : 1 024 kb/s
Channel(s) : 1 channel
Sampling rate : 32.0 kHz
Bit depth : 32 bits
Stream size : 6.50 MiB (100%)

最佳答案

我相信您通过使用 Audacity 进行比较得出了错误的结论。使用 -acodec pcm_s32le 的命令应该没有 s16 转换.您可以通过添加 -loglevel debug 来查看根据您的命令并引用 auto_resampler日志中的行。

输入和输出应该匹配。使用 hash muxer验证:

ffmpeg -loglevel error -i one.wav -c:a copy -f hash -
SHA256=e56af84aea634ba4686348a90b657e1536610bf977b3604a9eb5b2901ccdeea3

ffmpeg -loglevel error -i output.wav -af "channelsplit=channel_layout=octagonal:channels=FL" -c:a pcm_s32le -f hash -
SHA256=e56af84aea634ba4686348a90b657e1536610bf977b3604a9eb5b2901ccdeea3

关于windows - ffmpeg "filtergraph join"使用 channel 副本并保留输入 channel 配置(格式 - s32_le),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61448475/

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