My platform is Yocto Linux 2.0.50 4.0.0 on wandboard iMX6 solo.
I can use alsa util -- arecord -- to capture a raw wav clip from mic input. But I want to get MP3 or AAC audio to work.
I tried this gstreamer pipeline:
gst-launch alsasrc ! queue ! audioconvert ! queue ! mfw_mp3encoder ! filesink location=test.mp3
I appreciate any help, gstreamer or some standalone recording program to capture AAC or MP3 audio.
Also I wonder if there is an AAC encoder? MP3 or AAC, Which is more efficient in size and CPU needs?
Many thanks,
Norman
What is the error you are getting? ENable debug log so you get this info (--gst-debug=*:2)
Leo
Thank you Leo.
I tried play around with the pipeline and got it to work. I think removing the queue before encoder, not sure why.
This pipeline works for me:
gst-launch alsasrc num-buffers=120 blocksize=44100 ! mfw_mp3encoder ! filesink location=audioTest.mp
Thanks again
Norman
Each queue element holds some buffers, so it may be the case that the encoder run out of buffers. Queue elements are usually used after demuxers, in this case there are two outputs (audio and video), so each queue will process certain data.
Leo