Seungha Yang [Fri, 8 Oct 2021 08:16:02 +0000 (17:16 +0900)]
d3d11: d3d11device: Remove "allow-tearing" property
Plugin can query DXGI_FEATURE_PRESENT_ALLOW_TEARING without d3d11device
help
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1098>
Sebastian Dröge [Fri, 8 Oct 2021 18:14:52 +0000 (21:14 +0300)]
webrtcbin: Use the same promise reply structure name everywhere
This was an inconsistent mix of different names in the past. The name
has no meaning at all so let's set all to "application/x-gst-promise".
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1099>
Jan Schmidt [Mon, 4 Oct 2021 18:43:13 +0000 (05:43 +1100)]
playbin3: Avoid group deactivation deadlock.
Change locking around group deactivation to avoid deadlocks
when shutting down exactly as a buffering message arrives.
The PLAYBIN3_LOCK now protects the active field of the
source group. Everything else is still protected by the
source-group-lock.
Also properly protect group switching operations with
the PLAYBIN3_LOCK everywhere.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1049>
Vivia Nikolaidou [Fri, 8 Oct 2021 12:44:37 +0000 (15:44 +0300)]
chopmydata: Fix FIXMEs in gst_element_class_set_static_metadata
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1097>
Stéphane Cerveau [Fri, 8 Oct 2021 11:20:37 +0000 (13:20 +0200)]
FAQ: add mention to downstream cherry-pick
Give an help to cherry-pick an upstream patch to
downstream repository (old stable version)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1095>
Seungha Yang [Tue, 5 Oct 2021 18:19:30 +0000 (03:19 +0900)]
d3d11: d3d11desktopdupsrc: Add support for non-D3D11 downstream element
By this commit, application doesn't need to configure d3d11download
element for software pipeline which will make things simpler
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1082>
Thibault Saunier [Tue, 5 Oct 2021 21:50:21 +0000 (18:50 -0300)]
validate:scenario: Allow waiting signal searching for element factory
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1064>
Marek Vasut [Fri, 5 Jun 2020 14:20:18 +0000 (16:20 +0200)]
jpegdec: Support libjpeg-turbo colorspace conversion
The libjpeg-turbo has a built-in support for performing colorspace
conversion. The performance of this conversion is much better than
doing the same separately using videoconvert. Implement support for
this conversion to RGBx/xRGB/BGRx/xBGR formats. Other formats can
be easily added later.
- The decoding of various pixel formats can be tested and compared to
non-libjpeg-turbo decoding as follows:
for gfmt in {RGB,BGR}{,x} x{RGB,BGR} ; do
echo "$gfmt"
gst-launch-1.0 -q \
videotestsrc pattern=colors ! \
video/x-raw,format=${gfmt} ! \
fakesink dump=true | \
head -n 200 | tail -n 1
gst-launch-1.0 -q --gst-plugin-path=build/ext/jpeg/ \
videotestsrc pattern=colors ! \
video/x-raw,format=${gfmt} ! \
jpegenc ! \
jpegdec ! \
video/x-raw,format=${gfmt} ! \
fakesink dump=true | \
head -n 200 | tail -n 1
done
Result looks as follows, i.e. comparable:
RGB
00000c70 (0x7f7736fbdd10): 05 33 19 05 33 26 05 33 33 05 33 40 05 33 4c 05 .3..3&.33.3@.3L.
00000c70 (0x7f389e8f7d10): 05 32 17 04 32 22 04 32 31 04 32 3e 04 32 4a 04 .2..2".21.2>.2J.
RGBx
00000c70 (0x7f79efd0ad10): cc 07 22 ff d9 07 22 ff e6 07 22 ff f3 07 22 ff .."..."..."...".
00000c70 (0x7fb6989f3d10): cd 06 22 00 d9 06 22 00 e6 06 22 00 f4 06 22 00 .."..."..."...".
BGR
00000c70 (0x7fa0a6c42d10): 05 0c 33 05 19 33 05 26 33 05 33 33 05 40 33 05 ..3..3.&3.33.@3.
00000c70 (0x7fc74165fd10): 05 08 32 04 17 32 04 22 32 04 31 32 04 3e 32 04 ..2..2."2.12.>2.
BGRx
00000c70 (0x7fbf399f1d10): 22 07 cc ff 22 07 d9 ff 22 07 e6 ff 22 07 f3 ff "..."..."..."...
00000c70 (0x7f50e3d1cd10): 22 06 cd 00 22 06 d9 00 22 06 e6 00 22 06 f4 00 "..."..."..."...
xRGB
00000c70 (0x7f0b950a2d10): ff cc 07 22 ff d9 07 22 ff e6 07 22 ff f3 07 22 ..."..."..."..."
00000c70 (0x7f4416b8dd10): 00 cd 06 22 00 d9 06 22 00 e6 06 22 00 f4 06 22 ..."..."..."..."
xBGR
00000c70 (0x7f237d74dd10): ff 22 07 cc ff 22 07 d9 ff 22 07 e6 ff 22 07 f3 ."..."..."..."..
00000c70 (0x7f095547dd10): 00 22 06 cd 00 22 06 d9 00 22 06 e6 00 22 06 f4 ."..."..."..."..
^^ ^^ ^^ ^^
Notice how the alpha channel is set to arbitrary value in case of the
libjpeg-turbo decoding into RGBx/BGRx/xRGB/xBGR pixel formats. This is
documented in libjpeg-turbo README.md as follows:
"
When using the RGBX, BGRX, XBGR, and XRGB colorspaces during decompression, the
X byte is undefined, and in order to ensure the best performance, libjpeg-turbo
can set that byte to whatever value it wishes.
"
- The interlaced num_fields=2 mjpeg stream can be generated and
tested as follows (this does require mjpegtools):
$ gst-launch-1.0 videotestsrc num-buffers=10 ! jpegenc ! multifilesink location=in%04d.jpg
$ jpeg2yuv -f 25 -I t -L 0 -j in%04d.jpg | yuv2lav -f avi -o result.avi
...
$ gst-launch-1.0 --gst-plugin-path=build/ext/jpeg/ filesrc location=result.avi ! \
avidemux ! jpegdec ! video/x-raw,format=RGBx ! videoconvert ! autovideosink
Signed-off-by: Marek Vasut <marex@denx.de>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1091>
Sebastian Dröge [Thu, 7 Oct 2021 10:00:10 +0000 (13:00 +0300)]
rtsp-media: Unprepare suspended medias too
Previously suspended medias immediately reached the UNPREPARED state
without going through the media's unprepare() vfunc. This didn't allow
the media subclass to do any additional cleanup, and for example the
shutdown-eos property of GstRTSPMedia was ignored.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1090>
Seungha Yang [Fri, 1 Oct 2021 14:36:39 +0000 (23:36 +0900)]
tests: gstmeta: Fix failure on Windows
Windows doesn't support fork so every test will be performed in
one process. So the test_meta_custom_transform() is being
failed because "test-custom" custom meta is being used/defined in
another test test_meta_custom() as well.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1086>
Seungha Yang [Wed, 6 Oct 2021 13:06:44 +0000 (22:06 +0900)]
codecs: Use GST_VIDEO_DECODER_ERROR() only for decoding error case
The GST_VIDEO_DECODER_ERROR() should be used only for robust/error-resilient
decoding purpose. Any other error codes such as not-negotiated or flushing
should be returned without modified for upstream to be able to handle
it immediately. (for example, application might want to try other
decoder element on not-negotiated)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1070>
Seungha Yang [Wed, 6 Oct 2021 16:54:29 +0000 (01:54 +0900)]
codecs: h264decoder: Update for remaining gboolean to GstFlowReturn port
Fix for spurious/spammy warning and wrong function return type
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1085>
Sebastian Dröge [Wed, 6 Oct 2021 15:19:29 +0000 (18:19 +0300)]
rtsp-media: Only unprepare a media if it was not already unpreparing anyway
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1083>
Nirbheek Chauhan [Thu, 23 Sep 2021 11:37:09 +0000 (17:07 +0530)]
meson: Fix gst-launch build on UWP
The APIs we need from WinMM for higher timer resolution are only
available for non-UWP apps. The winmm library itself is still
available, so we need to disable the check.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/890>
Nirbheek Chauhan [Thu, 23 Sep 2021 12:06:20 +0000 (17:36 +0530)]
meson: Fix build with -Dopenjpeg=disabled
tests/check/meson.build uses the openjpeg_dep variable
unconditionally, and the subdir_done() is useless anyway, since the
plugin is only built if openjpeg_dep.found() is true. Fixes:
..\tests\check\meson.build:23:0: ERROR: Unknown variable "openjpeg_dep".
In particular, this fixes the build on UWP since we disable openjpeg
explicitly in Cerbero when building for UWP.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1069>
Guillaume Desmottes [Fri, 1 Oct 2021 12:35:06 +0000 (14:35 +0200)]
bad: gs: update README
- add one missing dep
- change install path to match monorepo
- fix current dirs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1008>
Ognyan Tonchev [Sun, 3 Oct 2021 21:25:23 +0000 (23:25 +0200)]
rtsp-client: make sure sessmedia will not get freed while used
handle_*_request() functions were all retrieving the session media from
the session by calling gst_rtsp_session_get_media () which is a transfer-none
call. If a session timeout happens at that time, the session media may get freed
making the pointer invalid..
Fixes #757
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1053>
Thibault Saunier [Sat, 2 Oct 2021 14:58:56 +0000 (11:58 -0300)]
validate:launcher: Sync asset only when passing --sync
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1020>
Xavier Claessens [Tue, 5 Oct 2021 15:47:17 +0000 (11:47 -0400)]
ci: Fix typo in cerbero trigger
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1056>
Xavier Claessens [Tue, 5 Oct 2021 15:20:32 +0000 (11:20 -0400)]
trigger_cerbero_pipeline.py: Do not hardcode gitlab instance
When GStreamer is forked into a private GitLab instance we should
trigger cerbero into that private instance too. Otherwise the token
won't be accepted.
Also do not hardcode the cerbero project ID because it is instance
specific.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1056>
Víctor Manuel Jáquez Leal [Fri, 17 Sep 2021 11:02:38 +0000 (13:02 +0200)]
va: Use macro rather than VAMemory feature string.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1061>
Jordan Petridis [Tue, 5 Oct 2021 20:28:57 +0000 (23:28 +0300)]
ci: remove duplicate stage key in documentation job
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/931>
Xavier Claessens [Tue, 5 Oct 2021 00:44:15 +0000 (20:44 -0400)]
ci: Remove "check allow-edit" job because gitlab does it by default
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/931>
Xavier Claessens [Tue, 5 Oct 2021 00:24:58 +0000 (20:24 -0400)]
ci: Update fedora image for cerbero trigger
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/931>
Xavier Claessens [Tue, 5 Oct 2021 12:51:08 +0000 (08:51 -0400)]
ci: Fix gst-indent path
It used to be downloaded into PATH, but we can now instead run it from
git. Also move it to top source dir instead of gstreamer subproject.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/931>
Xavier Claessens [Tue, 5 Oct 2021 00:25:54 +0000 (20:25 -0400)]
ci: Fix subprojects caching in Windows image
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/931>
Jordan Petridis [Mon, 27 Sep 2021 07:03:31 +0000 (10:03 +0300)]
ci/docker/fedora: update rustc and meson versions
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/931>
Jordan Petridis [Mon, 27 Sep 2021 06:41:10 +0000 (09:41 +0300)]
ci: port to fd.o citemplates
https://gitlab.freedesktop.org/freedesktop/ci-templates
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/931>
Jordan Petridis [Mon, 27 Sep 2021 06:42:18 +0000 (09:42 +0300)]
ci: remove duplicate keys
They are redefined/copied just below
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/931>
Nicolas Dufresne [Tue, 5 Oct 2021 13:27:50 +0000 (09:27 -0400)]
ci: Add a dummy trigger job/stage
This is to avoid triggering docker images for no reason, and bring back
running gst-indent always.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1054>
Nicolas Dufresne [Tue, 5 Oct 2021 13:06:32 +0000 (09:06 -0400)]
ci: Document the difference between the two doc jobs
Naming is hard, so I opted for a small comment to explain this one.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1054>
Sebastian Dröge [Tue, 5 Oct 2021 16:37:40 +0000 (19:37 +0300)]
rtsp-media: Also mark receive-only (RECORD) medias as prepared when unsuspending
Previously the status was only changed for other medias.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1058>
Tim-Philipp Müller [Tue, 5 Oct 2021 12:26:52 +0000 (13:26 +0100)]
docs: update "Building from Source using Meson" for mono repo
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1052>
Sebastian Dröge [Tue, 21 Sep 2021 10:37:35 +0000 (13:37 +0300)]
splitmuxsink: Keep track of the pending input GOPs in a queue
This cleans up input GOP handling and makes it possible to handle more
than 2 pending GOPs, which could happen before if keyframes are arriving
with too short of a distance between them.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1005>
Sebastian Dröge [Thu, 16 Sep 2021 16:36:27 +0000 (19:36 +0300)]
splitmuxsink: Handle frame reordering due to B frames better
Instead of assuming that the PTS of a keyframe is the lowest PTS of a
GOP, wait until the DTS has passed this PTS and take the minimum PTS up
to that point. That way the minimum PTS of a GOP can be determined, at
least for closed GOP streams. Open GOP streams still can't be handled
properly.
By knowing the minimum PTS of each GOP, keyframes can be requested at
the correct time relative to the GOP (and thus fragment) start and
fragment overflow calculations can calculate the correct durations of
the GOPs.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1005>
Sebastian Dröge [Thu, 16 Sep 2021 11:07:27 +0000 (14:07 +0300)]
splitmuxsink: Reset timecodes when resetting the sink
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1005>
Sebastian Dröge [Thu, 16 Sep 2021 10:11:20 +0000 (13:11 +0300)]
splitmuxsink: Use GST_CLOCK_STIME_NONE instead of 0 to initialize max out running time
Otherwise streams with only DTS would misbehave while it is negative.
For outputting everything immediately at EOS, use G_MAXINT64 instead
which is bigger-or-equal to any other running time.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1005>
Sebastian Dröge [Thu, 16 Sep 2021 10:02:29 +0000 (13:02 +0300)]
splitmuxsink: Only update max in/out running time if it's actually bigger
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1005>
Sebastian Dröge [Thu, 16 Sep 2021 09:53:12 +0000 (12:53 +0300)]
splitmuxsink: Only count keyframes for the reference context, consistently
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1005>
Jordan Petridis [Wed, 29 Sep 2021 12:15:03 +0000 (15:15 +0300)]
ci: Rework workflow rules to prevent duplicate pipelines
Currently gitlab spawns 2 pipelines, one for the branch and
another for the merge request.
Update our rules so that only one of them is spawned depending
on the situation.
https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/958>
Robert Rosengren [Fri, 24 Sep 2021 13:24:15 +0000 (15:24 +0200)]
docs/running: Describe GST_REGISTRY_MODE
Change-Id: I45e9fe90137d4a8306c3a5e4f636fa43425b978f
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/825>
Robert Rosengren [Mon, 10 May 2021 10:50:18 +0000 (12:50 +0200)]
registrybinary: registry file mode via GST_REGISTRY_MODE
In an embedded system where all services run as seperate users it is
useful to have the gstreamer registry readable by all so it can be
re-used, in similar manner as a host system where one user have seperate
applications running but all share same registry.
To make this possible introducing GST_REGISTRY_MODE for adjusting the
changing mode of the registry binary when finishing up with the
temporary file (which has restricted access).
Fixes: #692
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/825>
Jan Alexander Steffens (heftig) [Fri, 24 Sep 2021 09:53:56 +0000 (11:53 +0200)]
mpegtsparse: Don't assert the packet_size when filling for EOS
If the packetizer got reset for any reason (failure to find PCR?) then
the packet_size can be zero here even though we already enqueued some
packets.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1038>
Ludvig Rappe [Wed, 15 Sep 2021 14:49:16 +0000 (16:49 +0200)]
pbutils: Remove sample entry code "raw"
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1045>
Jan Alexander Steffens (heftig) [Mon, 4 Oct 2021 11:49:44 +0000 (13:49 +0200)]
multiqueue: Fix query unref race on flush
If the query has already been destroyed at this point, GST_IS_QUERY will
read garbage, can return false and we will try to unref it again.
Instead, make note of whether the item is a query when we dequeue it.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1029>
Xavier Claessens [Mon, 4 Oct 2021 23:59:58 +0000 (19:59 -0400)]
handle-subprojects-cache.py: Fix shebang
Seungha Yang [Tue, 21 Sep 2021 15:05:43 +0000 (00:05 +0900)]
codecs: mpeg2decoder: Use GstFlowReturn everywhere
boolean return value is not sufficient for representing the reason
of error in most cases. For instance, any errors around new_sequence()
would mean negotiation error, not just *ERROR*.
And some subclasses will allocate buffer/memory/surface on new_picture()
but it could be failed because of expected error, likely flushing
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1019>
Seungha Yang [Tue, 21 Sep 2021 13:21:51 +0000 (22:21 +0900)]
codecs: h264decoder: Use GstFlowReturn everywhere
boolean return value is not sufficient for representing the reason
of error in most cases. For instance, any errors around new_sequence()
would mean negotiation error, not just *ERROR*.
And some subclasses will allocate buffer/memory/surface on new_picture()
but it could be failed because of expected error, likely flushing
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1019>
Seungha Yang [Mon, 20 Sep 2021 15:23:13 +0000 (00:23 +0900)]
codecs: h265decoder: Use GstFlowReturn everywhere
boolean return value is not sufficient for representing the reason
of error in most cases. For instance, any errors around new_sequence()
would mean negotiation error, not just *ERROR*.
And some subclasses will allocate buffer/memory/surface on new_picture()
but it could be failed because of expected error, likely flushing
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1019>
Seungha Yang [Sat, 2 Oct 2021 12:22:23 +0000 (21:22 +0900)]
closedcaption: Fix broken debug function macros with MSVC build
warning C4003: not enough arguments for function-like macro invocation 'warning'
G_STMT_END macro is extended to the below form with MSVC
__pragma(warning(push)) \
__pragma(warning(disable:4127)) \
while(0) \
__pragma(warning(pop))
So MSVC preprocessor will extend it further to
__pragma(VBI_CAT_LEVEL_LOG(push)) ...
Should rename warning() debug macro function therefore.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1018>
Seungha Yang [Sat, 2 Oct 2021 11:12:07 +0000 (20:12 +0900)]
mpegtsmux: basetsmux: Don't try to return value from void function
gstbasetsmux.c(1508): warning C4098: 'free_splice': 'void' function returning a value
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1018>
Nicolas Dufresne [Fri, 1 Oct 2021 19:49:12 +0000 (15:49 -0400)]
move_mrs: Disable our commit hook during the move
As GNU indent version can be different on the user system, we see some
differences during migration thas causes conflicts. Making cherry-pick
difficults to recover without breaking the style temporily. Note that
cherry-pick continuation does not allow passing the -n option to skip
the hooks.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1017>
Nicolas Dufresne [Fri, 1 Oct 2021 19:47:44 +0000 (15:47 -0400)]
move_mrs: Fix coding style using autopep8
And some small edits for:
- E741 ambiguous variable name 'l'
- E722 do not use bare 'except'
- W504 line break after binary operator
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1017>
Víctor Manuel Jáquez Leal [Sun, 3 Oct 2021 14:53:54 +0000 (16:53 +0200)]
va: Make libgudev dependency optional.
libgudev is a problematic dependency, particularly in sandboxed
environments, such as flatpak.
This patch implements a way to get the available VA devices using
brute-forced traverse of /dev/drm/renderD* directory. Thus usable in
those sandboxed environments.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1027>
Víctor Manuel Jáquez Leal [Sun, 3 Oct 2021 13:45:58 +0000 (15:45 +0200)]
va: meson: Move back libgudev dependency to plugin.
When move the libgstva, libgudev dependency was moved as part of the
library, though it's not use by the library but the plugin. This patch
moves back libgudev dependency to the plugin.
Also HAVE_LIBDRM is move to the library which is the one who use it.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1027>
Seungha Yang [Sun, 3 Oct 2021 10:14:07 +0000 (19:14 +0900)]
nvcodec: nvh264sldec: Add support for interlaced stream
Implement missing interlaced stream support
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1026>
Seungha Yang [Sun, 3 Oct 2021 08:41:40 +0000 (17:41 +0900)]
nvcodec: nvh264sldec: Consider additional render delay DPB pictures
At least additional 4 pictures are required
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1026>
Seungha Yang [Sun, 3 Oct 2021 08:37:02 +0000 (17:37 +0900)]
nvcodec: nvvp9sldec: Fix for VP9 profile2 decoding
Fix for output video format to be selected correctly
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1026>
Seungha Yang [Sat, 2 Oct 2021 17:14:17 +0000 (02:14 +0900)]
msdk: meson: Fix build on Windows
subprojects\gst-plugins-bad\sys\msdk\meson.build:160:2: ERROR: Unknown variable "libva_dep".
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1022>
Seungha Yang [Sat, 2 Oct 2021 16:45:57 +0000 (01:45 +0900)]
d3d11: d3d11vp9dec: Fix use_prev_in_find_mv_refs value setting
"last_show_frame" should be updated based on
GstVp9FrameHeader::show_frame, not show_existing_frame
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1021>
Seungha Yang [Sat, 18 Sep 2021 13:51:53 +0000 (22:51 +0900)]
codecs: {vp8,vp9}decoder: Drain on new_sequence()
Decoder should drain queued frame (if any) and empty DPB before
starting new sequence.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/987>
Seungha Yang [Thu, 30 Sep 2021 15:27:42 +0000 (00:27 +0900)]
nvcodec: nv{vp8,vp9}sldec: Implement get_preferred_output_delay()
Equivalent to that of nvh264sldec. Use render delay in case of non-live
pipeline for the better throughput performance.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/987>
Seungha Yang [Thu, 30 Sep 2021 16:00:24 +0000 (01:00 +0900)]
codecs: {vp8,vp9}decoder: Cleanup drain code
Make them consistent with h26x decoder baseclass
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/987>
Seungha Yang [Thu, 30 Sep 2021 17:58:44 +0000 (02:58 +0900)]
codecs: vp8decoder: Fix typo
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/987>
Seungha Yang [Sat, 2 Oct 2021 11:21:41 +0000 (20:21 +0900)]
codecs: vp9decoder: add support for render delay
Some decoding APIs support delayed output for performance reasons.
One example would be to request decoding for multiple frames and
then query for the oldest frame in the output queue.
This also increases throughput for transcoding and improves seek
performance when supported by the underlying backend.
Introduce support in the vp9 base class, so that backends that
support render delays can actually implement it.
Co-authored by Seungha Yang <seungha@centricular.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/987>
Seungha Yang [Sat, 2 Oct 2021 10:47:45 +0000 (19:47 +0900)]
codecs: vp9decoder: Fix class struct documentation
s/GstVp9Decoder/GstVp9DecoderClass
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/987>
Thibault Saunier [Thu, 30 Sep 2021 22:03:40 +0000 (19:03 -0300)]
ges:uri-asset: Ignore streams with no ID
Since
0d95d9258b97 we respect the asset stream-id in `GESUriSource` so
we can not work with unknown or broken stream ID in the assets.
We just ignore them, warning about it and we should fix that in
demuxer so they don't expose pad without providing a stream id for them.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1001>
Stéphane Cerveau [Thu, 16 Sep 2021 13:18:24 +0000 (15:18 +0200)]
typefindfunctions: differentiate h265 from h264
in some cases, the algo gives the same probability
to h264 and h265 for h26x stream resulting in a h265
stream detected as a h264.
if sps/pps/vps detected, increase the probabilty.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/957>
Víctor Manuel Jáquez Leal [Thu, 30 Sep 2021 15:38:33 +0000 (17:38 +0200)]
va: meson: Update and enhance meson syntax usage.
This patch contains two updates:
1. Instead of checking for dependency already checked just to verify a
version, we use the dependency version API.
2. Update the deprecated function get_pkgconfig_variable.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/997>
Víctor Manuel Jáquez Leal [Thu, 30 Sep 2021 15:43:09 +0000 (17:43 +0200)]
msdk: meson: Don't get dependency variable before it's valid.
It's possible to have installed MediaSDK environment
package (libmfx-dev in Debian) without libva environment package. This
setup will lead to a breakage of meson configuration.
The fix is to get the libva's driver directory variable after the
dependency is validated as found.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/998>
Marc Leeman [Thu, 30 Sep 2021 11:32:44 +0000 (13:32 +0200)]
ristsink: set sync to FALSE on RTCP sink
See commit
921e9a54: rtpsink: set sync off on rtcp_sink
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/993>
Marc Leeman [Thu, 30 Sep 2021 11:19:40 +0000 (13:19 +0200)]
rtpsink: set sync off on rtcp_sink
When using the following setup (the error can be reproduced using
simpler sender pipelines), the receiver resynchronises the clock on RTCP
packets. The effect was that a couple seconds were cut out of the
playback because an initial RTCP packet was dropped.
When sending out all RTCP packets (setting sync=FALSE on the RTCP
updsink), the playback is fine.
This syncs rtpsink with rtpsrc (where this property was already set).
gst-launch-1.0 filesrc location=899-en.mp3 \
! mpegaudioparse \
! mpg123audiodec \
! audioconvert \
! audioresample \
! avenc_g722 \
! rtpg722pay
! rtpsink uri=rtp://239.1.2.3:1234
gst-launch-1.0 uridecodebin rtp://239.1.2.3:1234?encoding-name=G722 \
! autoaudiosink
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/993>
Sebastian Dröge [Fri, 1 Oct 2021 10:51:37 +0000 (13:51 +0300)]
rtsp-session: Don't unref medias twice if it is removed inside gst_rtsp_session_filter() while the mutex is shortly released
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/757
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1004>
Marc Leeman [Thu, 17 Sep 2020 13:06:38 +0000 (15:06 +0200)]
rtpmanagerbad: do not set iface on sink
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/994>
Jordan Petridis [Fri, 1 Oct 2021 09:11:04 +0000 (12:11 +0300)]
ci: Rebuild windows image
Get updates and newer ca-certificates in.
Also update the way we install chocolatey
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1002>
Thibault Saunier [Thu, 30 Sep 2021 15:47:20 +0000 (12:47 -0300)]
ci:doc: Rewrite script to import doc on fdo ensuring the right job is used
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/999>
Thibault Saunier [Thu, 30 Sep 2021 13:37:05 +0000 (10:37 -0300)]
move-script: Do not expect user to be members of the gstreamer project
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/990>
Thibault Saunier [Thu, 30 Sep 2021 13:36:00 +0000 (10:36 -0300)]
move-script: Handle users not having forked gstreamer core
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/990>
Stéphane Cerveau [Wed, 29 Sep 2021 09:23:38 +0000 (11:23 +0200)]
core: remove outdated mention to gst-build
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/956>
Seungha Yang [Fri, 27 Aug 2021 10:19:57 +0000 (19:19 +0900)]
mfdeviceprovider: Add support for device update
Similar to the wasapi2 plugin, GstWinRT library will be used for UWP,
and adding new GstWin32DeviceWatcher object implementation for
Win32 desktop application.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/947>
Seungha Yang [Thu, 26 Aug 2021 13:38:37 +0000 (22:38 +0900)]
wasapi2deviceprovider: Add support for device update
... by using newly implemented GstWinRT library
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/947>
Seungha Yang [Thu, 26 Aug 2021 10:47:51 +0000 (19:47 +0900)]
libs: Introduce GstWinRT library
Adding a helper library for various WinRT specific implementations.
Currently this library supports only DeviceWatcher abstraction object
which can be used for dynamic device add/remove detection.
See also
https://docs.microsoft.com/en-us/uwp/api/windows.devices.enumeration.devicewatcher?view=winrt-20348
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/947>
Tim-Philipp Müller [Sun, 26 Sep 2021 00:55:39 +0000 (01:55 +0100)]
video: make GST_VIDEO_FORMAT_INFO_IS_*() macros booleans
Spotted by Stirling Westrup.
Fixes #726
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/926>
Tim-Philipp Müller [Sun, 26 Sep 2021 00:52:12 +0000 (01:52 +0100)]
audio: make GST_AUDIO_INFO_IS_UNPOSITIONED return a boolean
Luckily this worked right since the flag we check is the
only flag and its vale is 1, but feels more correct to
actually check for non-zeroness.
Spotted by Stirling Westrup.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/926>
Thibault Saunier [Wed, 29 Sep 2021 13:07:48 +0000 (10:07 -0300)]
scripts:move_mrs: Revert cherry-picking when aborting
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/959>
Xavier Claessens [Wed, 29 Sep 2021 14:21:21 +0000 (10:21 -0400)]
Add .editorconfig used by some IDE like vscode
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/969>
Xavier Claessens [Wed, 29 Sep 2021 13:56:58 +0000 (09:56 -0400)]
Fix gitignore
- `*build*/` is not needed because Meson puts a .gitignore in builddir
already.
- `meson/` why?
- `/gst*` is too wide, it includes e.g. gst-env.py, list symlinks
explicitly instead.
- `subprojects/*` excludes all .wrap files, and `!subprojects/gst*` is
not enough because e.g. `macos-bison-binary` is still ignored. Instead
ignore only directories except those we include in our git repository.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/969>
Xavier Claessens [Tue, 28 Sep 2021 19:45:19 +0000 (15:45 -0400)]
Delete .arcconfig files
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/951>
Thibault Saunier [Wed, 29 Sep 2021 12:22:06 +0000 (09:22 -0300)]
indent: Ignore any changes in medias/
It is a submodule and we do not care about it
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/952>
Thibault Saunier [Tue, 28 Sep 2021 19:29:12 +0000 (16:29 -0300)]
docs: Always build documentation on gstreamer/gstreamer main branch
So artifacts can the be imported on gst.fd.o.
And update the importation script accordingly
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/952>
Xavier Claessens [Mon, 27 Sep 2021 16:12:22 +0000 (12:12 -0400)]
ci: Remove useless GIT_LFS_SKIP_SMUDGE and GIT_STRATEGY
GIT_LFS_SKIP_SMUDGE is not needed because we don't have git-lfs any
more.
GIT_STRATEGY is not needed because "fetch" is the default strategy.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/939>
Tim-Philipp Müller [Tue, 28 Sep 2021 23:05:21 +0000 (00:05 +0100)]
docs: faq: monorepo: add another question and clarify bisecting section
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/953>
Tim-Philipp Müller [Tue, 28 Sep 2021 23:04:37 +0000 (00:04 +0100)]
docs: faq: monorepo: import gitlab access token dialog screenshot
Best not to rely on external hosting.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/953>
Olivier Crête [Mon, 27 Sep 2021 20:11:33 +0000 (16:11 -0400)]
rtphdrext: Give "inherited" direction in set_attributes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/906>
Olivier Crête [Mon, 27 Sep 2021 14:19:51 +0000 (10:19 -0400)]
rtphdrext: Use NULL-safe case insensitive comparison
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/906>
Olivier Crête [Mon, 27 Sep 2021 14:01:02 +0000 (10:01 -0400)]
rtphdrext: Print warnings when trying to parse caps
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/906>
Olivier Crête [Fri, 24 Sep 2021 17:38:39 +0000 (13:38 -0400)]
rtphdrext: Pass just the attributes to the subclass
Since the base class now does the parsing, there is no need
to reproduce that code in all the subclasses, just pass the attributes
which are the only relevant bit anyway.
Also, only store the direction if the subclass accepted the caps
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/906>
Olivier Crête [Fri, 24 Sep 2021 17:19:22 +0000 (13:19 -0400)]
rtphdrext: Use fail_unless_equals_string() to make tests easier to debug
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/906>
Olivier Crête [Fri, 24 Sep 2021 17:02:13 +0000 (13:02 -0400)]
rtphdrext test: Use helper function for caps
Also, let the base class parse the direction for us.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/906>
Olivier Crête [Fri, 24 Sep 2021 16:52:37 +0000 (12:52 -0400)]
rtphdrext-rfc6464: Use helper function to set caps field
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/906>