gstreamer mfw_mp3encoder does not work

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

gstreamer mfw_mp3encoder does not work

1,156 次查看
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 回复数

782 次查看
LeonardoSandova
Specialist I

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

Leo

0 项奖励
回复

782 次查看
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

782 次查看
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