platform/upstream/gst-plugins-good.git
5 years agoRelease 1.16.0
Tim-Philipp Müller [Thu, 18 Apr 2019 23:23:16 +0000 (00:23 +0100)]
Release 1.16.0

5 years agoUpdate docs
Tim-Philipp Müller [Thu, 18 Apr 2019 23:23:16 +0000 (00:23 +0100)]
Update docs

5 years agoUpdate translations
Tim-Philipp Müller [Thu, 18 Apr 2019 23:23:14 +0000 (00:23 +0100)]
Update translations

5 years agoqmlglsink: fix compilation with Qt >= 5.5 on Windows
Benjamin Sigonneau [Thu, 18 Apr 2019 15:14:18 +0000 (17:14 +0200)]
qmlglsink: fix compilation with Qt >= 5.5 on Windows

As of Qt >= 5.5, qmake do not link to opengl32 by default anymore. This commit adds opengl32.lib to the .pro
file so that the plugin can be build using QtCreator on Windows.

5 years agomeson: Build qt plugin in C++11 mode explicitly
Nirbheek Chauhan [Wed, 17 Apr 2019 10:18:26 +0000 (15:48 +0530)]
meson: Build qt plugin in C++11 mode explicitly

This works implicitly most of the time, but we need to set it
explicitly for building with Android.

5 years agov4l2: fix use after free when handling events
Guillaume Desmottes [Tue, 16 Apr 2019 09:05:06 +0000 (14:35 +0530)]
v4l2: fix use after free when handling events

The sink_event parent function may consume the event so we shouldn't use
it after having calling it.

5 years agoRelease 1.15.90
Tim-Philipp Müller [Wed, 10 Apr 2019 23:26:58 +0000 (00:26 +0100)]
Release 1.15.90

5 years agoUpdate docs
Tim-Philipp Müller [Wed, 10 Apr 2019 23:26:58 +0000 (00:26 +0100)]
Update docs

5 years agortpulpfecdec,enc: unbreak plugin gtk-doc build in autotools
Tim-Philipp Müller [Tue, 9 Apr 2019 22:51:22 +0000 (23:51 +0100)]
rtpulpfecdec,enc: unbreak plugin gtk-doc build in autotools

