【问题标题】:How to record Audio using Microphone in AAC codec format如何使用麦克风以 AAC 编解码器格式录制音频
【发布时间】:2011-07-15 19:51:04
【问题描述】:

如何使用麦克风以 AAC 编解码器格式使用 gstreamer 在 mp4 文件中录制音频?

请回复管道信息。 提前致谢。

【问题讨论】:

    标签: audio audio-streaming gstreamer


    【解决方案1】:

    如果你的默认音源是麦克风,那么你可以试试

    gst-launch autoaudiosrc ! audioconvert ! faac ! mp4mux ! filesink location=aac_audio.mp4
    

    但是,如果您有多个音频源并且麦克风不是默认音频源,那么您必须指定麦克风输入的设备标识符。另外,您需要知道您是否有 ALSA 或 OSS 驱动程序。 我的建议是尝试

    gst-launch alsa-src device=<device identifier for mic input> ! audioconvert ! faac ! mp4mux ! filesink location=aac_audio.mp4
    

    gst-launch oss-src device=<device identifier for mic input> ! audioconvert ! faac ! mp4mux ! filesink location=aac_audio.mp4
    

    取决于您拥有的驱动程序。

    【讨论】:

    • 感谢您的回复。您能告诉我如何检查我拥有的驱动程序和设备名称吗?
    • @oak Bytes 麦克风对应的标识符是什么?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多