platform/upstream/gstreamer.git
2 years agoci: Use include syntax for files on the same gitlab instance
Nirbheek Chauhan [Thu, 22 Sep 2022 12:31:10 +0000 (18:01 +0530)]
ci: Use include syntax for files on the same gitlab instance

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3065>

2 years agoci: Move image tags into a separate template yml
Nirbheek Chauhan [Thu, 22 Sep 2022 12:22:42 +0000 (17:52 +0530)]
ci: Move image tags into a separate template yml

This will allow gst-plugins-rs documentation CI to include this
template via a remote include and doesn't need to manually update the
image. This causes cascading failures across all repos, for example
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/874
is required for making gst-plugins-rs CI pass in Cerbero, which is
also run on the gstreamer monorepo.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3065>

2 years agobasetransform: Avoid useless codepath
Edward Hervey [Thu, 15 Sep 2022 14:22:23 +0000 (16:22 +0200)]
basetransform: Avoid useless codepath

If QoS is disabled, skip the whole computation (avoids calculating values which
won't be needed)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3034>

2 years agobad/soundtouch: Fix interactive test build on MSVC
Nirbheek Chauhan [Thu, 22 Sep 2022 03:44:57 +0000 (09:14 +0530)]
bad/soundtouch: Fix interactive test build on MSVC

Needed for https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/930

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3064>

2 years agoci: Remove unused FEDORA_DOCS_IMAGE variable
Nirbheek Chauhan [Thu, 22 Sep 2022 04:27:22 +0000 (09:57 +0530)]
ci: Remove unused FEDORA_DOCS_IMAGE variable

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3061>

2 years agoci: Bump meson to 0.62.2 in Fedora docker images
Nirbheek Chauhan [Thu, 22 Sep 2022 04:25:45 +0000 (09:55 +0530)]
ci: Bump meson to 0.62.2 in Fedora docker images

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3061>

2 years agomeson: Use implicit builtin dirs in pkgconfig generation
Nirbheek Chauhan [Wed, 21 Sep 2022 13:49:45 +0000 (19:19 +0530)]
meson: Use implicit builtin dirs in pkgconfig generation

Starting with Meson 0.62, meson automatically populates the variables
list in the pkgconfig file if you reference builtin directories in the
pkgconfig file (whether via a custom pkgconfig variable or elsewhere).
We need this, because ${prefix}/libexec is a hard-coded value which is
incorrect on, for example, Debian.

Bump requirement to 0.62, and remove version compares that retained
support for older Meson versions.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1245

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3061>

2 years agoadaptivedemux2: Always wake up loop thread on unpause
Seungha Yang [Tue, 20 Sep 2022 15:26:38 +0000 (00:26 +0900)]
adaptivedemux2: Always wake up loop thread on unpause

Otherwise loop thread will sleep forever because
GstAdaptiveDemuxLoop.paused flag update is not signalled
when loop was marked as stopped already from other thread.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3057>

2 years agoadaptivedemux2: Rework input download wakeups
Jan Schmidt [Thu, 15 Sep 2022 16:01:58 +0000 (02:01 +1000)]
adaptivedemux2: Rework input download wakeups

Change the way streams are woken up to download more data.

Instead of checking the level on tracks that are being
output as data is dequeued, calculate a 'wakeup time'
at which it should download more data, and wake up
the stream when the global output position crosses
that threshold.

For efficiency, compute the earliest wakeup time
for all streams and store it on the period, so the
output loop can quickly check only a single value
to decide if something needs waking up.

Does the same buffering as the previous method,
but ensures that as we approach the end of
one period, the next period continues incrementally
downloading data so that it is fully buffered when
the period starts.

Fixes issues with multi-period VOD content where
download of the second period resumes only after
the first period is completely drained.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3055>

2 years agovabaseenc: Move out encoder validation from assertion.
Víctor Manuel Jáquez Leal [Tue, 20 Sep 2022 11:38:26 +0000 (13:38 +0200)]
vabaseenc: Move out encoder validation from assertion.

Assertion can be disabled at compilation time. Still it's important to
validate it the encoder object was opened by the subclass. This patch
removes the assertion and returns if the encoder is open.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3051>

2 years agovalidate:scenario: Make appsrc-push push a sample
Thibault Saunier [Wed, 14 Sep 2022 18:45:28 +0000 (15:45 -0300)]
validate:scenario: Make appsrc-push push a sample

Allowing setting a segment to the sample

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3052>

2 years agovalidate: Handle buffer pts/dts/duration in the appsrc-push action
Thibault Saunier [Wed, 14 Sep 2022 18:36:41 +0000 (15:36 -0300)]
validate: Handle buffer pts/dts/duration in the appsrc-push action

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3052>

2 years agovalidate:scenario: Simplify the way we override appsrc src pad chain
Thibault Saunier [Wed, 14 Sep 2022 18:31:20 +0000 (15:31 -0300)]
validate:scenario: Simplify the way we override appsrc src pad chain

When pushing several buffers while the pipeline is in NULL state, meaning
that the action are executed "interlaced", previous code was deadlocking.

This new implementation makes it so the override is always on and we
expect all buffers to go through to be associated to a function, which
is a safe assumption.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3052>

2 years agohlsdemux2: Handle negative time mappings
Edward Hervey [Thu, 15 Sep 2022 07:04:10 +0000 (09:04 +0200)]
hlsdemux2: Handle negative time mappings

Some servers can return playlists with "old" media playlists and different
Discont Sequence.

In those cases, the segment stream times would be negative when creating a new
time mapping. In order to properly handle such scenarios, shift the values to
stored accordingly to end up with non-negative reference stream time.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3054>

2 years agoges-video-source: Remove limit on frame duplication on EOS in videorate
Thibault Saunier [Thu, 8 Sep 2022 15:38:34 +0000 (11:38 -0400)]
ges-video-source: Remove limit on frame duplication on EOS in videorate

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1352

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3000>

2 years agovideorate: Add a `max-closing-segment-duplication-duration` property
Thibault Saunier [Tue, 6 Sep 2022 21:25:50 +0000 (17:25 -0400)]
videorate: Add a `max-closing-segment-duplication-duration` property

This allows users to let videorate fully fill the segments when received
EOS or on new segment, removing an arbitrary limit of 25 duplicates which
might not be what the user wants (for example on low FPS stream in GES,
that sometimes leaded to broken behavior)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3000>

2 years agovalidate:scenario: Fix a leak when done waiting for an ASYNC action
Thibault Saunier [Thu, 8 Sep 2022 22:25:07 +0000 (18:25 -0400)]
validate:scenario: Fix a leak when done waiting for an ASYNC action

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3000>

2 years agonlecomposition: Minor debug enhancement
Thibault Saunier [Tue, 6 Sep 2022 21:24:51 +0000 (17:24 -0400)]
nlecomposition: Minor debug enhancement

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3000>

2 years agoges: Enhance element names in video uri sources
Thibault Saunier [Tue, 6 Sep 2022 21:24:22 +0000 (17:24 -0400)]
ges: Enhance element names in video uri sources

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3000>

2 years agomeson: Set install_tag on some targets
Xavier Claessens [Mon, 12 Sep 2022 13:46:43 +0000 (09:46 -0400)]
meson: Set install_tag on some targets

Trying to follow recommendation from Meson documentation:
https://mesonbuild.com/Installing.html#installation-tags

Move tools into 'bin' or 'bin-devel' categories to keep only libs and
plugins in the default 'runtime' category. This simplifies distribution
of GStreamer application skipping parts that are not needed, similarly
to what Cerbero does by hardcoding huge list of files.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3017>

2 years agoqueue2: Fix deadlock when deactivate is called in pull mode
Paweł Stawicki [Wed, 31 Aug 2022 16:08:08 +0000 (18:08 +0200)]
queue2: Fix deadlock when deactivate is called in pull mode

check is flush was called before waiting on condition

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2967>

2 years agomsdkav1enc: We should not set other alignment here
Mengkejiergeli Ba [Tue, 20 Sep 2022 08:21:24 +0000 (16:21 +0800)]
msdkav1enc: We should not set other alignment here

According to spec, we have 32bit alignment for height (progressive) and
16bit alignment for width, so here we don't need to add other alignment
settings.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3050>

2 years agoshout: fix minimum requirement to libshout >= 2.4.3
Mart Raudsepp [Mon, 19 Sep 2022 17:48:01 +0000 (20:48 +0300)]
shout: fix minimum requirement to libshout >= 2.4.3

commit e64c6f0b93ced added usage of the SHOUT_USAGE_UNKNOWN symbol, but this
became available in the Icecast-libshout 2.4.3 release, not 2.4.2

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3048>

2 years agova: h264enc: Fix rate control enum register failure for the second GPU.
He Junyan [Sat, 17 Sep 2022 09:49:47 +0000 (17:49 +0800)]
va: h264enc: Fix rate control enum register failure for the second GPU.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3041>

2 years agovideo-converter: Fix doc
Edward Hervey [Mon, 19 Sep 2022 06:54:15 +0000 (08:54 +0200)]
video-converter: Fix doc

Argument names weren't correct

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3043>

2 years agoci: Bootstrap with visualstudio variant enabled
Nirbheek Chauhan [Sat, 17 Sep 2022 21:01:01 +0000 (02:31 +0530)]
ci: Bootstrap with visualstudio variant enabled

visualstudio variant now pulls in more build-tools deps on top of
mingw since it enables the rust variant by default. It's also the
variant that's tested on Cerbero CI.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agoci: bump image tags so subprojects get updated
Tim-Philipp Müller [Fri, 27 May 2022 10:04:43 +0000 (11:04 +0100)]
ci: bump image tags so subprojects get updated

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agosubprojects: harfbuzz: bump to 5.2.0
Tim-Philipp Müller [Sat, 17 Sep 2022 19:25:39 +0000 (20:25 +0100)]
subprojects: harfbuzz: bump to 5.2.0

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agosubprojects: libmicrodns: bump to 0.2.0 + meson fixes
Tim-Philipp Müller [Fri, 27 May 2022 12:14:01 +0000 (13:14 +0100)]
subprojects: libmicrodns: bump to 0.2.0 + meson fixes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agosubprojects: pango: bump to 1.50.10
Tim-Philipp Müller [Sat, 17 Sep 2022 19:28:54 +0000 (20:28 +0100)]
subprojects: pango: bump to 1.50.10

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agosubprojects: fribidi: bump to 1.0.12
Tim-Philipp Müller [Fri, 27 May 2022 08:55:59 +0000 (09:55 +0100)]
subprojects: fribidi: bump to 1.0.12

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agosubprojects: cairo: bump to 1.17.6
Tim-Philipp Müller [Fri, 27 May 2022 08:51:28 +0000 (09:51 +0100)]
subprojects: cairo: bump to 1.17.6

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agosubprojects: glib, glib-networking: bump to 2.72
Tim-Philipp Müller [Fri, 27 May 2022 08:48:51 +0000 (09:48 +0100)]
subprojects: glib, glib-networking: bump to 2.72

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agosubprojects: freetyp2: bump to 2.12.1
Tim-Philipp Müller [Fri, 27 May 2022 08:48:25 +0000 (09:48 +0100)]
subprojects: freetyp2: bump to 2.12.1

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agosubprojects: fontconfig: bump to 2.14.0
Tim-Philipp Müller [Fri, 27 May 2022 08:48:03 +0000 (09:48 +0100)]
subprojects: fontconfig: bump to 2.14.0

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2507>

2 years agov4l2videodec: add cap negotiation fail check in the capture configuration change
Elliot Chen [Wed, 31 Aug 2022 03:13:06 +0000 (11:13 +0800)]
v4l2videodec: add cap negotiation fail check in the capture configuration change

The capture configuration change may cause negotiation fail.
Need to check it to avoid enter the endless loop.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2960>

2 years agovah264enc: Avoid precision lost by just rounding up.
Víctor Manuel Jáquez Leal [Sat, 17 Sep 2022 08:14:40 +0000 (10:14 +0200)]
vah264enc: Avoid precision lost by just rounding up.

The code where dividing by 16 and later multiplying by 16, which is
spurious and a potential loose of precision.

2 years agovah264enc: Update AUD property if driver can't handle raw data.
Víctor Manuel Jáquez Leal [Fri, 16 Sep 2022 12:17:38 +0000 (14:17 +0200)]
vah264enc: Update AUD property if driver can't handle raw data.

2 years agovah264enc: Remove unused dispose method.
Víctor Manuel Jáquez Leal [Fri, 16 Sep 2022 11:55:11 +0000 (13:55 +0200)]
vah264enc: Remove unused dispose method.

2 years agovadeinterlace: Fix passthrough latency query
Eric Knapp [Fri, 16 Sep 2022 19:45:11 +0000 (15:45 -0400)]
vadeinterlace: Fix passthrough latency query

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3038>

2 years agovalidate: Update action types documentation
Thibault Saunier [Sat, 17 Sep 2022 01:05:18 +0000 (22:05 -0300)]
validate: Update action types documentation

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3040>

2 years agonvh265sldec: Sync up with d3d11h265dec implementation
Seungha Yang [Fri, 16 Sep 2022 20:01:55 +0000 (05:01 +0900)]
nvh265sldec: Sync up with d3d11h265dec implementation

Each RefPicSetStCurrBefore/RefPicSetStCurrAfter/RefPicSetLtCurr array
might have empty element (i.e., reference pictures might not be stored
sequentially). Don't error out for the empty element case,
but instead, iterates each array and fill NVDEC's reference list
as much as possible

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1441
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3039>

2 years agova: baseenc: Fix gobject style for chained method.
Víctor Manuel Jáquez Leal [Fri, 16 Sep 2022 10:50:33 +0000 (12:50 +0200)]
va: baseenc: Fix gobject style for chained method.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3035>

2 years agocodectimestamper: Update document
Seungha Yang [Tue, 13 Sep 2022 14:20:54 +0000 (23:20 +0900)]
codectimestamper: Update document

Add more description about those elements

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3021>

2 years agobaseparse: If available, return average bitrate upstream
Edward Hervey [Thu, 15 Sep 2022 14:23:16 +0000 (16:23 +0200)]
baseparse: If available, return average bitrate upstream

Helps improve queue2 buffering for single stream playback (ex: FLAC or mp3)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3033>

2 years agova: av1dec: user internal buffer pool for non output layers.
He Junyan [Thu, 9 Jun 2022 14:32:16 +0000 (22:32 +0800)]
va: av1dec: user internal buffer pool for non output layers.

The AV1 support multi spatial layers within one TU with different
resolutions, and only the highest spatial layer need to be output.
For example, there are two spatial layer, base level is 800x600
and higher level is 1920x1080. We need to decode both because the
higher level needs base layer as reference, but we only need to output
1920x1080 frames here.

The current manner always renegotiates the caps once we detect the
current picture resolution changes, so we renegotiate again and
again between different layers. That's a big waste and has very
low performance. We now only do the renegotiation for the highest
output layer. For other non output layers, we just keep a internal
buffer pool which is big enough to handle the surface allocation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2382>

2 years agocodecs: av1decoder: Add the highest_spatial_layer field.
He Junyan [Thu, 12 May 2022 02:12:37 +0000 (10:12 +0800)]
codecs: av1decoder: Add the highest_spatial_layer field.

As SPEC says, when multi spatial layer exists, we should only output
one frame with the highest spatial id from each TU. We now store the
highest spatial layer information in the base class in order to let
the sub class handle different layers easily.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2382>

2 years agovoamrwbenc: Fix truncation of audio data at end-of-stream when audio data
Devin Anderson [Thu, 15 Sep 2022 00:52:14 +0000 (00:52 +0000)]
voamrwbenc: Fix truncation of audio data at end-of-stream when audio data
doesn't align on 20 millisecond frame size.

The AMR-WB codec imposes a fixed 20 millisecond frame size.  In its current
form, the `voamrwbenc` plugin deals with this limitation by discarding any
audio at the end of the stream that falls short of 20 milliseconds.  This patch
keeps the audio data, and appends silence to the end to preserve frame size
alignment.

The patch also adds tests to check for the updated behavior.  I noticed that
tests weren't being built, so I changed the build to allow for building the
tests when the `tests` and `voamrwbenc` options are set.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3027>

2 years agocodectimestamper: Fix for unknown framerate
Seungha Yang [Thu, 15 Sep 2022 12:56:27 +0000 (21:56 +0900)]
codectimestamper: Fix for unknown framerate

Use default framerate if numerator or denominator is unknown

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3031>

2 years agodecodebin2: Do not fail if one of the decoders isn't able to output the requested...
Thibault Saunier [Fri, 9 Sep 2022 20:57:18 +0000 (16:57 -0400)]
decodebin2: Do not fail if one of the decoders isn't able to output the requested format

when expose-all=False

When trying to find an decoder in that case, we loop over the different
decoder factories, and check that it outputs a format that matches the
requested one (through the :caps property), but if we find a decoder
that do match but later on some other don't we end up failing
autopluging. This patch ensures that we still plug the decoder that can
work.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3011>

2 years agoBuild documentation for rust plugins
Thibault Saunier [Fri, 26 Aug 2022 12:43:34 +0000 (08:43 -0400)]
Build documentation for rust plugins

- Update the docker image we use, starting using the standard one adding
  `gtk4-doc` as required by rust plugins
- Update the plugins_doc_caches as required, some more plugins are built
  with the new image
- Install ninja from pip as the version from F31 is too old
- Avoid buildings all GSreamer plugins when building the doc as it takes
  time and resources for no good reason
- Stop linking to `GInstanceInitFunc` as it is not present in latest GLib
  documentation, leading to warnings in hotdoc.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>

2 years agogl:meson: Minor typo fix
Thibault Saunier [Mon, 29 Aug 2022 14:20:55 +0000 (10:20 -0400)]
gl:meson: Minor typo fix

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>

2 years agodoc: Do not build plugins to build the doc
Thibault Saunier [Mon, 29 Aug 2022 14:17:45 +0000 (10:17 -0400)]
doc: Do not build plugins to build the doc

It is not actually necessary

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>

2 years agodocs: Generate gst-plugins-rs documentation
Thibault Saunier [Fri, 26 Aug 2022 12:39:00 +0000 (08:39 -0400)]
docs: Generate gst-plugins-rs documentation

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>

2 years agodoc: Add an option to enable fatal warnings
Thibault Saunier [Mon, 29 Aug 2022 14:43:52 +0000 (10:43 -0400)]
doc: Add an option to enable fatal warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>

2 years agodocs: plugin-scanner: Minor debug enhancement
Thibault Saunier [Fri, 26 Aug 2022 12:39:16 +0000 (08:39 -0400)]
docs: plugin-scanner: Minor debug enhancement

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>

2 years agodiscoverer: Fix discovering source that expose raw audio/video
Thibault Saunier [Wed, 7 Sep 2022 14:36:09 +0000 (10:36 -0400)]
discoverer: Fix discovering source that expose raw audio/video

Exposes a "uridecodebin:post-stream-topology" property as the discoverer
needs to have topology information about all streams so we need
`uridecodebin` to always plug decodebins for that case.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3009>

2 years agouridecodebin: Fix some property documentation syntax
Thibault Saunier [Wed, 7 Sep 2022 21:11:08 +0000 (17:11 -0400)]
uridecodebin: Fix some property documentation syntax

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3009>

2 years agouridecodebin: Ensure that pads caps are set before exposing them
Thibault Saunier [Wed, 7 Sep 2022 14:39:21 +0000 (10:39 -0400)]
uridecodebin: Ensure that pads caps are set before exposing them

We are supposed to guarantee that pads that are exposed have the caps
set, but for sources that have pad with "all raw caps" templates, we end
up exposing pads that don't have caps set yet, which can break code (in
GES for example).

