1.首先搭建 Gstreamer 所需环境
(1).先安装Gstreamer所需的程序包:
1 sudo apt-get update 2 sudo apt-get install -y bison flex libffi-dev libmount-dev libpcre3 libpcre3-dev zlib1g-dev libssl-dev gtk-doc-tools
(2).安装 ORC 支持库,编译 gst-plugins-base 将会依赖这个库
下载安装包地址:
https://gstreamer.freedesktop.org/src/orc/orc-0.4.27.tar.xz
运行以下命令进行解压缩和编译安装:
1 $tar xvJf orc-0.4.27.tar.xz 2 $cd orc-0.4.27 3 $./autogen.sh --prefix=/usr/lib 4 $make -j6 5 $sudo make install
(3).安装 GLIB 支持库
下载安装包地址:
http://ftp.acc.umu.se/pub/GNOME/sources/glib/2.52/glib-2.52.3.tar.xz
运行以下命令进行解压缩和编译安装:
1 $tar xvJf glib-2.52.3.tar.xz 2 $cd glib-2.52.3 3 $./autogen.sh 4 $make -j6 5 $sudo make install
2.安装 Gstreamer 1.12.2 相关软件包(适用于其他版本)
(1).下载以下几个软件源码包:(地址:https://gstreamer.freedesktop.org/src/)
1 gstreamer-1.12.2 2 gst-plugins-base-1.12.2 3 gst-plugins-good-1.12.2 4 gst-plugins-bad-1.12.2 5 gst-plugins-ugly-1.12.2 6 gst-rtsp-server-1.12.2
(2).编译安装gstreamer-1.12.2
1 $tar xvJf gstreamer-1.12.2.tar.xz 2 $cd gstreamer-1.12.2 3 $ ./configure 4 $make -j6 5 $sudo make install
(3).编译安装gst-plugins-base-1.12.2
1 $tar xvJf gst-plugins-base-1.12.2.tar.xz 2 $cd gst-plugins-base-1.12.2 3 $ ./configure 4 $make -j6 5 $sudo make install
原文地址:https://www.cnblogs.com/sxgloverr1314/p/10541491.html
时间: 2024-10-06 00:53:57