audio from microphone to aac file is not working

Vivia Nikolaidou n.vivia at gmail.com
Wed Aug 31 10:58:34 UTC 2016


Hi,

Raw AAC data cannot be played. You need to either mux it into a
container or convert to ADTS:

gst-launch-1.0 autoaudiosrc ! audioconvert ! voaacenc !
"audio/mpeg,stream-format=adts" ! filesink location=file.aac

In more complicated pipelines, you might want to add an aacparse
element after voaacenc.

On 31 August 2016 at 13:46, pumba <timonoffice100 at gmail.com> wrote:
> I've tried to create an .aac audio file using gstreamer. Here's my code for
> it:
> gst-launch-1.0 autoaudiosrc ! audioconvert ! voaacenc ! filesink
> location=file.aac
>
> It does creates a file with that name, but that file is not playable.
>
> when I replace the voaacenc element with lamemp3enc to create an mp3 file,
> it works.
>
> now, what should I do to create an .aac file from microphone input ?
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/audio-from-microphone-to-aac-file-is-not-working-tp4679315.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list