Andoni Morales Alastruey
d0ab931628
pre-commit: install gst-indent through pip
...
Depends on: https://gitlab.freedesktop.org/gstreamer/gst-indent/-/merge_requests/13
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8402 >
2025-02-05 17:43:57 +00:00
Stéphane Cerveau
bd62300d22
vkvideoencodeh26x: tests: set constant qp
...
Set constant qp to 26 in between 0 and 51, the qp range
for h264 and h265.
minQp in case of ANV is 10 for h265
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8407 >
2025-02-05 16:48:56 +00:00
Seungha Yang
fbf698cc0b
mediafoundation: Enable MinGW build
...
Update MinGW toolchain in cerbero can support MediaFoundation
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8406 >
2025-02-05 16:03:10 +00:00
Seungha Yang
7108147d78
mediafoundation: Use DEFINE_GUID instead of DECLSPEC_UUID
...
MinGW will not define IID for custom COM object
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8406 >
2025-02-05 16:03:10 +00:00
Seungha Yang
f57162deeb
mediafoundation: Fix GUID_NULL related MinGW build error
...
Include cguid.h for GUID_NULL
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8406 >
2025-02-05 16:03:10 +00:00
Seungha Yang
66b92465cd
mediafoundation: Fix various GCC warnings
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8406 >
2025-02-05 16:03:10 +00:00
Corentin Damman
0268ee9c52
pluginloader-win32: create no window
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8387 >
2025-02-05 14:18:22 +00:00
Robert Mader
12d2a4e2a1
matroskademux: Implement rotation tag support
...
Similar to qtdemux.
Tested against other Gst elements and MPV. Note that the later
apparently does not show correct results for flipped values.
In particular the Yaw value seems to get ignored by many clients.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8319 >
2025-02-05 13:26:08 +01:00
Robert Mader
a7c2899990
matroskamux: Implement rotation tag support
...
Similar to qtmux, but for mkv and webm containers.
Tested against other Gst elements and MPV. Note that the later
apparently does not show correct results for flipped values.
In particular the Yaw value seems to get ignored by many clients.
Can be tested with:
```
gst-launch-1.0 \
videotestsrc num-buffers=90 ! \
taginject tags="image-orientation=rotate-270" ! \
capsfilter caps=video/x-raw,width=640,height=480,max-framerate=30/1 ! \
videoconvert ! \
queue ! \
vp8enc ! \
queue ! \
webmmux ! \
filesink location=./test.webm
```
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8319 >
2025-02-05 12:03:26 +00:00
Robert Mader
b2702b6f10
matroska: Add projection IDs
...
These will allow us to support rotate methods with matroska v4 and
the corresponding webm.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8319 >
2025-02-05 12:03:26 +00:00
He Junyan
652cd2470f
Doc: update the document for the vvc decoder
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5865 >
2025-02-05 18:57:06 +08:00
He Junyan
e25ca874e1
va: Implement the VA h266 decoder
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5865 >
2025-02-05 18:57:06 +08:00
He Junyan
0ce5fe3cc9
codecs: Add the H266/VVC decoder base class
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5865 >
2025-02-05 18:57:06 +08:00
L. E. Segovia
68f964a635
gst-indent: Synchronize defaults with our fork of GNU indent
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8409 >
2025-02-05 09:57:50 +00:00
L. E. Segovia
2b5ab13f29
ci: pre-commit: Fix the gst-indent hook not implementing filtering criteria
...
There's a different way to list the files between the former pre-commit
hook (which ran gst-indent directly on the output of git diff-index)
and the former CI check job (which ran gst-indent-all wholesale).
It can be easily addressed by detecting CI_PROJECT_NAME at listing time.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8409 >
2025-02-05 09:57:50 +00:00
L. E. Segovia
915b917ba6
gst-indent: Refactor indent call to make it callable from other scripts
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8409 >
2025-02-05 09:57:50 +00:00
Philippe Normand
5de3cfca31
oggdemux: Fix racy decode error
...
Sometimes the seek to the end of file to determine the duration would trigger a
reset of the source pads, that would confuse the decoder downstream and trigger
an error. So the proposed fix is to not reset pads when the segment event being
processed is the consequence of a seek performed to determine the duration.
Fixes #4212
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/937 >
2025-02-04 18:56:25 +00:00
Seungha Yang
bf98e200b2
mfdevice: Unregister device notification callback on stop
...
... as intended
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8405 >
2025-02-03 22:34:27 +00:00
Seungha Yang
972da9cab9
mfvideoenc: Fix profile string check
...
profile_str is not std::string. Use strcmp instead
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8405 >
2025-02-03 22:34:27 +00:00
Seungha Yang
73f8de3305
mfdevice: Fix memory leak
...
Release resources on dispose() as intended
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8405 >
2025-02-03 22:34:27 +00:00
Seungha Yang
91def8d4ad
meson: Check d3d12video header for MinGW build
...
Old MinGW toolchain does not ship the header
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8400 >
2025-02-03 21:24:47 +00:00
Michael Tretter
1a8143f721
videotestsrc: fix build if adder is disabled
...
The videotestsrc is not build if the adder plugin is disabled. This is a
copy/paste error introduced in Commit 3de86b2b97
("docs: port plugins to
explicit sources").
Fix the check to actually test the 'videotestsrc' option.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8399 >
2025-02-03 18:57:34 +00:00
Sebastian Dröge
97a6a8213c
avcodecmap: Use gst_value_list_append_and_take_value() in two places
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8379 >
2025-02-03 16:07:37 +00:00
Sebastian Dröge
6d772f6ba3
avcodecmap: Use actually supported channel counts for S302M
...
Only 2/4/6/8 channels are supported. Also this makes sure that the correct
sample rate is enforced (48kHz) in the template caps instead of allow any sample
rate and failing at runtime.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8379 >
2025-02-03 16:07:31 +00:00
Sebastian Dröge
a1c123d342
cc708overlay: Deprecate element in favour of cea708overlay
...
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3459
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8397 >
2025-02-03 09:51:53 +00:00
Tomas Granath
fa9b630fc8
matroskademux: Mark streams as EOS when outside the requested segment
...
Ensure that streams with no (more) data are marked as EOS when
advancing past the requested segment. Without this change the
EOS would be postponed to the end of the file in that case.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8395 >
2025-02-03 09:06:28 +00:00
Seungha Yang
353d963c77
d3d12mipgen: Respect requested mip levels
...
Don't waste GPU power by generating more levels than requested
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8394 >
2025-02-02 21:01:42 +09:00
Seungha Yang
1dc09d67fe
d3d12mipgen: Serialize root signature only once
...
... and reuse serialized blob
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8394 >
2025-02-02 20:51:43 +09:00
Carlos Bentzen
4b0d555056
libav: add support for VVC/H.266 decoder
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7637 >
2025-02-02 08:53:33 +00:00
Ruben Gonzalez
df7a8c8c40
meson: use nls option to ENABLE_NLS
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7017 >
2025-02-01 12:27:01 +00:00
L. E. Segovia
d224825f40
ci: Drop gst-indent-all as it's now managed by pre-commit
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:15:26 -03:00
L. E. Segovia
2a5758bcf5
ci: Don't swallow gitlint warning
...
Make sure it's reported somewhere readily accessible.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:15:26 -03:00
Andoni Morales Alastruey
44720cd2f4
pre-commit: add documentation on how to use it
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:15:26 -03:00
Andoni Morales Alastruey
8c1ffd09d1
pre-commit: add a helper script to check commits individually
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:15:26 -03:00
L. E. Segovia
2e11649264
docs: Move all references to gst-indent-1.0
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:15:26 -03:00
Andoni Morales Alastruey
3213e641ec
hooks: use pre-commit to run all hooks
...
Migrate all the pre-commit and commit-msg hooks to use
pre-commit (https://pre-commit.com/ )
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:15:25 -03:00
Andoni Morales Alastruey
4ad6d4f99d
csharp: do not format autogenerated code
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:14:43 -03:00
Tim-Philipp Müller
eaec7d9acb
bad: tools: update gst-{app,element,project}-maker for new gst-indent
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:14:43 -03:00
Tim-Philipp Müller
bc83c07727
scripts: update update-orc-dist-files.py scripts for new gst-indent
...
And fix python indentation with autopep8
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:14:43 -03:00
Tim-Philipp Müller
41c097ed6c
docs: update contributing + FAQ docs for gst-indent
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:14:43 -03:00
L. E. Segovia
fab3da528e
gst-indent: build our own indent tool and make it available in the devenv
...
No more formatting mismatches owing to different GNU indent
versions shipped by different distro versions.
See #340
Co-authored-by: L. E. Segovia <amy@centricular.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 19:14:41 -03:00
Tim-Philipp Müller
29132f1428
gst-env.py: fix formatting issue
...
gst-env.py:447:15: E271 multiple spaces after keyword
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192 >
2025-01-31 18:43:53 -03:00
Carlos Bentzen
8b464cd282
libav: map GST_VIDEO_FORMAT_GRAY10_LE16 to AV_PIX_FMT_GRAY10LE
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8388 >
2025-01-31 14:17:05 +00:00
Seungha Yang
cc6941ed9a
d3d12converter: Fix SRV descriptor heap size
...
Converter was allocating smaller size of descriptor heap
than required size when auto-mipgen is enabled
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8391 >
2025-01-31 13:16:50 +00:00
Seungha Yang
a91275a71e
examples: Add h264parser example
...
An example to show how to detect frame type using h264parser
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8338 >
2025-01-31 10:53:19 +00:00
Jan Schmidt
31a3172bfe
v4l2vidoedec: Fix caps negotiation in non-DRM case
...
Append acquired_caps to the filter_caps being built,
instead of a 2nd copy of acquired_drm_caps.
Fix a regression introduced in
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7633
when downstream doesn't support DRM output.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8385 >
2025-01-30 12:33:07 +00:00
Piotr Brzeziński
a88eda66d2
osxaudio: Always expose max amount of channels with no positions
...
For outputs with a high number of channels, macOS has a bug where
initially CoreAudio will report incorrect positions for all channels,
but after you run Audio MIDI Setup and configure the speaker layout
there, macOS will always report those few as positioned, with no option
to revert that (other than deleting some internal files).
In such scenario our code would just ignore all the unpositioned
channels. Since you can only position max. 16 channels in macOS, if you
had more on your output device, those would be unusable.
This commit makes sure that in addition to the usual positioned layout
(if there is one), we will expose caps for a no-positions layout that
always has the maximum amount of channels available.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8311 >
2025-01-30 09:53:15 +00:00
Piotr Brzeziński
c5c5327df6
osxaudio: Work around invalid channel positions from CoreAudio
...
By default, for devices with larger amounts of outputs, CoreAudio can
provide invalid channel labels/positions, simply by starting at 0 and
incrementing forward. For example, values 19 through 32 are not valid
according to the CoreAudioBaseTypes.h header, but if your device has >19
output channels, you will find CoreAudio using those values.
This is most likely a bug in CoreAudio, since in that case it should use
unpositioned labels (e.g. _Discrete_X) instead.
This commit aims to work around this by overriding all channels to be
unpositioned if the case above is detected.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8311 >
2025-01-30 09:53:15 +00:00
Sebastian Dröge
83e95af6e3
mpegtsdescriptor: Add (transfer none) annotation to out parameter of parse_registration()
...
Out parameters are (transfer full) by default.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8380 >
2025-01-30 01:06:55 +00:00
Colin Kinloch
e0e7a11089
wayland: De-dupe filling caps format fields
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8268 >
2025-01-29 21:04:16 +00:00