Ubuntu14.04编译安装GStreamer

本文提供了一份详细的指南,指导如何从源码编译安装 GStreamer 1.6.0 及其相关插件。包括准备必要的依赖包、配置编译参数、编译核心库及各种插件等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转载自:https://blog.youkuaiyun.com/yibinqi6303/article/details/78984007

1.Download the latest version of gstreamer available at:
http://gstreamer.freedesktop.org/src/
The following are the files you need from version 1.6.0:
● gstreamer-1.6.0.tar.xz
● gst-plugins-base-1.6.0.tar.xz
● gst-plugins-good-1.6.0.tar.xz
● gst-plugins-bad-1.6.0.tar.xz
● gst-plugins-ugly-1.6.0.tar.xz

2.Install needed packages with the following command:

sudo apt-get install build-essential dpkg-dev flex bison autotools-
dev automake liborc-dev autopoint libtool gtk-doc-tools
libgstreamer1.0-dev

3.编译gstreamer-1.6.0

../configure –prefix=/home/ubuntu/gst_1.6.0/out
make
make install

4.
Set the PKG_CONFIG_PATH with the following command:
export PKG_CONFIG_PATH=/home/ubuntu/gst_1.6.0/out/lib/pkgconfig

5.Build gst-plugins-base-1.6.0 with the following commands

sudo apt-get install libxv-dev libasound2-dev libtheora-dev libogg-
dev libvorbis-dev
./configure –prefix=/home/ubuntu/gst_1.6.0/out
make
make install

6.Build gst-plugins-good-1.6.0 with the following commands:

sudo apt-get install libbz2-dev libv4l-dev libvpx-dev libjack-
jackd2-dev libsoup2.4-dev libpulse-dev
./configure –prefix=/home/ubuntu/gst_1.6.0/out
make
make install

7.Obtain and build gst-plugins-bad-1.6.0 with the following commands:

sudo apt-get install faad libfaad-dev libfaac-dev
./configure –prefix=/home/ubuntu/gst_1.6.0/out
make
make install

8.Obtain and build gst-plugins-ugly-1.6.0 with the following commands:

sudo apt-get install libx264-dev libmad0-dev
./configure –prefix=/home/ubuntu/gst_1.6.0/out
make
make install

9.
Set the LD_LIBRARY_PATH environment variable with the following command:
export LD_LIBRARY_PATH=/home/ubuntu/gst_1.6.0/out/lib/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值