我不是在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.
您正在使用哪種版本的Processing? –
該版本是:3.1.1 –