- 1、本文档共64页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
构建gstreamer开发环境
构建 gstreamer 开发环境
GStreamer is a pipeline based multimedia framework written in the C programming language with the type
system based on GObject. GStreamer allows you to create a variety of media-handling components,
including simple audio playback, audio and video playback, recording, streaming, and editing. The
pipeline design serves as a base to create many types of multimedia applications such as video
editors, streaming media broadcasters, and media players.
所有操作的前提是你已经配置好了 GCC 开发环境, gstreamer 是一个开源多媒体框架,可以很容易的
开发多媒体程序.
在 UBUNTU 中构建 gstreamer 开发环境非常简单 ,使用下面命令安装 gstreamer 这样就可以了.
$sudo apt-get install gstreamer0.10-tools gstreamer0.10-x gstreamer0.10-plugins-base \
streamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad \
gstreamer0.10-ffmpeg gstreamer0.10-schroedinger gstreamer0.10-pulseaudio \
gstreamer0.10-alsa
只是编译是要注意下,需要借助 pkg-config
下面是段测试代码:
/////////////////////////mu.c///////////////////////////////
#include gst/gst.h
int main (int argc,char *argv[])
{
const gchar *nano_str;
guint major, minor, micro, nano;
gst_init (argc, argv);
gst_version (major, minor, micro, nano);
if (nano == 1)
nano_str = (CVS);
else if (nano == 2)
nano_str = (Prerelease);
else
nano_str = ;
printf (This program is linked against GStreamer %d.%d.%d %s\n,
major, minor, micro, nano_str);
return 0;
}
编译命令:
l@l-desktop:~/workspace/gstmu$gcc -Wall mu.c `pkg-config gstreamer-0.10 --cflags --libs`
l@l-desktop:~/workspace/gstmu$ ls
a.out mu.c
l@l-desktop:~/workspace/gstmu$ ./a.out
This program is linked against GStreamer 0.10.21
成功则输出 :This program is linked against GStreamer 0.10.21
这里是 Application Development Manual
/data/doc/gstreamer/head/manual/html/index.html
1
从这里可以得到更多资料
We have a website at
/
文档评论(0)