gstreamer mfw_mp3encoder does not work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gstreamer mfw_mp3encoder does not work

889 Views
normancheung
Contributor III

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

3 Replies

515 Views
LeonardoSandova
Specialist I

What is the error you are getting? ENable debug log so you get this info (--gst-debug=*:2)

Leo

0 Kudos

515 Views
normancheung
Contributor III

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

515 Views
LeonardoSandova
Specialist I

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