To avoid that we let uridecodebin plug a `decodebin` after such pads and
let decodebin to handle that for us. In the end the only thing that
decodebin does in those cases is to wait for pads to be ready and expose
them, after that `uridecodebin` will expose those pads.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3009>

2 years agosubprojects: orc: bump to latest commit
Tim-Philipp Müller [Thu, 15 Sep 2022 13:13:49 +0000 (14:13 +0100)]
subprojects: orc: bump to latest commit

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3032>

2 years agotests: add a few more orc tests
Tim-Philipp Müller [Thu, 15 Sep 2022 11:14:56 +0000 (12:14 +0100)]
tests: add a few more orc tests

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3029>

2 years agogst-full: Register GIO modules when glib-networking is a subproject
Xavier Claessens [Thu, 23 Jun 2022 15:50:00 +0000 (11:50 -0400)]
gst-full: Register GIO modules when glib-networking is a subproject

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2653>

2 years agohlsdemux2: Fix crash on live playlist with single entry
Edward Hervey [Wed, 14 Sep 2022 08:15:41 +0000 (10:15 +0200)]
hlsdemux2: Fix crash on live playlist with single entry

If there is a single entry, we would end up computing a minimum distance of 0,
and would therefore read entries from after the segment array

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3024>

2 years agonvdec: Fix for HEVC decoding when coded resolution is larger than display resolution
Seungha Yang [Tue, 13 Sep 2022 15:58:37 +0000 (00:58 +0900)]
nvdec: Fix for HEVC decoding when coded resolution is larger than display resolution

