gstreamer

如何在基于 Ubuntu 或 Debian 的 Linux 发行版中查看一个软件包的依赖

北战南征 提交于 2021-01-07 10:50:51
在 Ubuntu 或 Debian 中通过命令行来安装应用是一件很简单的事,你只需要执行 apt install package_name 就可以了。 但如果你想在安装一个软件包之前或之后知晓这个软件包的依赖,那该怎么办呢? 在本教程中,我将向你展示多种方法来在 Ubuntu 或其他使用 APT 包管理器 的 Debian 系 Linux 发行版中查看一个软件包的依赖。 什么是 Ubuntu 中的包依赖? 当你在 Linux 中安装一个软件包,有时这个软件包还需要其他的软件包来使它工作正常。这些额外的软件包就叫作这个包的依赖。假如这些软件包之前没有在系统中被安装,那么这些依赖在安装这个软件包的同时会被自动安装上。 举个例子,用来转换视频格式的 GUI 工具 HandBrake 需要 FFmpeg 、 GStreamer 软件包。所以对于 HandBrake 来说, FFmpeg 和 GStreamer 就是它的包依赖。 假如在你的系统上这些软件包没有被安装,则当你 在 Ubuntu 上安装 HandBrake 时,就会自动安装上它们。 在 Ubuntu 和基于 Debian 的发行版中查看一个软件包的依赖 正如在 Linux 上经常发生的那样,有多种方法来达到相同的目标。下面让我们一起瞧瞧查看一个软件包依赖的多种方法。 使用 apt show 来查看依赖 你可以使用 apt

Does gstreamer gst-rtsp-server accept udpsrc (RTP)?

馋奶兔 提交于 2021-01-07 06:31:24
问题 I want to input an RTP stream into a gstreamer gst-rtsp-server. For initial tests I use the test-launch.c example from github (version 1.14). When I compile it and use it, it works well with the default example it works as expected and I can see a stream (for example using vlc player) at rtsp://127.0.0.1:8554/test: ./test-launch "( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )" But if I provide an RTP udp stream using gst-launch-1.0 videotestsrc ! video/x-raw,width=1280,height=720 !

GstMultifilesink post-messages callback

家住魔仙堡 提交于 2021-01-02 16:35:14
问题 I would like to know how to get a callback from the gstreamer multifilesink element using post-messages=TRUE property? In the code below my_bus_callback function is never called. Multifilesink docs say: If the "post-messages" property is TRUE, it sends an application message named "GstMultiFileSink" after writing each buffer. http://www.freedesktop.org/software/gstreamer-sdk/data/docs/2012.5/gst-plugins-good-plugins-0.10/gst-plugins-good-plugins-multifilesink.html#GstMultiFileSink--post

GstMultifilesink post-messages callback

南楼画角 提交于 2021-01-02 16:31:02
问题 I would like to know how to get a callback from the gstreamer multifilesink element using post-messages=TRUE property? In the code below my_bus_callback function is never called. Multifilesink docs say: If the "post-messages" property is TRUE, it sends an application message named "GstMultiFileSink" after writing each buffer. http://www.freedesktop.org/software/gstreamer-sdk/data/docs/2012.5/gst-plugins-good-plugins-0.10/gst-plugins-good-plugins-multifilesink.html#GstMultiFileSink--post

How do I properly install PyGObject? (OSX)

為{幸葍}努か 提交于 2021-01-01 07:35:09
问题 I want to run existing simple examples and write some simple code using GStreamer - specifically, using its Python bindings. I want to install the packages etc to enable that. Here's an example. http://brettviren.github.io/pygst-tutorial-org/pygst-tutorial.html import gi gi.require_version('Gst', '1.0') from gi.repository import Gst Gst.init(None) # ... my_playbin = Gst.ElementFactory.make("playbin", None) assert my_playbin print my_playbin I can't get PyGObject to work, so I'm stuck right at

hls generated with gst (ts m3u8) not playing on safari (but working on chrome)

混江龙づ霸主 提交于 2020-12-15 05:34:42
问题 i'm trying to use gst to generate an hls video from frames within an existing pipeline. once i get the frame as a numpy array i use the following to create the ts and m3u8 file : appsrc emit-signals=True do-timestamp=true is-live=True caps={DEFAULT_CAPS}".format(**locals()) ! "queue" ! "videoconvert" ! "x264enc" ! "mpegtsmux" ! f"hlssink location={playlist}.%04d.ts " ! f"playlist-location={playlist}.m3u8"]) where default caps = "video/x-raw,format={VIDEO_FORMAT},width={WIDTH},height={HEIGHT}

Gstreamer end of stream

ぃ、小莉子 提交于 2020-12-15 03:51:46
问题 I have two streams. Video and audio. One of them can be empty, i.e. end-of-stream at start. But 0:00:10.147044434 51257 0x563c0d51b060 FIXME basesink gstbasesink.c:3384:gst_base_sink_default_event:<fsink> stream-start event without group-id. Consider implementing group-id handling in the upstream elements 0:00:10.147150353 51257 0x563c0d51b060 WARN qtmux gstqtmux.c:3076:gst_qt_mux_start_file:<mux> Robust muxing requires reserved-moov-update-period to be set 0:00:10.148059000 51257

Gstreamer end of stream

你。 提交于 2020-12-15 03:50:08
问题 I have two streams. Video and audio. One of them can be empty, i.e. end-of-stream at start. But 0:00:10.147044434 51257 0x563c0d51b060 FIXME basesink gstbasesink.c:3384:gst_base_sink_default_event:<fsink> stream-start event without group-id. Consider implementing group-id handling in the upstream elements 0:00:10.147150353 51257 0x563c0d51b060 WARN qtmux gstqtmux.c:3076:gst_qt_mux_start_file:<mux> Robust muxing requires reserved-moov-update-period to be set 0:00:10.148059000 51257

Problems with Gst in python program

早过忘川 提交于 2020-12-10 08:45:26
问题 I'm in trouble making a simple server/client socket python program. Basically, my server (RPi3) has to stream a video (with Gstreamer) to the client (Fedora 24). The problem is that in my Fedora, I can use Gstreamer importing the libs like this: import gi gi.require_version('Gst', '1.0') gi.require_version('Gtk', '3.0') from gi.repository import Gst, GObject, Gtk But in my Raspbian I can't, because: Traceback (most recent call last): File "peerMain.py", line 12, in <module> gi.require_version

Problems with Gst in python program

若如初见. 提交于 2020-12-10 08:44:50
问题 I'm in trouble making a simple server/client socket python program. Basically, my server (RPi3) has to stream a video (with Gstreamer) to the client (Fedora 24). The problem is that in my Fedora, I can use Gstreamer importing the libs like this: import gi gi.require_version('Gst', '1.0') gi.require_version('Gtk', '3.0') from gi.repository import Gst, GObject, Gtk But in my Raspbian I can't, because: Traceback (most recent call last): File "peerMain.py", line 12, in <module> gi.require_version