overview
gstreamer是一个支持Windows,Linux,Android, iOS的跨平台的多媒体框架。
本文和后续关于gstreamer的开发环境(只针对ubuntu,其他平台参考官方文档):
ubuntu20.04.1 focal
API
GstBus (gstreamer.freedesktop.org)
安装环境
官方安装教程:Installing on Linux (gstreamer.freedesktop.org)
需要注意的是有一些linux版本安装所需要的环境很麻烦:
ubuntu20.04.1 focal使用对应的阿里云镜像安装是没有问题的。
ubuntu20.04.1 focal对应版本镜像:
ubuntu20.04.1 focal对应版本的镜像源:
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
# deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
安装需要的包
需要root权限。
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
tutorial
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer
(这个仓库访问不稳定建议保存备份)
在文件夹中找到tutorial(这是例程的文件夹)
./subprojects/gst-docs/examples/tutorials/basic-tutorial-1.c
标签:https,GStreamer,aliyun,ubuntu,com,gstreamer1.0,focal From: https://www.cnblogs.com/wdgray/p/17466238.html