As documented in the SDK header, we should set coded width/height
values to the corresponding decoder configuration option,
instead of display resolution

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1438
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3022>

2 years agogstinfo: remove the vasprintf fallback
Jordan Petridis [Thu, 28 Jan 2021 06:40:56 +0000 (08:40 +0200)]
gstinfo: remove the vasprintf fallback

We are always building our printf implementation, even when
GST_DEBUG is disabled, since we are exposing api (gst_print*)
that's dependant on our printf behavior.

We don't need to keep __gst_info_fallback_vasprintf around anymore.

Close #640

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/739>

2 years agocudaupload,cudadownload: Fix document
Seungha Yang [Mon, 12 Sep 2022 19:06:02 +0000 (04:06 +0900)]
cudaupload,cudadownload: Fix document

* Fix typo, NVIDA -> NVIDIA
* Add cudadownload doc to the source file

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3018>

2 years agocudaupload,cudadownload: Use shared GstD3D11Device context if possible
Seungha Yang [Mon, 12 Sep 2022 16:02:55 +0000 (01:02 +0900)]
cudaupload,cudadownload: Use shared GstD3D11Device context if possible

Handle d3d11 device context in set_context() method with
additional device compatibility check so that only NVIDIA GPU
associated d3d11 device can be configured in the element.
And clear old d3d11 device per set_info() for d3d11 device to be
updated as well.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3018>

