[英]Gstreamer audio input to mp3
I am trying to create a simple program using Gstreamer
to take the input from a microphone and save it to a mp3 file. 我正在尝试使用
Gstreamer
创建一个简单的程序,以从麦克风获取输入并将其保存到mp3文件中。 I keep getting 我不断
Internal data flow error
内部数据流错误
and can´t seem to find the problem(I am new to Gstreamer
). 似乎找不到问题(我是
Gstreamer
)。 Here is a link to my code: 这是我的代码的链接:
Your code is not handling return codes from the functions. 您的代码未处理函数的返回代码。 As a result your in the dark when it fails.
结果,当您失败时,您将陷入困境。 Anyway in your code you forgot to link the elements.
无论如何,您在代码中都忘记了链接元素。 Right after line 70, also do gst_element_link_many(....);
在第70行之后,也执行gst_element_link_many(....);
Traditionally, the GStreamer package doesn't include support for MP3 . 传统上, GStreamer软件包不包含对MP3的支持 。 However, you can go after codecs and plugins to make it support.
但是,您可以使用编解码器和插件来使其支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.