Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个简单的程序,Gstreamer用于从麦克风获取输入并将其保存到 mp3 文件中。我不断得到
Gstreamer
内部数据流错误
并且似乎找不到问题(我是新手Gstreamer)。这是我的代码的链接:
http://pastebin.com/QDexe8Fz
您的代码未处理函数的返回代码。结果,当它失败时,你就在黑暗中。无论如何,在您的代码中,您忘记链接元素。在第 70 行之后,也执行 gst_element_link_many(....);
传统上,GStreamer 包不包括对 MP3 的支持。但是,您可以使用编解码器和插件来支持它。