2 years agocuda: Remove GST_CUDA_HAS_D3D define from header
Seungha Yang [Mon, 12 Sep 2022 16:02:50 +0000 (01:02 +0900)]
cuda: Remove GST_CUDA_HAS_D3D define from header

... and fix d3d11 specific enum type name

GST_CUDA_HAS_D3D is a build time define which indicates whether
GstD3D11 library is available or not, but DirectX SDK headers
must be available on the build system already.

Expose Direct3D related symbols if the build target is Windows
(i.e., if G_OS_WIN32 is defined)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3018>

2 years agomeson: Build with -Wl,-z,nodelete to prevent unloading of dynamic libraries and plugins
Zebediah Figura [Wed, 24 Mar 2021 19:20:18 +0000 (14:20 -0500)]
meson: Build with -Wl,-z,nodelete to prevent unloading of dynamic libraries and plugins

GLib made the unfortunate decision to prevent libgobject from ever being
unloaded, which means that now any library which registers a static type
can't ever be unloaded either (and any library that depends on those,
ad nauseam).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/778>

2 years agova: Remove from plugin cache.
Víctor Manuel Jáquez Leal [Mon, 6 Jun 2022 08:56:12 +0000 (10:56 +0200)]
va: Remove from plugin cache.

GstVA is not currently build by CI, because libva version is lower
than expected. So, the gstva library is not build, thus some symbols
aren't documented, breaking the documentation CI.

