在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:GStreamer/gstreamer开源软件地址:https://github.com/GStreamer/gstreamer开源编程语言:C 95.8%开源软件介绍:GStreamerThis is GStreamer, a framework for streaming media. Where to startWe have a website at https://gstreamer.freedesktop.org Our documentation, including tutorials, API reference and FAQ can be found at https://gstreamer.freedesktop.org/documentation/ You can subscribe to our mailing lists: https://lists.freedesktop.org/mailman/listinfo/gstreamer-announce https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel We track bugs, feature requests and merge requests (patches) in GitLab at https://gitlab.freedesktop.org/gstreamer/ You can join us on IRC - #gstreamer on irc.oftc.net This repository contains all official modules supported by the GStreamer
community which can be found in the Getting startedInstall git and python 3.5+If you're on Linux, you probably already have these. On macOS, you can use the official Python installer. You can find instructions for Windows below. Install meson and ninjaMeson 0.59 or newer is required. On Linux and macOS you can get meson through your package manager or using: $ pip3 install --user meson This will install meson into You should get You can find instructions for Windows below. On macOS, you might need to execute "Install Certificates.command" from the Python folder in the user Applications folder or install it manually:
It will solve this issue:
Build GStreamer and its modulesYou can get all GStreamer built running:
This will automatically create the NOTE: On Windows, you must run this from inside the Visual Studio command prompt of the appropriate architecture and version. External dependenciesAll mandatory dependencies of GStreamer are included as meson subprojects: libintl, zlib, libffi, glib. Some optional dependencies are also included as subprojects, such as ffmpeg, x264, json-glib, graphene, openh264, orc, etc. Mandatory dependencies will be automatically built if meson cannot find them on
your system using pkg-config. The same is true for optional dependencies that
are included as subprojects. You can find a full list by looking at the
Plugins that need optional dependencies that aren't included can only be built if they are provided by the system. Instructions on how to build some common ones such as Qt5/QML are listed below. If you do not know how to provide an optional dependency needed by a plugin, you should use Cerbero which handles this for you automatically. Plugins will be automatically enabled if possible, but you can ensure that a particular plugin (especially if it has external dependencies) is built by enabling the gstreamer repository that ships it and the plugin inside it. For example, to enable the Qt5 plugin in the gst-plugins-good repository, you need to run meson as follows:
This will cause Meson to error out if the plugin could not be enabled. You can also flip the default and disable all plugins except those explicitly enabled like so:
This will disable all optional features and then enable the Building the Qt5 QML pluginIf The plugin will be automatically enabled if possible, but you can ensure that
it is built by passing Building the Intel MSDK pluginOn Linux, you need to have development files for The plugin will be automatically enabled if possible, but you can ensure it by
passing Building plugins with (A)GPL-licensed dependenciesSome plugins have GPL- or AGPL-licensed dependencies and will only be built
if you have explicitly opted in to allow (A)GPL-licensed dependencies by
passing List of plugins with (A)GPL-licensed dependencies (non-exhaustive) in gst-plugins-bad:
List of plugins with (A)GPL-licensed dependencies (non-exhaustive) in gst-plugins-ugly:
Static buildSince 1.18.0 when doing a static build using
GStreamer 1.18 requires applications using gstreamer-full-1.0 to initialize
static plugins by calling Since 1.20.0 One can use the One can use the One can select a specific set of features with The user must insure that all selected plugins and features (element, typefind, etc.) have been enabled during the build configuration. To register features, the syntax is the following: plugins are separated by ';' and features from a plugin starts after ':' and are ',' separated. As an example:
All features from the All the selected features will be registered into a dedicated This will cause the features/plugins that are not registered to not be included in the final gstreamer-full library. This is an experimental feature, backward incompatible changes could still be made in the future. Development environmentDevelopment environment targetGStreamer also contains a special
If your operating system handles symlinks, built modules source code will be
available at the root for example GStreamer core will be in
NOTE: In the development environment, a fully usable prefix is also configured
in An external script can be run in development environment with:
For more extensive documentation about the development environment go to the documentation. Custom subprojectsWe also added a meson option, To use it:
Run testsYou can easily run the test of all the components:
To list all available tests:
To run all the tests of a specific component:
Or to run a specific test file:
Run a specific test from a specific test file:
Optional InstallationYou can also install everything that is built into a predetermined prefix like so:
Note that the installed files have Add information about GStreamer development environment in your prompt lineBash promptWe automatically handle If the automatic ...
if [[ -n "${GST_ENV-}" ]];
then
PS1+="[ ${GST_ENV} ]"
fi
... Using powerlineIn your powerline theme configuration file (by default in
Windows Prerequisites SetupOn Windows, some of the components may require special care. Git for WindowsUse the Git for Windows installer. It will
install a During installation, when prompted about Python 3.5+ on WindowsUse the official Python installer.
You must ensure that Python is installed into You may also want to customize the installation and install it into
a system-wide location such as Ninja on WindowsThe easiest way to install Ninja on Windows is with
You can also download the official release
and place it into Meson on WindowsIMPORTANT: Do not use the Meson MSI installer since it is experimental and known to not
work with You can use
Note that Meson is written entirely in Python, so you can also run it as-is from the git repository if you want to use the latest master branch for some reason. Running Meson on WindowsAt present, to build with Visual Studio, you need to run Meson from inside the
VS 2019 command prompt. Press ARM64 native only: Since Visual Studio might not install dedicated command
prompt for native ARM64 build, you might need to run Setup a mingw/wine based development environment on linuxInstall wine and mingwOn fedora x64sudo dnf install mingw64-gcc mingw64-gcc-c++ mingw64-pkg-config mingw64-winpthreads wine FIXME: Figure out what needs to be installed on other distros Get meson from gitThis simplifies the process and allows us to use the cross files defined in meson itself. git clone https://github.com/mesonbuild/meson.git Build and install
The development environmentYou can get into the development environment the usual way:
Alternatively, if you'd rather not start a shell in your workflow, you can mutate the current environment into a suitable state like so:
This will print output suitable for an sh-compatible After setting up binfmt to use wine for windows binaries, you can run GStreamer tools under wine by running:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论