Olivier Crête
cb6edaf6f8
videorate: Error out on streams with no way to guess framerate
...
This is better than going into an infinite loop.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/761 >
2020-07-20 22:05:57 +00:00
Olivier Crête
323554a31a
videorate: Add test that reproduces infinite loop
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/761 >
2020-07-20 22:05:57 +00:00
Nicolas Dufresne
98b44fdb46
video: Add support for linear 32x32 NV12 tiles
...
This adds linear 32x32 NV12 based tiles. This format is notably used by
Allwinner VCU and exposed in V4L2 as being "SUNXI Tiled" format. In this
patch we generalize the plane info calculation so we can share this part
with the 4L4 variant.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/754 >
2020-07-14 21:43:56 -04:00
Nicolas Dufresne
7d1028424c
video: Add NV12_4L4 tile format
...
This format is produced by Verisillicon VC8000D VPU decoder, it is a simple 4x4
tiling layout in a linear way.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/753 >
2020-07-14 17:33:31 +00:00
Seungha Yang
cb34faaa17
tests: appsrc: Add unit test for custom segment
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/663 >
2020-07-10 07:52:53 +00:00
Hosang Lee
f84f7a2cec
tests: subparse: add test for webvtt without hour component
...
Test for webvtt without hour component.
mm:ss.000
2020-06-18 09:06:32 +09:00
Guillaume Desmottes
1b4ab9f033
tests: enforce I420 format
...
Tests are assuming video is I420 but are not actually enforcing it.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/689 >
2020-06-09 08:09:58 +00:00
Edward Hervey
78444fc622
tests: Avoid hang with decodebin test
...
When adding elements dynamically to a pipeline one should never guess what the
curren/target state is, and instead use `gst_element_sync_state_with_parent()`.
Fixes racy hang when running within valgrind
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/692 >
2020-06-08 08:11:00 +02:00
Sebastian Dröge
8966083178
audioresample: Add new test that checks for downstream renegotiation
...
This test always consumes 48kHz and outputs different sample rates based
on downstream renegotiation. Previously this would produce completely
wrong timestamps and not output all samples.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/670 >
2020-05-27 17:06:08 +00:00
Sebastian Dröge
71c937b565
audioresample: Fix up test_live_switch
...
Actually check that we get back all samples, which we didn't before
because no draining was happening. Also remove commented out 0.10 code
and related comments.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/670 >
2020-05-27 17:06:08 +00:00
Edward Hervey
9280d4b8f5
check: verify gst_gl_display_add_context()
...
As is done almost everywhere else. Doesn't cost anything.
CID #1462817
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/657 >
2020-05-09 07:31:04 +02:00
Matthew Waters
a4e49ba8c9
gl: avoid deadlock querying for OpenGL context
...
If there are two elements and threads attempting to query each other for
an OpenGL context. The locking may result in a deadlock.
We need to unlock each element's context_lock when querying another
element for the OpenGL context in order to allow any other element to
take the lock when the other element is querying for an OpenGL context.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/642 >
2020-04-24 18:03:16 +10:00
Matthew Waters
4a7a247293
tests: add glviewconvert users integration unit test
...
Catch all smoke test for ensuring a basic pipeline can negotiate
successfully.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/638 >
2020-04-24 12:12:31 +10:00
Mathieu Duponchelle
caca46e0e6
subparse: convert from pango-markup to utf8 ..
...
when downstream requires it
2020-03-27 15:27:06 +00:00
Matthew Waters
7e2073000a
glbasefilter: add support for changing the display
...
Each element will remove its usage of the old display and context and
try to retrieve a new GL context.
2020-03-03 02:11:52 +00:00
Mathieu Duponchelle
54cc985810
videoaggregator: handle gap buffers properly
...
This simply implies not trying to "prepare" those buffers,
as mapping an empty buffer to a video frame does not make
much sense.
This also adds a simple test in compositor that performs
some trivial checking of the handling of gap events, the test
was not failing before, but an error was logged, this is
no longer the case.
Fixes #717
2020-01-30 19:02:44 +01:00
Tim-Philipp Müller
64b6c4796a
multifdsink: remove defunct include guarded by unused HAVE_FIONREAD_IN_SYS_FILIO
...
The configure check for this went away in 2012 in commit cd3eee.
2019-12-09 07:33:55 +00:00
Mart Raudsepp
dec2750e96
tests: expand compositor repeat-after-eos tests for multiple pads
...
If there are any pads with repeat-after-eos NOT set, then the compositor
should EOS after all of those pads have gone EOS, but not before all
repeat-after-eos pads have as well.
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/664
2019-11-27 22:21:14 +02:00
Sebastian Dröge
c363747251
videorate: Fix max-duplication-time handling
...
Previously this would've only set discont=TRUE and then for all future
buffers simply returned immediately.
Instead we also need to
a) drain previous input until its buffer time
b) update next_ts and base_ts accordingly for the gap
c) actually store the new buffer after the gap so it can be used in
the future and so the old buffer before the gap is gone
Also update the unit test accordingly so that it actually tests for this
behaviour. Previously it only tested that after the gap we got no output
at all.
2019-11-04 19:01:10 +00:00
Seungha Yang
dc274ea9ca
compositor: Add support for VUYA format
...
Reversed order of AYUV format. Most of core methods are prepared
already.
2019-11-04 14:50:28 +00:00
Tim-Philipp Müller
289d8e53e2
Remove autotools build system
2019-10-13 14:15:43 +01:00
Edward Hervey
7eb98ba4f3
check: Don't use real audio devices for tests
...
When checking the behaviour of live seeking on audiomixer or
adder we don't *really* need real audio devices. audiotestsrc
in live mode is enough to test the behaviour of those elements.
Also avoids people repeatedly wasting hours trying to figure out
whether that failing behaviour is due to their code or not.
2019-10-10 16:58:26 +02:00
Thibault Saunier
909baa2360
Pass the code through codespell
2019-08-30 13:05:36 +00:00
Mathieu Duponchelle
f72e71903a
aggregator tests: fix seek event seqnums
...
In
https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/207 ,
aggregator starts ignoring seek events with duplicate seqnums. We thus
need to update the seqnum of events when reusing them multiple times.
2019-07-19 18:53:43 +02:00
Mathieu Duponchelle
81ae045e3d
valgrind: free buffer list in audiorate test
2019-06-05 20:51:47 +00:00
Mathieu Duponchelle
59dd2af6d6
compositor: remove invalid test
...
With https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/159 ,
a single flush start on an aggregator sinkpad will start the flushing
process if the aggregator isn't already flushing.
The behaviour that this test was checking for is thus no longer correct
2019-06-03 14:05:14 +00:00
Antonio Ospite
f8bed33d4b
test: add subparse test for SRT subtitles with no newline at the end
...
Add a test to verify that SRT subtitles work even if the last chunk does
not have an empty line after it.
2019-05-06 13:28:02 +02:00
Antonio Ospite
1c454fdafc
subparse: fix pushing WebVTT cue when last is not an empty line
...
If the last WebVTT cue does not have an empty line after it, or if it
does not end with a newline at all, it does not get pushed out and it
won't be displayed.
gst_sub_parse_sink_event() already handles the issue for other subtitle
formats, enable handling it for GST_SUB_PARSE_FORMAT_VTT too.
While at it also add a test for this case.
2019-05-06 13:28:02 +02:00
Matthew Waters
d5b18ae58f
tests/glbin: setting a full reference means we need to unref
...
Fixes the element leaks in the full variants of the glbin test.
2019-03-06 23:32:18 +11:00
Tim-Philipp Müller
273da3ed2f
tests: vorbisec: fix leaks in unit test
2019-03-06 10:51:40 +00:00
Tim-Philipp Müller
6f6c73b223
tests: audiomixer: fix leaks in unit test
2019-03-06 10:51:40 +00:00
Tim-Philipp Müller
9854d5151a
tests: audioconvert: fix leaks in unit test
2019-03-06 10:51:40 +00:00
Seungha Yang
541d598fad
tests: audiorate: Don't compare string with enum
...
../subprojects/gst-plugins-base/tests/check/elements/audiorate.c(192): warning C4047
Meaningful validation at that point seems to checking output GstAudioFormat
of gst_audio_format_from_string()
2019-03-04 22:49:23 +09:00
Vivia Nikolaidou
8ecc3b9730
videorate: Add max-duplication-time property
...
This will only duplicate buffers if the gap between two consecutive
buffers is up to fill-until nsec. If it's larger, it will only output
the new buffer and mark it as discont.
2019-02-21 15:50:55 +00:00
Nirbheek Chauhan
91863b071f
misc: Fix compiler warnings on Cerbero's MinGW
...
rtpbasedepayload.c:126:5: error: unknown conversion type character 'z' in format [-Werror=format]
profile.c:688:10: error: unused variable 'gst_dir' [-Werror=unused-variable]
2019-02-05 23:48:13 +05:30
Jordan Petridis
5396ef6e45
subparse: do not assert when failing to parse subrip timestamp
...
If a badly formatted was passed into `parse_subrip_time` it would
assert instead of exiting gracefully. This is problematic since
the input is provided by the user, and will trigger a crash.
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/532
2019-01-14 11:43:57 +00:00
Jan Alexander Steffens (heftig)
4d24f78c05
videoscale: Add a test to verify stepped dimensions work
2019-01-14 10:18:21 +00:00
Seungha Yang
f5c4826ea4
tests: compositor: Drop needless unistd.h
2018-12-30 23:25:14 +00:00
Tim-Philipp Müller
2972b673c0
compositor: add to build after move from -bad
...
This replaces videomixer.
Fixes #138
2018-12-28 12:16:18 +01:00
Tim-Philipp Müller
f11571f398
Move GstVideoAggregator, compositor and OpenGL mixers from -bad
...
Merge branch 'videoaggregator-compositor-glmixers-move'
Fixes #137 and #138 .
2018-12-28 12:15:39 +01:00
Jordan Petridis
2229d53f60
Run gst-indent through the files
...
This is required before we enabled an indent test in the CI.
https://gitlab.freedesktop.org/gstreamer/gstreamer-project/issues/33
2018-11-28 05:51:53 +02:00
Matthew Waters
5a53e89c1a
tests/urisourcebin: add get/set watermark test
...
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/60
2018-11-07 15:10:05 +00:00
Matthew Waters
af166b5b22
urisourcebin: add a statistics property for queueing
...
It contains the minimum/maximum/average byte and time levels of the
queues inside this urisourcebin
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/60
2018-11-07 15:10:05 +00:00
Sebastian Dröge
088b4c0c52
overlaycomposition: New element that allows applications to draw GstVideoOverlayComposition on a stream
...
https://bugzilla.gnome.org/show_bug.cgi?id=797234
2018-10-28 17:03:47 +00:00
George Kiagiadakis
a85a59e4a8
tests: audioconvert: test caps fixate with layout conversion
...
https://bugzilla.gnome.org/show_bug.cgi?id=797225
2018-10-05 15:40:13 +03:00
Justin Kim
4fa850e3e6
audiorate: accumulate offset by time diff
...
The fomula, 'offset = time / rate', is correct only if
the rate is never changed. When the rate is changed,
the offset should be re-calculated based on the previous
offset.
https://bugzilla.gnome.org/show_bug.cgi?id=791269
2018-07-19 18:19:19 -04:00
George Kiagiadakis
d57a572172
tests: audioconvert: add tests for planar audio
...
https://bugzilla.gnome.org/show_bug.cgi?id=705986
2018-07-11 16:26:13 +03:00
George Kiagiadakis
5c39510905
tests: audioconvert: add support for specifying the layout on tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=705986
2018-07-11 16:26:13 +03:00
George Kiagiadakis
48fa908e15
tests: audiotestsrc: add unit test for non-interleaved audio output
...
https://bugzilla.gnome.org/show_bug.cgi?id=796739
2018-07-11 12:23:32 +03:00
Philippe Normand
8cfd85ec61
subparse: support for more than 32 unclosed markup tags
...
https://bugzilla.gnome.org/show_bug.cgi?id=796043
2018-05-12 17:05:06 +01:00