阅读背景:

【gstreamer】最简单的使用Gstreamer播放视频文件的代码_Hello,C++!的博客

来源:互联网 

播放mp4文件

extern "C"
{
	#include <gst/gst.h>
}

gint main(int argc, char *argv[])
{
	gst_init(&argc, &argv);
	GstElement * pipeline0 = gst_parse_launch("filesrc location = e:/silent_sheep.mp4 ! qtdemux ! queue ! decodebin ! autovideosink", NULL);
	gst_element_set_state(pipeline0, GST_STATE_PLAYING);
	g_main_loop_run(g_main_loop_new(NULL, FALSE));
	return 0;
}

extern "C"
{
	#include <gst/gs



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: