2016-07-25 125 views
0

我不是在Linux下編程專業,但我有處理編程語言的一個問題:處理編程語言:進口聲音和視頻文件

有2個媒體文件(音頻和視頻),我想將它們導入程序中。我的嘗試是:

terminate called after throwing an instance of 'std::runtime_error' what(): RtApiAlsa::probeDeviceOpen: pcm device (hw:0,3) won't open for input. Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help → Troubleshooting.

當我添加的電影對象,問題是在運行時根據存在的:

imports processing.sound.*; 
    imports processing.video.*; 

void setup(){ 
SoundFile soundFile = new SoundFile(this, "soundfile.mp3"); 
Movie videoFile = new Movie(this, "videofile.mp4"); 
} 

當我添加了音效檔的對象,問題是在運行時根據存在的

UnsatisfiedLinkError: Error looking up function 'gst_date_get_type': /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.800.0: undefined symbol: gst_date_get_type A library relies on native code that's not available. Or only works properly when the sketch is run as a 32-bit application.

我的問題是:如何解決這些問題?

謝謝你的回答! W.

+0

您正在使用哪種版本的Processing? –

+0

該版本是:3.1.1 –

回答

0

谷歌搜索你的第一個錯誤使我此相關的問題:How can I solve a conflict between openFrameworks and other audio applications?

顯然是錯誤由具有兩個聲卡你造成的,處理試圖打開錯誤的。 (更準確地說,系統默認設置是錯誤的。)要解決此問題,您必須將您的默認聲卡重新分配到正確的聲卡。

您的第二個錯誤是由本機庫未正確加載或加載不正確的本機庫引起的。您可能需要確保本機庫與您的Linux版本兼容。

更廣泛地說,這些錯誤並不是特定於Processing的。他們似乎更關心Linux安裝。所以你可能有更好的運氣在linux標籤中提問。