QT5 GUI开发

【QT5实战1】安装gstreamer

2020-04-05  本文已影响0人  小桥流水啦啦啦
1、Install GStreamer on Ubuntu
apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio git 
确认gstreamer安装OK
which gst-launch-1.0
/usr/bin/gst-launch-1.0
2、Building applications using GStreamer
pkg-config --cflags --libs gstreamer-1.0
3、Getting the tutorial's source code
git clone https://gitlab.freedesktop.org/gstreamer/gst-docs
4、Building the tutorials
gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0`
5、Running the tutorials
./basic-tutorial-1
6、执行./basic-tutorial-1出现问题
root@d5d96ff4d776:/home/gst-docs/examples/tutorials# ./basic-tutorial-1
error: XDG_RUNTIME_DIR not set in the environment.
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory

问题原因:(待查)

处理方法:(待解决)

7、参考文档

https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c

上一篇下一篇

猜你喜欢

热点阅读