To move things forward, let's just remove temporarly the va plugins
from cache. While we decide on how to update the libva package in
the CI.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1025>

2 years agova: allocator: Fix parameter name to match signature.
Víctor Manuel Jáquez Leal [Mon, 27 Jun 2022 16:56:01 +0000 (18:56 +0200)]
va: allocator: Fix parameter name to match signature.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1025>

2 years agova: Complete library and plugin documentation.
Víctor Manuel Jáquez Leal [Mon, 7 Feb 2022 16:34:57 +0000 (17:34 +0100)]
va: Complete library and plugin documentation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1025>

2 years agova: Move gstvavideoformat out of library headers.
Víctor Manuel Jáquez Leal [Tue, 13 Sep 2022 12:46:37 +0000 (14:46 +0200)]
va: Move gstvavideoformat out of library headers.

Since it's no needed for API consumers. Though it can be added later.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1025>

2 years agodocs: Generate libgstva GI and pkg-config.
Víctor Manuel Jáquez Leal [Sun, 3 Oct 2021 08:17:00 +0000 (10:17 +0200)]
docs: Generate libgstva GI and pkg-config.

Currently libgstva is only exposed internally to gst-plugins-bad. No
headers are installed, no documentation generated, pkgconfig file,
neither gobject-introspection files.

