How to record Audio using Microphone in AAC codec format
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.
精彩评论