#include <gst/gst.h>
int main(int argc, char *argv[])
{
GstElement *pipeline;
GstBus *bus;
GstMessage *msg;
/* Initialize GStreamer */
gst_init (&argc, &argv);
/* Build the pipeline */
pipeline = gst_parse_launch ("playbin uri=rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov", NULL);
printf("pip = %d\n",pipeline);
/* Start playing */
gst_element_set_state (pipeline, GST_STATE_PLAYING);
/* Wait until error or EOS */
bus = gst_element_get_bus (pipeline);
msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, GST_MESSAGE_ERROR | GST_MESSAGE_EOS);
/* Free resources */
if (msg != NULL)
gst_message_unref (msg);
gst_object_unref (bus);
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (pipeline);
return 0;
}
没有合适的资源?快使用搜索试试~ 我知道了~
gsteamer.tar.gz
4星 · 超过85%的资源 需积分: 50 187 下载量 53 浏览量
2020-04-01
10:07:52
上传
评论 7
收藏 14.62MB GZ 举报
温馨提示
共29个文件
h:4个
o:3个
cpp:3个
再Ubuntu linux 环境下做一个Qt + Gstreamer 的视频播放的小dome ,实现视频格式:webm 播放
资源推荐
资源详情
资源评论
收起资源包目录
gsteamer.tar.gz (29个子文件)
gsteamer
evn.sh 180B
movieframe.h 66B
log 15KB
text 9KB
cat.cap 114B
0126.pro.user 14KB
moc_mainwindow.cpp 5KB
moc_mainwindow.o 687KB
rtso.cap 1016KB
test.c 808B
0126.pro 809B
.qmake.stash 739B
mk.sh 28B
moc_predefs.h 13KB
README 639B
ui_mainwindow.h 7KB
mainwindow.o 617KB
main.cpp 10KB
mainwindow.ui 6KB
0126.pro.user.1ff4552 14KB
mainwindow.cpp 2KB
mainwindow.h 1024B
0126 933KB
Makefile 66KB
vorbis_vp8.1.webm 347KB
MVI_4864-small.webm 12.5MB
main.o 886KB
0126.pro.user.24107dc.3.3-pre1 62KB
0126.pro.user.50252d2 23KB
共 29 条
- 1
资源评论
- wo3207212020-11-04我自己没用起来
- 纯中一郎2021-10-14没用起来,运行报错 ./0126 MVI_4864-small.webm *** buffer overflow detected ***: ./0126 terminated Aborted (core dumped)
- 山川大海2023-10-13main.cpp 中138行定义的数组需要分配大一点的空间才能运行起来
- fanhongjun20042021-09-28垃圾资源,浪费积分
月上柳青
- 粉丝: 41
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功