This patch turn on all that.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1025>

2 years agoadaptivedemux2: Always check bitrate in live
Jan Schmidt [Mon, 12 Sep 2022 14:56:53 +0000 (00:56 +1000)]
adaptivedemux2: Always check bitrate in live

When advancing fragment in live, it's normal to return
GST_FLOW_EOS when playing at the live edge of the available
fragments. In that case, we still want to adjust bitrate
dynamically.

Fixes issue with dashdemux2 where the current bitrate of
each adaptation set is changed to the lowest one when
updating the mpd for a live stream.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3020>

2 years agortsp-server: context: Add method to set the RTSPToken on some RTSPContext
Chris Wiggins [Mon, 5 Sep 2022 01:28:18 +0000 (13:28 +1200)]
rtsp-server: context: Add method to set the RTSPToken on some RTSPContext

Fixes #1399.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2979>

2 years agortpjitterbuffer: Fix calculation of reference timestamp metadata
Matt Crane [Mon, 12 Sep 2022 18:18:47 +0000 (14:18 -0400)]
rtpjitterbuffer: Fix calculation of reference timestamp metadata

Add support for RTCP SRs that contain RTP timestamps later than the
current timestamps in the RTP stream packet buffers.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3019>

2 years agoAdd H.264/H.265 timestamp correction element
Seungha Yang [Wed, 18 May 2022 15:44:40 +0000 (00:44 +0900)]
Add H.264/H.265 timestamp correction element

