【问题标题】:FFMPEG: Stream microphone with 32 channels via RTPFFMPEG:通过 RTP 的 32 通道流式麦克风
【发布时间】:2020-12-13 04:36:08
【问题描述】:

我想通过带有 ffmpeg 的 RTP 将具有 32 个通道(音频接口/混音器)的麦克风作为单声道音频流式传输。

目前我正在使用这个:

ffmpeg -f avfoundation -v info -i ":${DEVICE}" -map "0:a:0" \
-acodec libopus -ab 48k -ac 1 -ar 48000 \
-f tee "[select=a:f=rtp:ssrc=1111:payload_type=100]rtp://0.0.0.0:49386?rtcpport=59871"

我得到的设备有:

ffmpeg -list_devices true -f avfoundation -i ""

它适用于具有正常通道数的设备。但是对于具有 32 个通道的设备,我收到以下错误:

[auto_resampler_0 @ 0x7fc6f7d1d340] [SWR @ 0x7fc6fa4f8000] Rematrix is needed between 64 channels and mono but there is not enough information to do it
[auto_resampler_0 @ 0x7fc6f7d1d340] Failed to configure output pad on auto_resampler_0

在尝试使用通道映射后,我认为错误从 9 个或更多通道开始。是否可以将 32 个通道与 ffmpeg 合并并通过 RTP 将麦克风作为单声道发送?

【问题讨论】:

  • Signal Processing 上的读者群更有可能遇到此类问题。交叉发帖是不受欢迎的,所以在那里做一些探索,如果它看起来很合适,在那里发帖并删除它。祝你好运。

标签: bash ffmpeg merge channels


【解决方案1】:

我自己找到了解决方案。您可以使用 ffmpeg 中的 pan 过滤器,例如:

-filter_complex "pan=1c|c0=c1+c2+c3+..."

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-07-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-12
    • 2014-04-27
    • 1970-01-01
    • 2015-12-24
    相关资源
    最近更新 更多