[英]Gstreamer 1.0: Video from tutorials is not playing on MacOS
I am trying to compile this tutorial Tutorial_01 on my MacOS 10.11.3 with Xcode 7.2 and not getting any video: I can hear an audio but it seems like the video window is lost somewhere. 我正在尝试使用Xcode 7.2在我的MacOS 10.11.3上编译本教程Tutorial_01而没有获得任何视频:我可以听到音频,但似乎视频窗口在某处丢失了。
I tried playing the same media with command line gat-launch-1.0: 我尝试使用命令行gat-launch-1.0播放相同的媒体:
gst-launch-1.0 -v playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm
and it works just fine opening the media in OpenGL Renderer. 它可以很好地打开OpenGL渲染器中的媒体。
Any ideas? 有任何想法吗?
Thanks in advance, Max 提前谢谢,马克斯
Update: Getting this warning while in debug mode: 更新:在调试模式下获取此警告:
0:00:00.314802000 [336m64763[00m 0x7f93e4854a30 [32;01mFIXME [00m [00m videodecoder gstvideodecoder.c:1057:GstFlowReturn gst_video_decoder_drain_out(GstVideoDecoder *, gboolean):<vp8dec0>[00m Sub-class should implement drain()
looks like you need to run Glib event loop on mac. 看起来你需要在mac上运行Glib事件循环。
Define the variable 定义变量
GMainLoop *main_loop;
Then run loop after pipeline creation: 然后在管道创建后运行循环:
main_loop = g_main_loop_new (NULL, FALSE);
g_main_loop_run (main_loop);
Probably you need callback for controlling loop so you can use g_timeout_add
. 可能你需要回调来控制循环,所以你可以使用
g_timeout_add
。
Hope it helps 希望能帮助到你
Update: 更新:
GStreamer Bus - this link should help too GStreamer Bus - 此链接也应该有所帮助
I don't think playbin2
is still a valid source plugin anymore. 我不认为
playbin2
仍然是一个有效的源插件。 It's functionality has been migrated into playbin
(I think). 它的功能已经迁移到
playbin
(我认为)。
But anyway - check the error codes if something is not working. 但无论如何 - 如果某些东西不起作用,请检查错误代码。 They usually give a good readable error of what is wrong.
它们通常会给出错误的可读错误。
gstreamer.com Is not an official resource of the gstreamer project and focuses on the outdated 0.10 release branch. gstreamer.com不是gstreamer项目的官方资源,专注于过时的0.10版本分支。 I recommend looking for examples at http://gstreamer.freedesktop.org .
我建议在http://gstreamer.freedesktop.org上查找示例。 Even the gstreamer.com start page recommends that.
甚至gstreamer.com起始页也建议这样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.