PDA

View Full Version : Encoding Audioinput



nwz
27th June 2012, 17:47
Hey guys,

I'm new to Qt and have some questions about my first serious program. I am using VS2008 with Qt 4.6.3.

Until now i have modified the audioinput example and am able to save and play *.raw-Audiofiles. Everything works fine so far, but now i would like to encode incoming data from my mic and save it as e.g. *.mp3 in realtime. I do not want to take a previously saved *.raw-file and encode that one. I want to encode the input directly.
For encoding files i would try to use ffmpeg, but how can i handle an inputstream? If possible i would like to work with ffmpeg.

I have also seen the Qt5.0-doc, which explains the QMediaRecorder. Could that help me?

Thanks in advance,
regards
nwz

sonulohani
29th June 2012, 13:28
See this example---> http://doc.qt.nokia.com/qtmobility/audiorecorder.html

nwz
2nd July 2012, 17:26
Hey,

Thanks for that, i have also found that link. I would really like to try it, but i fail installing QtMobility.

I explained my problem in a new thread, because i think its not related to encoding audio anymore:
http://www.qtcentre.org/threads/49730-Problems-with-installing-Qt-Mobility-1-2?p=223368&highlight=#post223368

Can you help me?

nwz
9th July 2012, 17:28
See this example---> http://doc.qt.nokia.com/qtmobility/audiorecorder.html

I finally got it running. How can i add *.mp3 codecs to it? The only codecs i can chose is: audio/pcm