簡體   English   中英

錯誤:無法構造管道:沒有元素“ audiotestsrc”

[英]ERROR: pipeline could not be constructed: no element “audiotestsrc”

我正在嘗試在ubuntu 16.04上使用Gstreamer庫(gstreamer1.0-libav)用C編寫一個簡單的音頻流應用程序。 我正在使用簡單的“ gst-launch audiotestsrc!alsasink”命令測試gstreamer1.0-tools,但是每次運行此命令時,都會收到以下錯誤:無法構造管道:沒有元素“ audiotestsrc”。 我嘗試在不同的路徑位置(例如usr / bin /,usr / local / lib /等)上運行命令,但似乎無法弄清楚Ubuntu在哪里安裝了Gstreamer二進制文件來運行這些命令。 另外,由於缺乏Linux經驗,我假設問題是我沒有在正確的目錄上運行此命令。 我正在遵循此指南: https : //gstreamer.freedesktop.org/documentation/tutorials/basic/gstreamer-tools.html# 有人可以闡明這件事嗎? 任何幫助表示贊賞。 謝謝。

找到了解決方法,盡管我仍然不確定這是否是解決方法。 經過更多研究,我發現了這個很棒的資源http://labs.isee.biz/index.php/Example_GStreamer_Pipelines 我將“ gst-launch audiotestsrc!alsasink”替換為“ gst-launch-0.10 audiotestsrc!alsasink”,從而達到了目的。 問題出在gst-launch命令的版本上。 希望這可以幫助任何人。 為了清晰起見,任何其他評論都受到歡迎。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM