开发者

How to record Audio using Microphone in AAC codec format

开发者 https://www.devze.com 2023-03-20 20:44 出处:网络
How to record Audio using Micro开发者_运维问答phone in AAC codec format in mp4 file using gstreamer ?

How to record Audio using Micro开发者_运维问答phone in AAC codec format in mp4 file using gstreamer ?

Please reply with pipeline info. Thanks in advance.


If your default audio source is Microphone, then you can try

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

However if you have multiple audio sources and mic is not default audio source, then you have to specify device identifier of the mic input. Plus you need to know whether you have ALSA or OSS driver. My suggestion would be to try

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

or

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

depending on which driver you have.

0

精彩评论

暂无评论...
验证码 换一张
取 消