Adding {h264,h265}timestamper element to correct timestamp of
encoded frames. This initial version supports only DTS
correction based on given PTS and SPS data.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2580>

2 years agoregistry: skip integration testsuite directory during plugin scan
Doug Nazar [Mon, 19 Apr 2021 14:49:42 +0000 (10:49 -0400)]
registry: skip integration testsuite directory during plugin scan

When using an uninstalled development environment and running the
validation tests, the number of log files can grow substantially,
slowing down startup.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/799>

2 years agomeson: use python.get_install_dir() to find the pygobject overrides dir
Christoph Reiter [Sat, 10 Sep 2022 17:16:39 +0000 (19:16 +0200)]
meson: use python.get_install_dir() to find the pygobject overrides dir

Instead of trying to hardcode site-packages paths for different platforms
just use python.get_install_dir() from meson and let it deal with the rest.
Also no longer try to import pygobject, which would otherwise not be
required at build time.

python.get_install_dir() was at the beginning broken on Windows, but
that was fixed in 0.60 via https://github.com/mesonbuild/meson/pull/9156
and since ges now requires >0.60 this can be ignored.

This change was motivated by the install path being wrong under MSYS2, where
the unix install layout is used and the detection code not taking that into
account.

This MR is a continuation of https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/230
see the discussion there for extra context.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3012>

2 years agox264enc: Print full option-string applied to x264_encoder in debug log
Yeongjin Jeong [Thu, 18 Oct 2018 03:32:03 +0000 (12:32 +0900)]
x264enc: Print full option-string applied to x264_encoder in debug log

x264 encoder transfers all options applied to the encoder
to the SEI payload when the headers(SPS, PPS) is requested.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3014>

2 years agox264enc: Don't assume the order of nal unit
Yeongjin Jeong [Wed, 17 Oct 2018 14:38:22 +0000 (23:38 +0900)]
x264enc: Don't assume the order of nal unit

Just for extra safety, let's check the index of the nal unit
through the enum value of the nal type provided by x264.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3014>

2 years agodoc: Clarify that gst_buffer_pool_acquire_buffer() blocks by default
Xavier Claessens [Tue, 30 Aug 2022 14:48:18 +0000 (10:48 -0400)]
doc: Clarify that gst_buffer_pool_acquire_buffer() blocks by default

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2955>

2 years agotestsrcbin: Add a way to specify caps for the output of the sources
Thibault Saunier [Wed, 7 Sep 2022 15:22:45 +0000 (11:22 -0400)]
testsrcbin: Add a way to specify caps for the output of the sources

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3007>

2 years agotestsrcbin: Plug some leaks
Thibault Saunier [Thu, 8 Sep 2022 21:29:37 +0000 (17:29 -0400)]
testsrcbin: Plug some leaks

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3007>

2 years agotestsrcbin: Add an 'expose-sources-async' property
Thibault Saunier [Thu, 19 Nov 2020 21:34:00 +0000 (18:34 -0300)]
testsrcbin: Add an 'expose-sources-async' property

Which allows simluating usual source which require decoding etc in decodebin for example

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3007>

2 years agovalidate:scenario: Some minor fixes
Thibault Saunier [Wed, 7 Sep 2022 19:43:11 +0000 (15:43 -0400)]
validate:scenario: Some minor fixes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3007>

