Nirbheek Chauhan
4822c9a1e2
y4mdec: Fix some debug log categories
...
Fatal errors should be logged as ERROR, extremely spammy messages
should be logged with TRACE
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5997 >
2024-02-06 12:42:54 +00:00
Nirbheek Chauhan
56b16e5232
y4mdec: Parse extended headers written out by FFmpeg
...
References:
https://wiki.multimedia.cx/index.php/YUV4MPEG2
https://github.com/FFmpeg/FFmpeg/blob/eee3b7e2/libavformat/yuv4mpegenc.c#L74-L166
The primary purpose is to add high bit-depth y4m support, which is
commonly used for testing codecs.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5997 >
2024-02-06 12:42:54 +00:00
Nirbheek Chauhan
968ebd26ab
y4mdec: Simplify header parsing
...
Use string parsing instead of pointer arithmetic, which makes the code
easier to understand and less error-prone. This has no functional
changes, and is preparation for the next commit, which extends the
header parsing.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5997 >
2024-02-06 12:42:54 +00:00
sergey radionov
ebc51e3253
nice: resolve result should go to nice helper thread
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5921 >
2024-02-06 09:12:13 +00:00
Daniel Morin
8afc305fe2
onnx: fix, update tensor producer and consumers
...
- Propagate GstTensor.type becoming to GstTensor.data_type to tensor producer
(onnx) and consumer (TensorDecoder)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6061 >
2024-02-05 22:27:59 -05:00
Olivier Crête
7271410391
analyticsoverlay: Don't error out on lack on dependency in auto mode
...
If the option is set to auto, it shouldn't fail if the dependency is missing.
Fixes #3266
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6060 >
2024-02-05 14:59:06 -05:00
Sebastian Dröge
ddd9dcc559
ajasink: Remove workaround for NTV SDK bug that is fixed since a while
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6056 >
2024-02-05 16:24:13 +00:00
Víctor Manuel Jáquez Leal
4949c6d153
vkh264dec: GST_USE_UNSTABLE_API for plugin compilation
...
The code to include H264 decoder base class header wrongly disabled the unstable
API message. This patch fixes it by setting it as a compilation define of the
plugin.¡
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6055 >
2024-02-05 14:25:38 +01:00
Víctor Manuel Jáquez Leal
2c660ee8f5
vkupload: remove unused parameter fetching
...
It's not required to create a vulkan buffer to fetch its size since all this
handled by internally by the allocator and it was never needed, so it looks like
dead code. Let's delete it.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6028 >
2024-02-05 10:38:54 +00:00
sergey radionov
39f2afbd45
webrtcbin: it's better to have thread default main context
...
on thread bound to that main context.
fixes #3271
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6053 >
2024-02-05 00:56:47 +00:00
Seungha Yang
35e5178f0e
d3d12: Fix potential self thread join
...
Fence data could hold GstD3D12Device directly or indirectly.
Then if it's holding last refcount, the device object will
be released from the device object's internal thread,
and will try join self thread.
Delegates it to other global background thread to avoid
self thread joining.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6042 >
2024-02-05 01:37:32 +09:00
Seungha Yang
1c0f224f05
d3d12memory: Remove unused method
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6042 >
2024-02-03 23:22:58 +09:00
Olivier Crête
3325a10f57
onnx: Port SSD detector to C
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6001 >
2024-02-02 18:47:52 -05:00
Olivier Crête
5e1291fd86
onnx: Only read labels file one and use GIO
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6001 >
2024-02-02 18:43:22 -05:00
Olivier Crête
13de5160be
onnx: Add more tensor data types
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6001 >
2024-02-02 18:43:21 -05:00
Olivier Crête
e3d8168a5a
onnx: Remove unecessary gst_tensor_meta_get_all_from_buffer
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6001 >
2024-02-02 18:43:21 -05:00
Olivier Crête
2034f776bb
onnx: Merge tensor into tensor meta file
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6001 >
2024-02-02 18:43:21 -05:00
Loïc Le Page
eb416d5077
webpenc: add animation properties
...
- animation background color
- number of animation loops
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5994 >
2024-02-02 17:23:08 +00:00
Loïc Le Page
05bd35f625
webpenc: don't allow changing resolution in animation mode
...
- fails on image resolution changes in animation mode
- fails with a log message on invalid color spaces
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5994 >
2024-02-02 17:23:08 +00:00
Loïc Le Page
9fe504c423
webpenc: fix naming and libwebp API calls
...
- uniformize parameters naming
- call symetric init and clear functions systematically from libwebp API
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5994 >
2024-02-02 17:23:08 +00:00
Mathieu Duponchelle
a6409525ef
webpenc: add support for animated WebP
...
The libwebp API doesn't match very well with the GstVideoEncoder
API, as it only delivers an unframed bitstream once all pictures
have been processed, which means we can only push a single buffer
manually on our srcpad on finish().
Supporting animated webp is still valuable, and the feature is
behind an opt-in property.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5994 >
2024-02-02 17:23:08 +00:00
Olivier Crête
351f823704
analytics: Always return a string from mtd_type_get_name()
...
It makes it easier to use in printf() style strings without worrying
about getting a NULL.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6035 >
2024-02-02 15:49:56 +00:00
Jonas K Danielsson
7c4e6442db
srt: Add basic check test of srt[src|sink]
...
Add some basic tests for the srtsrc and the srtsink and set us up for
more advanced tests down the road.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5440 >
2024-02-02 15:08:02 +00:00
Jonas K Danielsson
e7ae5f0995
srt: Add more fields to application/x-srt-statistics
...
In order to see how many packets where retransmitted and how many was
dropped we add some new fields.
Please see https://github.com/Haivision/srt/blob/master/docs/API/statistics.md
For details about the new fields.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5322 >
2024-02-02 13:57:26 +00:00
Heiko Becker
567a2a7f67
neon: Allow building against neon 0.33.x
...
From its NEWS file:
"API and ABI backwards-compatible with 0.27.x and later"
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6036 >
2024-02-02 00:22:39 +01:00
Philippe Normand
1b01415c3b
srtpenc: Fix potential leak
...
When attempting to process a buffer after the rtcp session was closed the output
buffer memory would remain referenced.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6029 >
2024-01-31 18:46:59 +00:00
Daniel Morin
95464c8977
analyticsoverlay: add object-detection overlay
...
- Overlay analytics-meta-od attached to video buffer
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5768 >
2024-01-31 16:15:06 +00:00
Daniel Morin
8122f623f6
analytics: Change indexes type from i32 -> gsize
...
- gst_analytics_cls_mtd_get_length() return a gsize, this type dicated index
type for gst_analytics_cls_mtd_get_quark() and
gst_analytics_cls_mtd_get_level().
- Minor cleanup/improvement on index validation.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6018 >
2024-01-31 15:22:43 +00:00
Daniel Morin
f1d2147ba8
analytics: add test for OD confidence level retrieval
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6017 >
2024-01-31 14:40:56 +00:00
Daniel Morin
42227d7de3
analytics: add api on OD to retrieve bbox confidence
...
- Add a specific api to retrieve bbox confidence level without having to
retrieve it's location.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6017 >
2024-01-31 14:40:56 +00:00
Seungha Yang
6dc902a962
nvcodec: Add JPEG encoder
...
Adding nvJPEG library based JPEG encoder element
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6021 >
2024-01-31 12:51:28 +00:00
Seungha Yang
fc4b136ac8
nvcodec: Move runtime compiler check to plugin init function
...
Required information for other elements
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6021 >
2024-01-31 12:51:28 +00:00
Thibault Saunier
5d4bf4c6a5
bad: Update plugins cache
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:24 +00:00
Thibault Saunier
4dcea207d9
auto: Reuse subbins instead of recreating them over and over
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:24 +00:00
Thibault Saunier
79612de803
autoconvert: Force raw memory when using videoconvertscale
...
videoconvertscale advertises `ANY` feature, but it supports it only
in passthrough. Our goal with autoconvert is to ensure that conversion
is possible with the elements that are being plugged so we avoid
plugging `videoconvertscale` if the memory type is not system memory.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:24 +00:00
Thibault Saunier
9821c0ae96
autovideoconvert: Use cudaconvert for formats not allowed by glcolorconverts
...
There are some pixel formats supported by `cudaconvert` but not `glcolorconvert`
so prefer using `cudaconvert` for those cases rather than using
`videoconvertscale` and system memory
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:24 +00:00
Thibault Saunier
9908d11dab
auto: Add an 'autovideoflip' element
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:24 +00:00
Thibault Saunier
aa7c49ded8
autoconvert: Accept new caps when they are exactly equal to previous ones
...
That basically was overlooked as the code was clearly intending to do that
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:24 +00:00
Thibault Saunier
e41e31f2ae
auto: Add a gstautodeinterlace element
...
Which can do colorspace conversion if necessary.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:24 +00:00
Thibault Saunier
b0fdbcec64
autovideoconvert: Handle passing bin description instead of factories
...
This way we can build our own well know bins for conversion keeping the
code simple.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:24 +00:00
Thibault Saunier
292d8453d3
autoconvert: Factor out a new GstBaseAutoConvert class
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:23 +00:00
Thibault Saunier
f817afb865
auto: Expose colorspace and scaler elements for well know elements
...
And require Scaler in the class of elements to be plugged by
autovideoconvert
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:23 +00:00
Thibault Saunier
e153c558c7
autoconvert: Handle reconfiguring on the srcpad
...
Only upstream renegotiation was properly handled, we needed to answer
that when downstream forces a renegotiation we take into account the
new downstream restrictions.
And add tests for it
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:23 +00:00
Thibault Saunier
69db5b77d1
autoconvert: Remove unused elements from the bin
...
Instead of letting all the elements that were added into the bin,
add them only when strictly needed and removed them when we stop using
them.
With previous refactoring we are keeping them in our own hashmap in
amy case so we can keep reusing the same elements as before.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:23 +00:00
Thibault Saunier
8266f534a7
autovideoconvert: Ignore elements with rank == NONE
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:23 +00:00
Thibault Saunier
a0a9e9e3cf
autoconvert: Fix the way we compare element types
...
We used to conside elements that were subclassses of another
element type as being the same (for example with videoconvertscale,
bother videoconvert and videoscale are subclasses of videoconvertscale
and that code was lost)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:23 +00:00
Thibault Saunier
17029974e0
autoconvert: Stop using qdata and unsafe weak refs
...
We are still using internal pads that are not added to the bin
but we now have a subclass and avoid qdata and weak refs as
they are not MT safe.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:23 +00:00
Thibault Saunier
4cfe898f9b
autovideoconvert: Make it a subclass of GstAutoConvert
...
Instead of a wrapper, making it much simpler.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:23 +00:00
Thibault Saunier
8be2ae303a
autoconvert: Add a 'factory-names' property
...
Making the element more gst-launch friendly.
This also stop trying to handle usage of ->factories atomic and instead
use the object lock to handle them.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:23 +00:00
Thibault Saunier
1409826232
autoconvert: Remove not thread safe use of ->current_subelement
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899 >
2024-01-31 11:00:22 +00:00