Fix doc chunks to not use that syntax for links that have the
url as description, it will be put verbatim into the xml/*.xml
file and then the expat parser will throw a syntax error like:

  File "../../common/mangle-db.py", line 71, in <module>
    main()
  File "../../common/mangle-db.py", line 69, in main
    patch (details.replace("-details", ""), os.path.basename(details))
  File "../../common/mangle-db.py", line 20, in patch
    doc = xml.dom.minidom.parse(related)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1918, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 84, column 7

5 years agortpvrawpay: preserve GST_BUFFER_FLAG_DISCONT on the first outputted buffer
Antonio Ospite [Mon, 8 Apr 2019 09:35:34 +0000 (11:35 +0200)]
rtpvrawpay: preserve GST_BUFFER_FLAG_DISCONT on the first outputted buffer

If the incoming frame buffer has GST_BUFFER_FLAG_DISCONT set this should
be preserved and set for the first output buffer too, like other
payloaders do.

Spotted with gst-validate-1.0 when adding integration tests for
rtpsession, a minimal test to reproduce the issue is:

$ gst-validate-1.0 videotestsrc num-buffers=1 ! rtpvrawpay ! identity ! fakesink
Starting pipeline
Pipeline started
   warning : Buffer didn't have expected DISCONT flag333 speed: 1.000000 />
             Detected on <identity0:sink>
             Detected on <identity0:src>
             Detected on <fakesink0:sink>
             Description : Buffers after SEGMENT and FLUSH must have a DISCONT flag

Issues found: 1

=======> Test PASSED (Return value: 0)

5 years agortpulpfec*: Replace github URIs with gitlab.fdo ones
Olivier Crête [Fri, 22 Mar 2019 16:42:14 +0000 (12:42 -0400)]
rtpulpfec*: Replace github URIs with gitlab.fdo ones

5 years agortpred*: Add example pipelines
Olivier Crête [Thu, 21 Mar 2019 21:01:11 +0000 (17:01 -0400)]
rtpred*: Add example pipelines

5 years agortpulpfec*: Improve documentation
Olivier Crête [Thu, 21 Mar 2019 20:48:37 +0000 (16:48 -0400)]
rtpulpfec*: Improve documentation

5 years agortpstorage + rtpulpfecdec: Get the storage using a query as fallback
Olivier Crête [Wed, 20 Mar 2019 22:31:48 +0000 (18:31 -0400)]
rtpstorage + rtpulpfecdec: Get the storage using a query as fallback

This allows it to be used using gst-launch for easier testing.

5 years agoosxvideo: fix mac os 10.14 build
Dan Kegel [Tue, 19 Mar 2019 13:22:29 +0000 (06:22 -0700)]
osxvideo: fix mac os 10.14 build

lockFocusIfCanDraw is deprecated in mac os 10.14.  Apple suggests a
different way to do what that does, but for now, just suppress the deprecation.

There's no way to disable just that deprecation, so shut them all down.

OpenGL is also deprecated in mac os 10.14.  There is a gentle way to
turn off just those deprecations (GL_SILENCE_DEPRECATION), but since
this commit turns them all off, that's moot.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/577

5 years agotest: rtpsession: Verify on-sending-nacks callback
Nicolas Dufresne [Sun, 7 Apr 2019 16:00:49 +0000 (12:00 -0400)]
test: rtpsession: Verify on-sending-nacks callback

5 years agortpsession: Allow overriding NACK packet creation
Nicolas Dufresne [Wed, 27 Mar 2019 20:19:15 +0000 (16:19 -0400)]
rtpsession: Allow overriding NACK packet creation

This introduce a new signal on RTSession, on-sending-nacks is emited
right before the list of seqnums to be nacked are processed and
transformed into FB Nack. This allow implementing custom nacks
handling through another mechanism with APP feedback.

5 years agortpsession: Add disable-sr-timestamp property
Mathieu Duponchelle [Tue, 20 Nov 2018 01:45:04 +0000 (02:45 +0100)]
rtpsession: Add disable-sr-timestamp property

The Onvif Streaming Spec, in section 6.11, mandates that when
Rate-Control is disabled potential RTCP packets shall have
their timestamps set to 0.

<https://www.onvif.org/specs/stream/ONVIF-Streaming-Spec.pdf>

5 years agov4l2: remove __user define from types-compat.h
Philipp Zabel [Tue, 5 Mar 2019 19:57:44 +0000 (20:57 +0100)]
v4l2: remove __user define from types-compat.h

Remove the now unused __user define.

5 years agov4l2object: use opRGB colorspace and xfer func defines
Philipp Zabel [Tue, 5 Mar 2019 19:53:47 +0000 (20:53 +0100)]
v4l2object: use opRGB colorspace and xfer func defines

AdobeRGB defines have been renamed to opRGB in the kernel headers,
use the new names.

5 years agov4l2videodec: support orphaning
Philipp Zabel [Thu, 24 Jan 2019 15:12:13 +0000 (16:12 +0100)]
v4l2videodec: support orphaning

Recent kernels allow REQBUFS(0) on a queue that still has buffers in
use (mmapped or exported via dmabuf), orphaning all buffers on the queue.
If this is supported, the v4l2videodec element does not have to send a
drain request downstream.

5 years agov4l2bufferpool: support orphaning
Philipp Zabel [Thu, 24 Jan 2019 15:12:13 +0000 (16:12 +0100)]
v4l2bufferpool: support orphaning

Now that the v4l2allocator allows orphaning the V4L2 buffer queue, add
support for orphaning in the v4l2bufferpool. gst_v4l2_buffer_pool_orphan
can be used as a replacement for gst_v4l2_buffer_pool_stop, without
having to wait for buffers to be returned to the pool.

5 years agov4l2allocator: support orphaning
Philipp Zabel [Thu, 24 Jan 2019 15:12:13 +0000 (16:12 +0100)]
v4l2allocator: support orphaning

Recent kernels allow REQBUFS(0) on a queue that still has buffers in
use (mmapped or exported via dmabuf), orphaning all buffers on the queue.

Orphaning the allocator causes it to release all buffers with
REQBUFS(0), even if they are still in use. An orphaned allocator can
only be stopped. It can not be restarted or create new buffers.

5 years agov4l2: update kernel headers to latest from media tree
Philipp Zabel [Thu, 24 Jan 2019 14:36:49 +0000 (15:36 +0100)]
v4l2: update kernel headers to latest from media tree

Update to the latest installed headers (output of make headers_install)
from the media tree, keeping the slight modifications to the includes.

This includes new HEVC controls, the AdobeRGB -> opRGB rename, a new
capabilities field for v4l2_requestbuffers and v4l2_create_buffers, new
32-bit YUV formats, and request_fd changes.

5 years agoshout2: Fix leak on error in start
Nicolas Dufresne [Wed, 3 Apr 2019 18:13:49 +0000 (14:13 -0400)]
shout2: Fix leak on error in start

5 years agotest: rtpsession: Test FB Nack packing
Nicolas Dufresne [Sat, 30 Mar 2019 02:48:53 +0000 (22:48 -0400)]
test: rtpsession: Test FB Nack packing

We used to split the NACK if a smaller seqnum of a range of seqnum was
submited. This test also make sure that the three operations (append,
prepend, update) works properly.

5 years agotest: rtpsession: Test handling of NACK surplus
Nicolas Dufresne [Sat, 30 Mar 2019 02:34:47 +0000 (22:34 -0400)]
test: rtpsession: Test handling of NACK surplus

This test verify that NACKs that didn't fit in one packet are properly
filtered and inserted into the following pipeline.

5 years agortpsession: Send as many nack seqnum as possible
Nicolas Dufresne [Mon, 25 Mar 2019 17:42:25 +0000 (13:42 -0400)]
rtpsession: Send as many nack seqnum as possible

In order to do that, we now split the nacks registration from the actual
FB nack packet construction. We then try and add as many FB Nacks as
possible into the active packets and leave the remaining seqnums in the
RTPSource. In order to avoid sending outdated NACK later on, we save the
seqnum calculated deadline and cleanup the outdated seqnums before the
next RTCP send.

Fixes #583

5 years agortpsession: Fix race when sending PLI, FIR and NACK packets
John Bassett [Mon, 30 Apr 2018 08:54:19 +0000 (10:54 +0200)]
rtpsession: Fix race when sending PLI, FIR and NACK packets

Calling rtp_session_send_rtcp before marking the source as requiring a
pli/fir/nack meant the rtcp_thread could be scheduled and start running
before the source was updated. This meant the request would not be sent
early but instead was transmitted with the next regular RTCP packet.

Add test for nack generation.

5 years agortpsession: Fix early rtcp time comparision
Nicolas Dufresne [Fri, 29 Mar 2019 20:49:37 +0000 (16:49 -0400)]
rtpsession: Fix early rtcp time comparision

If the current time is equal to the early rtcp time deadline, there is
no need to schedule a timer. This ensure that immediate feedback is
really immediate and simplify implementing unit tests with the test
clock, which stops perfectly on the timeout time.

This fix has been extracted from Pexip feature patch called
  "rtpsession: Allow instant transmission of RTCP packets"

5 years agov4l2src: preserve features when fixating caps
Guillaume Desmottes [Thu, 24 Jan 2019 10:54:49 +0000 (11:54 +0100)]
v4l2src: preserve features when fixating caps

The caps features were lost when sorting caps structures in
gst_v4l2src_fixate(). This was breaking alternate as
GST_CAPS_FEATURE_FORMAT_INTERLACED was removed from the caps.

5 years agortpgstpay: Set DELTA_UNIT flag when appropriate
Mathieu Duponchelle [Tue, 13 Nov 2018 20:23:30 +0000 (21:23 +0100)]
rtpgstpay: Set DELTA_UNIT flag when appropriate

When used in combination with a rtponviftimestamp element
downstream, forwarding this flag ensures it gets correctly
serialized in the ONVIF header extension.

5 years agodocs: fix typo s/abonormally/abnormally/
Antonio Ospite [Wed, 3 Apr 2019 14:42:26 +0000 (16:42 +0200)]
docs: fix typo s/abonormally/abnormally/

5 years agodocs: fix typo s/incomming/incoming/
Antonio Ospite [Wed, 3 Apr 2019 14:38:56 +0000 (16:38 +0200)]
docs: fix typo s/incomming/incoming/

5 years agortp: fix indentation after G_DEFINE_TYPE
Antonio Ospite [Wed, 3 Apr 2019 14:34:22 +0000 (16:34 +0200)]
rtp: fix indentation after G_DEFINE_TYPE

A missing colon after G_DEFINE_TYPE declaration was confusing gst-indent
and causing problem in the pre-commit hook.

Add the missing colon and fix the following function declaration to
follow the normal GStreamer style.

5 years agortpsession: fix comment to refer to buffers instead of groups
Antonio Ospite [Thu, 7 Mar 2019 14:34:03 +0000 (15:34 +0100)]
rtpsession: fix comment to refer to buffers instead of groups

One comments in gst_rtp_session_chain_send_rtp_common() is referring to
groups in a buffer list, however this concept of "group" comes from
GStreamer 0.10 and does not exist anymore in GStreamer 1.0, so update the
comment to refer to buffers instead.

5 years agortpsource: add comment to explain why probation queue is not always cleared
Antonio Ospite [Wed, 6 Mar 2019 08:52:45 +0000 (09:52 +0100)]
rtpsource: add comment to explain why probation queue is not always cleared

5 years agotest: rtpbin_buffer_list: add test to verify that stats are correct
Antonio Ospite [Tue, 2 Apr 2019 10:51:04 +0000 (12:51 +0200)]
test: rtpbin_buffer_list: add test to verify that stats are correct

Add a test to verify that stats about sent and received packets are
correct even when using buffer lists.

NOTE: the newly introduced get_session_source_stats() selects the
desired source (sender or receiver) by filtering them by type (using the
get_sender parameter) rather than by ssrc because this simplifies the
code and it's good enough for testing purposes as there is usually one
source per type in the test setup.

Filtering by ssrc would have required handling asynchronous signals like
"on-new-sender-ssrc", with the relative locking, just to retrieve the
actual ssrc of the sender.

5 years agortpsource: fix stats about received packets
Antonio Ospite [Tue, 5 Mar 2019 12:43:12 +0000 (13:43 +0100)]
rtpsource: fix stats about received packets

The update_receiver_stats() function is called also when sending packets
in rtp_source_send_rtp(), and sending packets may happen using a buffer
list rather than individual buffers.

So update the stats using the actual number of packets sent.

NOTE: this is fine for the receive path too (rtp_process_send_rtp)
because the receive path does not support buffer lists and
pinfo->packets would always be equal to 1 in this case.

5 years agotest: rtpbin_buffer_list: move buffer list creation next to its validation
Antonio Ospite [Mon, 11 Mar 2019 09:08:21 +0000 (10:08 +0100)]
test: rtpbin_buffer_list: move buffer list creation next to its validation

The tests create a buffer list and then use the chain_list callback to
verify that the correct packets have been pushed.

Move the creation and validation code next to each other so that the
reader can more easily understand what is going on.

While at it add some comments to introduce the two related functions.

5 years agotest: rtpbin_buffer_list: set the chain_list function directly in the test
Antonio Ospite [Wed, 6 Mar 2019 18:27:01 +0000 (19:27 +0100)]
test: rtpbin_buffer_list: set the chain_list function directly in the test

The helper function set_chain_function does not really do anything useful, remove it.

5 years agotest: rtpbin_buffer_list: make check_packet more flexible
Antonio Ospite [Wed, 6 Mar 2019 18:19:03 +0000 (19:19 +0100)]
test: rtpbin_buffer_list: make check_packet more flexible

Make it possible to differentiate between the position in the list and
the packet index in the global structures in check_packet, in some
future case the list may change, in case some element removes a buffer
from the list, and the two indices may not coincide.

5 years agotest: rtpbin_buffer_list: factor out a function to create packets buffers
Antonio Ospite [Tue, 5 Mar 2019 11:47:29 +0000 (12:47 +0100)]
test: rtpbin_buffer_list: factor out a function to create packets buffers

5 years agotest: rtpbin_buffer_list: check if the chain_list function has been called
Antonio Ospite [Mon, 4 Mar 2019 10:27:33 +0000 (11:27 +0100)]
test: rtpbin_buffer_list: check if the chain_list function has been called

Make the test more useful to verify that the chain list function has
actually been called.

5 years agotest: rtpbin_buffer_list: port to GStreamer 1.0
Antonio Ospite [Wed, 27 Feb 2019 11:27:21 +0000 (12:27 +0100)]
test: rtpbin_buffer_list: port to GStreamer 1.0

Port the rtpbin_buffer_list test to GStreamer 1.0 and re-enable it.

Some other changes include:
  - the check on the caps has been moved from the buffer level to the
    pad level;
  - remove underscore prefix from static functions names, this is not
    idiomatic in C and rarely used in the other tests;
  - the unused header_buffer variable has been removed;
  - check_group() has been renamed to check_packet() because in
    GStreamer 1.0 there is no concept of "group" anymore, the comments
    have also been updated to reflect this.

5 years agotests: jpegdec: bump discoverer timeout for valgrind
Tim-Philipp Müller [Mon, 1 Apr 2019 17:20:53 +0000 (18:20 +0100)]
tests: jpegdec: bump discoverer timeout for valgrind

Tests might take a bit longer, esp. when run under valgrind
and/or they're running on the CI with other things going on,
so let's just bump the timeout to something higher and let
the test runner time us out if needed.

5 years agomeson: Only ensure that moc is available on Linux
Nirbheek Chauhan [Mon, 1 Apr 2019 12:50:28 +0000 (18:20 +0530)]
meson: Only ensure that moc is available on Linux

On other OSes, it's not possible to have qmake or the qt5 pkg-config
files and not have moc, and `moc` will not be in `PATH`, so this only
causes problems.

5 years agortpstorage: Limit the queue size
Olivier Crête [Thu, 21 Mar 2019 22:24:43 +0000 (18:24 -0400)]
rtpstorage: Limit the queue size

Limit to the queue size in case there is no arrival time or in case there is
a huge flood of packets.

5 years agortpbin: Request the FEC decoder even if ignore-pt is set
Olivier Crête [Mon, 18 Mar 2019 19:30:54 +0000 (15:30 -0400)]
rtpbin: Request the FEC decoder even if ignore-pt is set

5 years agortpbin: Factor out the code that exposes the src pad
Olivier Crête [Mon, 18 Mar 2019 19:27:21 +0000 (15:27 -0400)]
rtpbin: Factor out the code that exposes the src pad

5 years agortpreddec: Add some more debug prints
Olivier Crête [Fri, 22 Mar 2019 06:08:01 +0000 (02:08 -0400)]
rtpreddec: Add some more debug prints

5 years agortpstorage: Issue warning if request by size if 0
Olivier Crête [Thu, 21 Mar 2019 21:32:18 +0000 (17:32 -0400)]
rtpstorage: Issue warning if request by size if 0

If the size is 0, then nothing will ever be in the storage, if a request is
received, it generally implies a misconfigured pipeline.

5 years agortpstorage: Add more debug messages
Olivier Crête [Thu, 21 Mar 2019 21:24:42 +0000 (17:24 -0400)]
rtpstorage: Add more debug messages

5 years agortpstorage: Make debug category available to sub objects
Olivier Crête [Thu, 21 Mar 2019 21:12:53 +0000 (17:12 -0400)]
rtpstorage: Make debug category available to sub objects

5 years agortpstorage: Add debug funcptr to chain function
Olivier Crête [Thu, 21 Mar 2019 21:12:33 +0000 (17:12 -0400)]
rtpstorage: Add debug funcptr to chain function

5 years agoflac: report latency in flacenc and flacdec
Julian Bouzas [Fri, 22 Mar 2019 11:01:01 +0000 (12:01 +0100)]
flac: report latency in flacenc and flacdec

The FLAC specification states that the data is processed in blocks, regardless of the number of channels. Thus, The latency can be calculated using the blocksize and rate. For example a 1 second block sampled at 44.1KHz has a blocksize of 44100

5 years agoexamples: rtsp: fix compiler warning
Tim-Philipp Müller [Fri, 22 Mar 2019 23:36:42 +0000 (23:36 +0000)]
examples: rtsp: fix compiler warning

"control reaches end of non-void function"

5 years agogstrtpsession: Remove set but not use running-time
Nicolas Dufresne [Fri, 22 Mar 2019 19:07:56 +0000 (15:07 -0400)]
gstrtpsession: Remove set but not use running-time

5 years agortpmanager: Register chain functions to debug
Olivier Crête [Tue, 19 Mar 2019 13:50:04 +0000 (09:50 -0400)]
rtpmanager: Register chain functions to debug

5 years agortpbin: Allow reusing the sender AUX bin
Nicolas Dufresne [Wed, 27 Feb 2019 20:49:13 +0000 (15:49 -0500)]
rtpbin: Allow reusing the sender AUX bin

This is needed for the case you don't know in advance all the sessions
you will be using, but would like to place all the related AUX element
in the same GstBin. As per current implementation, each time an sender
AUX bin is requested and returned, RTPBin will walk the src pads and
create sessions for these pads.

In the current implementation, if a src pad already have a sessions, it
returns an error and stops. As a side effect, if an AUX bin is reused in
a following AUX bin request, it can only work if the pads are created on
the last request.

This change simply relax the restriction in order to keep walking, and
just ensure that all newly created pads have a sessions.

5 years agov4l2videoenc: set GstVideoCodecFrame sync point flag
Philipp Zabel [Mon, 25 Jun 2018 15:49:07 +0000 (17:49 +0200)]
v4l2videoenc: set GstVideoCodecFrame sync point flag

The V4L2 elements already set the delta unit buffer flag when dequeueing
the buffer, but gst_video_encoder_finish_frame overwrites it from the
passed codec frame's sync point flag. Set the flag correctly.

5 years agogstrtpsession: improve stats about rtx requests
George Kiagiadakis [Thu, 23 Aug 2018 08:47:14 +0000 (11:47 +0300)]
gstrtpsession: improve stats about rtx requests

5 years agortprtxsend: Improve looging of not found RTX packet
George Kiagiadakis [Wed, 20 Mar 2019 19:45:35 +0000 (15:45 -0400)]
rtprtxsend: Improve looging of not found RTX packet

When an RTX packet is not found, display a message that say if the
packet have not arrived yet or if it was already removed from the RTX
packet queue.

5 years agortpsession: Remove unused rtp_session_create_source
Nicolas Dufresne [Thu, 9 Aug 2018 13:40:26 +0000 (16:40 +0300)]
rtpsession: Remove unused rtp_session_create_source

5 years agomeson: add -Wno-unused also to C++ args when gst debug system is disabled
Tim-Philipp Müller [Thu, 21 Mar 2019 11:17:08 +0000 (11:17 +0000)]
meson: add -Wno-unused also to C++ args when gst debug system is disabled

And check if argument is supported instead of just passing it blindly,
and make meson code slightly cleaner, centralising the argument setting
in one place.

5 years agoUpdate LINGUAS
Piotr Drąg [Sun, 10 Mar 2019 19:30:50 +0000 (19:30 +0000)]
Update LINGUAS

5 years agoqtdemux: Don't pass zero to denominator for framerate
Seungha Yang [Tue, 19 Mar 2019 03:31:35 +0000 (12:31 +0900)]
qtdemux: Don't pass zero to denominator for framerate

Need to respect return of gst_video_guess_framerate() to ensure
non-zero denominator.

This patch is to fix below error with an abnormal (but has valid frame) file.
(gst-play-1.0:17940): GStreamer-CRITICAL **: passed '0' as denominator for `GstFraction'

5 years agov4l2: Set Hardware classifier on encoders
Philippe Normand [Tue, 5 Mar 2019 09:43:47 +0000 (09:43 +0000)]
v4l2: Set Hardware classifier on encoders

5 years agov4l2: Set Hardware classifier on video decoders
Philippe Normand [Wed, 27 Feb 2019 11:56:20 +0000 (11:56 +0000)]
v4l2: Set Hardware classifier on video decoders

5 years agov4l2transform: don't segfault if flushed without pools
Philipp Zabel [Fri, 1 Mar 2019 13:58:24 +0000 (14:58 +0100)]
v4l2transform: don't segfault if flushed without pools

The v4l2output and v4l2capture v4l2objects can have pool == NULL if they
have been stopped before.

5 years agoqtdemux: Find mp4a esds atoms in protected streams sample description tables.
Charlie Turner [Thu, 7 Feb 2019 11:58:19 +0000 (11:58 +0000)]
qtdemux: Find mp4a esds atoms in protected streams sample description tables.

This problem was found in Test. 2 of the YouTube 2018 EME
tests[1]. The code was accidentally not finding an mp4a's esds atom in
the sample description table when the stream was encrypted. It assumed
that if the stream is protected, then only an enca atom will be found
here. What happens with YouTube is they often provide protected
content with a few seconds of clear content, and then switch to the
encrypted stream.

The failure case here was an incorrect codec_data field being sent
into aacparse. The advertisement of stereo audio @ 44.1kHz for the
mp4a (unprotected) stream was incorrect. As usual, the esds contained
the real values here which were mono at 22050 Hz.

Here's what the MP4 tree looks like for these types of files,
demonstrating why the code was making a wrong assumption (or maybe
YouTube is being unusual),

[ftyp] size=8+16
...
[moov] size=8+1571
...
  [trak] size=8+559
...
          [stsd] size=12+234
            entry-count = 2
            [enca] size=8+147
              channel_count = 2
              sample_size = 16
              sample_rate = 44100
              [esds] size=12+27
                ...
            ...
            [mp4a] size=8+67
              channel_count = 2
              sample_size = 16
              sample_rate = 44100
              [esds] size=12+27
                ...

In addition to fixing this, the checks for esds atoms in mp4a and mp4v
have been made symmetrical. While I haven't seen a test case for video
with the same problem, it seemed better to make the same checks. This
also fixes a crash reported from another user[2], they also noted the
asymmetry with mp4v and mp4a.

[1] https://yt-dash-mse-test.commondatastorage.googleapis.com/unit-tests/2018.html?test_type=encryptedmedia-test
[2] https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/398

5 years agoflvmux: Fix scale of time values in warning message
Andreas Frisch [Fri, 15 Mar 2019 09:41:20 +0000 (10:41 +0100)]
flvmux: Fix scale of time values in warning message

5 years agortspsrc: Don't remove udpsrc/sink from rtspsrc if they were not added to it
Sebastian Dröge [Fri, 15 Mar 2019 08:18:00 +0000 (09:18 +0100)]
rtspsrc: Don't remove udpsrc/sink from rtspsrc if they were not added to it

This can happen in various error cases that could happen between the
creation of the element in question and the adding to the rtspsrc.

It causes an ugly critical warning right now but is otherwise harmless.

5 years agotest: imagefreeze: add test for the num-buffers property
Antonio Ospite [Wed, 13 Mar 2019 13:00:10 +0000 (14:00 +0100)]
test: imagefreeze: add test for the num-buffers property

5 years agoimagefreeze: add a num-buffers property
Antonio Ospite [Wed, 13 Mar 2019 12:03:44 +0000 (13:03 +0100)]
imagefreeze: add a num-buffers property

The imagefreeze element can be handy for benchmarking downstream
elements because it re-uses the same buffer memory and introduces less
overhead compared to always creating new frames with videotestsrc.

However it's not possible to make imagefreeze send EOS when using
gst-launch-1.0.

Add a num-buffers property to make it look more like a source in the
above scenario.

5 years agomatroskamux: add support for new color primaries
Guillaume Desmottes [Tue, 12 Mar 2019 15:52:45 +0000 (16:52 +0100)]
matroskamux: add support for new color primaries

5 years agov4l2sink: fix pool-less allocation query handling
Philipp Zabel [Thu, 7 Mar 2019 10:24:38 +0000 (11:24 +0100)]
v4l2sink: fix pool-less allocation query handling

This fixes a critical warning if the last-sample property is enabled:

  (gst-launch-1.0:391): GStreamer-CRITICAL **: 01:12:57.428: gst_object_unref: assertion 'object != NULL' failed

If the allocation query does not contain any allocation pools,
gst_query_parse_nth_allocation_pool will leave the local pool,
min, and max variables undefined, so check the array length first.
If pool is NULL, do not call gst_object_unref.

5 years agomeson: Build v4l2 example only if v4l2 plugin was built
Seungha Yang [Fri, 8 Mar 2019 02:03:31 +0000 (11:03 +0900)]
meson: Build v4l2 example only if v4l2 plugin was built

Otherwise v4l2 example will be built with MSVC

5 years agodocs: fix typos s/recieve/receive/
Antonio Ospite [Thu, 7 Mar 2019 11:38:41 +0000 (12:38 +0100)]
docs: fix typos s/recieve/receive/

5 years agortpsource: fix documentation of rtp_source_send_rtp parameters
Antonio Ospite [Thu, 28 Feb 2019 11:32:51 +0000 (12:32 +0100)]
rtpsource: fix documentation of rtp_source_send_rtp parameters

In commit 28e5f9098 (rtpbin: use PacketInfo for the sender, 2013-09-13)
the rtp_source_send_rtp signature changed but the documentation was not
adjusted to match the new one.

Update the documentation to match the function signature.

5 years agortpsession: fix typo in a comment, s/SESSION_LOCK/RTP_SESSION_LOCK/
Antonio Ospite [Wed, 6 Mar 2019 11:59:52 +0000 (12:59 +0100)]
rtpsession: fix typo in a comment, s/SESSION_LOCK/RTP_SESSION_LOCK/

Fix a typo in a comment, mainly to avoid confusing autocompletion in
text editors.

5 years agortpsession: fix typos and update parameters names in comments
Antonio Ospite [Wed, 27 Feb 2019 15:45:54 +0000 (16:45 +0100)]
rtpsession: fix typos and update parameters names in comments

Some functions now accept a generic 'gpointer data' parameter because
they can work either on a single buffer or a buffer list.

However the comments were still referring to the old 'GstBuffer *buffer'
parameter, so update the comments to match the actual functions
signature.

5 years agortpstats: fix some fields names in the RTPSourceStats documentation
Antonio Ospite [Wed, 6 Mar 2019 15:28:34 +0000 (16:28 +0100)]
rtpstats: fix some fields names in the RTPSourceStats documentation

Fix documentation of RTPSourceStats to use the actual fields names.

5 years agoApply "pulsesink: uncork if needed upon commit" again 80/200980/1 accepted/tizen/unified/20190311.072504 submit/tizen/20190307.052504 submit/tizen/20190308.025958
Sangchul Lee [Tue, 5 Mar 2019 03:33:57 +0000 (12:33 +0900)]
Apply "pulsesink: uncork if needed upon commit" again

This uncork condition is valid for volume ramping with silence
memchunk in pulseaudio when a stream is started.

patch history
 : 46a3c9ac8b2f8182ef8f211f4be09a67e4d42a61 - 2016-04-16 02:21:14 +1000 - Revert "pulsesink: uncork if needed upon commit"
 : 0dd46accf6d282ff07065852bd91c85c78af3394 - 2015-01-10 13:04:44 +0100 - pulsesink: uncork if needed upon commit

Change-Id: I3d9ad358f4c66df1755650960b53043df22a2d1c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
5 years agortpulpfdecdec: only put recovered packet back into storage if not recovered from...
Mathieu Duponchelle [Wed, 6 Mar 2019 17:40:12 +0000 (17:40 +0000)]
rtpulpfdecdec: only put recovered packet back into storage if not recovered from there

5 years agortpulpfecdec: fix buffer leak when packet is recovered from storage
Mathieu Duponchelle [Wed, 6 Mar 2019 17:38:03 +0000 (17:38 +0000)]
rtpulpfecdec: fix buffer leak when packet is recovered from storage

Exposed by rtpulpfecdec_recovered_from_storage test.

5 years agotests: rtpulpfec: fix buffer leak in unit test
Tim-Philipp Müller [Wed, 6 Mar 2019 17:35:58 +0000 (17:35 +0000)]
tests: rtpulpfec: fix buffer leak in unit test

This freed wrapped memory instead of the GstMemory or buffer.

5 years agortph264depay: fix caps leak
Tim-Philipp Müller [Wed, 6 Mar 2019 17:33:23 +0000 (17:33 +0000)]
rtph264depay: fix caps leak

Exposed by rtp_h264depay_bytestream() unit test.

5 years agotests: rtpjitterbuffer: fix leaks in new test_push_eos() test
Tim-Philipp Müller [Wed, 6 Mar 2019 17:28:57 +0000 (17:28 +0000)]
tests: rtpjitterbuffer: fix leaks in new test_push_eos() test

5 years agotests: states: blacklist gtk sinks for state change test
Tim-Philipp Müller [Wed, 6 Mar 2019 17:26:23 +0000 (17:26 +0000)]
tests: states: blacklist gtk sinks for state change test

gtk_init() throws GLib-GIO-WARNING **: unknown schema extension 'd'
unrelated to our test environment.

5 years agotests: .gitignore more test and example binaries
Tim-Philipp Müller [Wed, 6 Mar 2019 17:26:03 +0000 (17:26 +0000)]
tests: .gitignore more test and example binaries

5 years agogtkgl: Also try retrieving an EGL context from Gdk with X11
Matthew Waters [Tue, 5 Mar 2019 04:26:45 +0000 (15:26 +1100)]
gtkgl: Also try retrieving an EGL context from Gdk with X11

Some embedded platforms will use EGL instead of GLX within the X11
ecosystem.

5 years agoBack to development
Tim-Philipp Müller [Mon, 4 Mar 2019 09:07:30 +0000 (09:07 +0000)]
Back to development

5 years agomatroskademux: fix AV1 caps when there's no codec_data
Tim-Philipp Müller [Mon, 25 Feb 2019 11:23:56 +0000 (11:23 +0000)]
matroskademux: fix AV1 caps when there's no codec_data

There is no "byte-stream" format for AV1 in Matroska, this
was probably cargo-culted from H.264. codec_data / CodecPrivate
is now mandatory for AV1 in Matroska[*], but there are sample
files out there which don't have it (e.g. some Elecard ones).

[*] https://github.com/Matroska-Org/matroska-specification/blob/master/codec/av1.md#codecprivate-1

5 years agomeson: don't build icles when tests are disabled
Tim-Philipp Müller [Thu, 28 Feb 2019 08:52:28 +0000 (08:52 +0000)]
meson: don't build icles when tests are disabled

They are manual tests, so let them be controlled
via the tests option.

5 years agortpsource: small spell correct
Marc Leeman [Wed, 27 Feb 2019 14:39:12 +0000 (15:39 +0100)]
rtpsource: small spell correct

5 years agoRelease 1.15.2
Tim-Philipp Müller [Tue, 26 Feb 2019 11:47:29 +0000 (11:47 +0000)]
Release 1.15.2

5 years agoUpdate docs
Tim-Philipp Müller [Tue, 26 Feb 2019 11:47:29 +0000 (11:47 +0000)]
Update docs

5 years agoUpdate translations
Tim-Philipp Müller [Tue, 26 Feb 2019 11:47:25 +0000 (11:47 +0000)]
Update translations

5 years agov4l2: accept Bayer as possible input/output for V4L2 codecs
Mauro Carvalho Chehab [Fri, 22 Feb 2019 15:22:04 +0000 (12:22 -0300)]
v4l2: accept Bayer as possible input/output for V4L2 codecs

A V4L2 transform codec may input/output data on Bayer format.

Add support for that.