2 years agovalidate: Add a 'check-current-pad-caps' check action type
Thibault Saunier [Wed, 7 Sep 2022 19:41:53 +0000 (15:41 -0400)]
validate: Add a 'check-current-pad-caps' check action type

Allowing to check that a specific pad has some specific caps set

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3007>

2 years agovalidate: Add a 'check' field to waits to allow running check actions after it get...
Thibault Saunier [Wed, 7 Sep 2022 19:19:05 +0000 (15:19 -0400)]
validate: Add a 'check' field to waits to allow running check actions after it get executed

Adding the notion of 'check' action types

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3007>

2 years agopngenc: lower minimum width and height to 1x1
Filip Hanes [Thu, 8 Sep 2022 17:06:26 +0000 (17:06 +0000)]
pngenc: lower minimum width and height to 1x1

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3003>

2 years agovideo-format: Workaround MSVC build error
Seungha Yang [Tue, 5 Jul 2022 19:18:37 +0000 (04:18 +0900)]
video-format: Workaround MSVC build error

../gst-libs/gst/video/video-format.c(6779): error C2219: syntax error:
type qualifier must be after '*'

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2719>

2 years agodashdemux2: Remove bogus limitation checks for duration fields
Edward Hervey [Tue, 30 Aug 2022 09:45:05 +0000 (11:45 +0200)]
dashdemux2: Remove bogus limitation checks for duration fields

Just like for the seconds field, there are no limitations on the hours and
minutes fields. The specification for xml schema duration fields doesn't forbid
specifying durations with only (huge) minutes or hours values.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2951>

2 years agosubparse: fix crash when parsing invalid timestamps in mpl2
Matthew Waters [Wed, 7 Sep 2022 06:35:38 +0000 (16:35 +1000)]
subparse: fix crash when parsing invalid timestamps in mpl2

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49245

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2989>

2 years agovajpegdec: Enhance explanation comment.
Víctor Manuel Jáquez Leal [Mon, 5 Sep 2022 16:32:20 +0000 (18:32 +0200)]
vajpegdec: Enhance explanation comment.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2948>

2 years agova: caps: Use G_STMT_START / END
Víctor Manuel Jáquez Leal [Tue, 6 Sep 2022 12:53:41 +0000 (14:53 +0200)]
va: caps: Use G_STMT_START / END

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2948>

2 years agovajpegdec: Check if driver has internal color conversion.
Víctor Manuel Jáquez Leal [Mon, 5 Sep 2022 14:59:12 +0000 (16:59 +0200)]
vajpegdec: Check if driver has internal color conversion.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2948>

2 years agowebrtcbin: fix picking available payload types
Mathieu Duponchelle [Tue, 6 Sep 2022 16:49:02 +0000 (18:49 +0200)]
webrtcbin: fix picking available payload types

When picking an available payload type, we need to pick one that is
available across all media.

The previous code, when multiple media were present, looked at the first one,
noticed it had pt 96 as the media pt, then simply looked at the next media,
noticed it didn't, and decided 96 was available.

Instead, check if the pt is used by any of the media, if it is, decide
it is not available and go to the next pt. I'm fairly sure that was the
original intent.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2984>

2 years agodocs: update to mono repo locations
Stéphane Cerveau [Tue, 6 Sep 2022 07:53:51 +0000 (09:53 +0200)]
docs: update to mono repo locations

Some links/repos in the documentation were still pointing to old
repositories, change to mono repository

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2982>

2 years agofluidsynth: correctly version guard methods
Jordan Petridis [Wed, 3 Aug 2022 16:36:11 +0000 (19:36 +0300)]
fluidsynth: correctly version guard methods

We bumped the minimum version to 2.1 but the api we used
wasn't introduced till version 2.2 of fluidsynth

Follow-up to gstreamer/gstreamer!2718

https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2718

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2835>

2 years agodashdemux2: Preserve current representation on live manifest updates
Jan Schmidt [Sat, 20 Aug 2022 17:37:40 +0000 (03:37 +1000)]
dashdemux2: Preserve current representation on live manifest updates

When updating a manifest during live playback, preserve the current
representation for each stream.

During update_fragment_info, if the current representation changed
because it couldn't be matched, trigger a caps change and new
header download.

This reverts commit e0e1db212fd0df2239583b9099fc4361adeded05
and reapplies "dashdemux: Fix issue when manifest update sets slow start
without passing necessary header & caps changes downstream" with
changes.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2920>