platform/upstream/gstreamer.git
4 years agosplitmuxsink: set the same seqnum on flush_start / flush_stop
Mathieu Duponchelle [Wed, 22 May 2019 19:40:52 +0000 (21:40 +0200)]
splitmuxsink: set the same seqnum on flush_start / flush_stop

It's currently not made mandatory by aggregator, but it might
eventually be, and is more consistent behaviour

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/977

4 years agortpjitterbuffer: late packets shouldn't affect PTS of the following packet
Mikhail Fludkov [Thu, 13 Jun 2019 09:55:04 +0000 (11:55 +0200)]
rtpjitterbuffer: late packets shouldn't affect PTS of the following packet

If, say, a rtx-packet arrives really late, this can have a dramatic
effect on the jitterbuffer clock-skew logic, having it being reset
and losing track of the current dts-to-pts calculations, directly affecting
the packets that arrive later.

This is demonstrated in the test, where a RTX packet is pushed in really
late, and without this patch the last packet will have its PTS affected
by this, where as a late RTX packet should be redundant information, and
not affect anything.

5 years agortpjitterbuffer: fix rtx delay calulation when large packet spacing
Mikhail Fludkov [Wed, 12 Jun 2019 08:47:39 +0000 (10:47 +0200)]
rtpjitterbuffer: fix rtx delay calulation when large packet spacing

5 years agortpjitterbuffer: Fix delay for EXPECTED timers added by gaps
Stian Selnes [Thu, 24 Nov 2016 17:18:01 +0000 (18:18 +0100)]
rtpjitterbuffer: Fix delay for EXPECTED timers added by gaps

This patch corrects the delay set on EXPECTED timers that are added when
processing gaps. Previously the delay could be too small so that
'timout + delay' was much less than 'now', causing the following retries
to be scheduled too early. (They were sent earlier than
rtx-retry-timeout after the previous timeout.)

5 years agortpjitterbuffer: don't try and calculate packet-rate if seqnum are jumping
Havard Graff [Tue, 20 Nov 2018 15:11:12 +0000 (16:11 +0100)]
rtpjitterbuffer: don't try and calculate packet-rate if seqnum are jumping

Turns out that the "big-gap"-logic of the jitterbuffer has been horribly
broken.

For people using lost-events, an RTP-stream with a gap in sequencenumbers,
would produce exactly that many lost-events immediately.
So if your sequence-numbers jumped 20000, you would get 20000 lost-events
in your pipeline...

The test that looks after this logic "test_push_big_gap", basically
incremented the DTS of the buffer equal to the gap that was introduced,
so that in fact this would be more of a "large pause" test, than an
actual gap/discontinuity in the sequencenumbers.

Once the test was modified to not increment DTS (buffer arrival time) with
a similar gap, all sorts of crazy started happening, including adding
thousands of timers, and the logic that should have kicked in, the
"handle_big_gap_buffer"-logic, was not called at all, why?

Because the number max_dropout is calculated using the packet-rate, and
the packet-rate logic would, in this particular test, report that
the new packet rate was over 400000 packets per second!!!

I believe the right fix is to don't try and update the packet-rate if
there is any jumps in the sequence-numbers, and only do these calculations
for nice, sequential streams.

5 years agortpjitterbuffer: fix unused variables
Havard Graff [Wed, 12 Jun 2019 09:16:22 +0000 (11:16 +0200)]
rtpjitterbuffer: fix unused variables

5 years agosplitmuxsrc: Protect initial pad configuration with the object lock
Jan Schmidt [Tue, 11 Jun 2019 16:42:42 +0000 (02:42 +1000)]
splitmuxsrc: Protect initial pad configuration with the object lock

gst_splitmux_src_activate_part() configures the pad information
before starting the pad task, but occasionally the changes it makes
to the pad are not seen in the pad task because they're not
protected by the right locking. Use the pad's object lock to
protect those variables.

5 years agosplitmuxsrc: Restart pad task on a reconfigure
Jan Schmidt [Tue, 11 Jun 2019 15:42:20 +0000 (01:42 +1000)]
splitmuxsrc: Restart pad task on a reconfigure

On a reconfigure event, restart streaming on the pad so
that switching tracks in playbin works cleanly

5 years agosplitmuxsrc: Use an RW lock instead of a mutex to protect the pad list
Jan Schmidt [Tue, 11 Jun 2019 08:40:09 +0000 (18:40 +1000)]
splitmuxsrc: Use an RW lock instead of a mutex to protect the pad list

Fix a deadlock around the pads list by using an RW lock to
allow simultaneous readers. The pad list doesn't really changes
except at startup and shutdown.

5 years agosplitmuxsrc: Ignore duplicate seeks
Jan Schmidt [Tue, 11 Jun 2019 13:18:24 +0000 (23:18 +1000)]
splitmuxsrc: Ignore duplicate seeks

Use the seqnum to ignore duplicated seek events.

5 years agosplitmuxsink: Improve debug output
Jan Schmidt [Tue, 28 May 2019 23:20:07 +0000 (09:20 +1000)]
splitmuxsink: Improve debug output

Make the debug output less confusing by not mentioning a src
pad when doing calculations on the sink pad side.

Improve debug around why a GOP is considered overflowing a fragment

5 years agosplitmuxsink: Give internal queues useful names
Jan Schmidt [Tue, 28 May 2019 23:20:07 +0000 (09:20 +1000)]
splitmuxsink: Give internal queues useful names

Makes debug output more useful

5 years agoqtdemux: Provide a 2 frames lead-in for audio decoders
Mart Raudsepp [Wed, 5 Jun 2019 20:13:33 +0000 (23:13 +0300)]
qtdemux: Provide a 2 frames lead-in for audio decoders

AAC and various other audio codecs need a couple frames of lead-in to
decode it properly. The parser elements like aacparse take care of it
via gst_base_parse_set_frame_rate, but when inside a container, the
demuxer is doing the seek segment handling and never gives lead-in
data downstream.
Handle this similar to going back to a keyframe with video, in the
same place. Without a lead-in, the start of the segment is silence,
when it shouldn't, which becomes especially evident in NLE use cases.

5 years agoqtdemux: remove indent exception and reindent
Mart Raudsepp [Tue, 28 May 2019 17:14:49 +0000 (20:14 +0300)]
qtdemux: remove indent exception and reindent

As the indent disabling isn't playing along for a following fix,
remove the indent disabling and reindent in a way that doesn't
look too stupid.

5 years agov4l2: Fix H.264 level 3 string representation
Philippe Normand [Fri, 8 Mar 2019 14:43:20 +0000 (14:43 +0000)]
v4l2: Fix H.264 level 3 string representation

The string_to_level function handles "3" so the level_to_string function should
do the same, to prevent caps negotiation issues.

5 years agov4l2: Profile and level probing support for encoders and decoders
Philippe Normand [Mon, 4 Mar 2019 11:05:29 +0000 (11:05 +0000)]
v4l2: Profile and level probing support for encoders and decoders

There used to be some profile/level support in encoders. This code was moved to
GstV4l2Codecs and is now also used for decoders. The caps templates for the
H.264, H.265, MPEG4, VP8 and VP9 encoders and decoders should now reflect the
profiles and levels advertised by the kernel.

5 years agomatroskamux: fix typo in property description
Aaron Boxer [Mon, 3 Jun 2019 20:21:12 +0000 (16:21 -0400)]
matroskamux: fix typo in property description

5 years agosupp: Ignore leaks caused by shout/sethostent
Nicolas Dufresne [Tue, 4 Jun 2019 17:39:00 +0000 (13:39 -0400)]
supp: Ignore leaks caused by shout/sethostent

sethostent() seems to be using a global state and we endup with leaks from
that API when called through shout_init(). We had the option to only
ignore the shout case, but the impression is that if we have shout and
another sethostend user, as it's a global state, we may endup with a
different stack trace for the same leak. So in the end, we just ignore
memory allocated by sethostent in general.

5 years agopulse-device: Hide the alsa device provider if we provide alsa devices
Thibault Saunier [Tue, 30 Apr 2019 21:28:25 +0000 (17:28 -0400)]
pulse-device: Hide the alsa device provider if we provide alsa devices

5 years agortpssrcdemux: Avoid taking streamlock out-of-band
Nicolas Dufresne [Tue, 21 May 2019 19:25:03 +0000 (15:25 -0400)]
rtpssrcdemux: Avoid taking streamlock out-of-band

In this change we now protect the internal srcpads list using the
stream lock and limit usage of the internal stream lock to
preventing data flowing on the other src pad type while creating
and signalling the new pad.

This fixes a deadlock with RTPBin shutdown lock. These two locks would
end up being taken in two different order, which caused a deadlock. More
generally, we should not rely on a streamlock when handling out-of-band
data, so as a side effect, we should not take a stream lock when
iterating internal links.

5 years agov4l2object: Orphan buffer pool on object_stop if supported
Damian Hobson-Garcia [Mon, 27 May 2019 09:08:54 +0000 (18:08 +0900)]
v4l2object: Orphan buffer pool on object_stop if supported

Use V4L2 buffer orphaning, on recent kernels so that
the device can be restarted immediately with
a new buffer pool during renogatiation.

5 years agov4l2bufferpool: Free orphaned allocator resources when buffers are released
Damian Hobson-Garcia [Thu, 30 May 2019 04:12:31 +0000 (13:12 +0900)]
v4l2bufferpool: Free orphaned allocator resources when buffers are released

Allocator resources cannot be freed when a buffer pool is orphaned
while its buffers are in use. They should, however, be freed once those
buffers are no longer needed. This patch disposes of any buffers
belonging to an orphaned pool as they are released, and makes sure
that the allocator is cleaned up when the last buffer is returned.

5 years agov4l2bufferpool: return TRUE when buffer pool orphaning succeeds
Damian Hobson-Garcia [Thu, 30 May 2019 02:13:07 +0000 (11:13 +0900)]
v4l2bufferpool: return TRUE when buffer pool orphaning succeeds

When trying to orphan a buffer pool, successfully return and unref
the pool when the pool is either successfully stopped or orphaned.
Indicate failure and leave the pool untouched otherwise.

5 years agomeson: Bump minimal GLib version to 2.44
Niels De Graef [Fri, 31 May 2019 21:04:11 +0000 (23:04 +0200)]
meson: Bump minimal GLib version to 2.44

This means we can use some newer features and get rid of some
boilerplate code using the G_DECLARE_* macros.

As discussed on IRC, 2.44 is old enough by now to start depending on it.

5 years agoqtmux: Use size of first closed caption buffer in prefill mode
Sebastian Dröge [Wed, 5 Sep 2018 18:10:51 +0000 (21:10 +0300)]
qtmux: Use size of first closed caption buffer in prefill mode

It must be accurate for all samples to work in Final Cut properly, so
the best we can do is to assume that all samples are the same as the
first. Bigger samples are truncated, smaller samples are padded.

5 years agodoc: remove xml from comments
Mathieu Duponchelle [Wed, 29 May 2019 20:06:58 +0000 (22:06 +0200)]
doc: remove xml from comments

5 years agodocs: update plugins cache
Tim-Philipp Müller [Wed, 29 May 2019 10:02:26 +0000 (11:02 +0100)]
docs: update plugins cache

And add gtk+ and qt plugins

5 years agodv, gtk, qt, osxaudio, osxvideo, waveform: add to plugins list
Tim-Philipp Müller [Wed, 29 May 2019 09:58:40 +0000 (10:58 +0100)]
dv, gtk, qt, osxaudio, osxvideo, waveform: add to plugins list

Makes sure the paths for these plugins are included in the
uninstalled plugin paths list. And also for the docs.

Fixes #604

5 years agomatroskamux: Add new property to offset all streams to start at zero
Sebastian Dröge [Thu, 18 Apr 2019 12:31:00 +0000 (15:31 +0300)]
matroskamux: Add new property to offset all streams to start at zero

This takes the timestamp of the earliest stream and offsets it so that
it starts at 0. Some software (VLC, ffmpeg-based) does not properly
handle Matroska files that start at timestamps much bigger than zero.

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

5 years agortpmp4gdepay: don't spam debug log for broken ADTS-in-RTP AAC
Tim-Philipp Müller [Tue, 28 May 2019 13:13:56 +0000 (14:13 +0100)]
rtpmp4gdepay: don't spam debug log for broken ADTS-in-RTP AAC

Print warning only once.

5 years agosplitmuxsink: Only set running time on finalizing sink element when in async-finalize...
Sebastian Dröge [Wed, 22 May 2019 15:06:04 +0000 (18:06 +0300)]
splitmuxsink: Only set running time on finalizing sink element when in async-finalize mode

There is only a single sink element in async-finalize mode, and we would
keep the running time from previous fragments set in that case. As we
don't ever set the running time for the very last fragment on EOS, this
would mean that the closing time reported for the very last fragment is
the same as the closing time of the previous fragment.

5 years agortspsrc: Remove uneeded keep-alive hack
Nicolas Dufresne [Thu, 26 Mar 2015 17:08:32 +0000 (13:08 -0400)]
rtspsrc: Remove uneeded keep-alive hack

The rtsp connection code has been fixed now.

https://bugzilla.gnome.org/show_bug.cgi?id=744209

5 years agortpjitterbuffer: Print GstClockTimeDiff as GST_STIME_FORMAT
Vivia Nikolaidou [Sun, 26 May 2019 14:46:06 +0000 (17:46 +0300)]
rtpjitterbuffer: Print GstClockTimeDiff as GST_STIME_FORMAT

5 years agodoc: update plugin cache
Mathieu Duponchelle [Sat, 25 May 2019 17:45:02 +0000 (19:45 +0200)]
doc: update plugin cache

5 years agovideomixer: the documentation for GstVideoMixer2Pad is not exposed
Mathieu Duponchelle [Sat, 25 May 2019 15:25:02 +0000 (17:25 +0200)]
videomixer: the documentation for GstVideoMixer2Pad is not exposed

5 years agodoc: fix element section documentations
Mathieu Duponchelle [Sat, 25 May 2019 14:56:32 +0000 (16:56 +0200)]
doc: fix element section documentations

Element sections were not rendered anymore after the hotdoc
port, fixing this revealed a few incorrect links.

5 years agortpbin: Improve RTPStorage action signal documentation
Nicolas Dufresne [Tue, 19 Feb 2019 17:15:19 +0000 (12:15 -0500)]
rtpbin: Improve RTPStorage action signal documentation

This is a tiny clarification as the storage was loosely named "storage".
This change clarify that the storage is specificaly used for received RTP
packets. This is unlike the storage found in rtprtxsend that stores a
backlog of sent RTP packets.

5 years agomatroska: Add BT2020_10, PQ and HLG transfer functions
Seungha Yang [Sun, 5 May 2019 13:16:36 +0000 (22:16 +0900)]
matroska: Add BT2020_10, PQ and HLG transfer functions

The direct use of newly added transfer functions

5 years agoaasink: Generate pkg-config file for the plugin
Sebastian Dröge [Thu, 23 May 2019 09:38:06 +0000 (12:38 +0300)]
aasink: Generate pkg-config file for the plugin

5 years agomultifilesink: Fix documentation of max-file-duration property
Seungha Yang [Wed, 22 May 2019 02:01:17 +0000 (11:01 +0900)]
multifilesink: Fix documentation of max-file-duration property

The max-file-duration property works with max-duration mode

5 years agortpsession: Always keep at least one NACK on early RTCP
Nicolas Dufresne [Tue, 14 May 2019 21:36:14 +0000 (17:36 -0400)]
rtpsession: Always keep at least one NACK on early RTCP

We recently added code to remove outdate NACK to avoid using bandwidth
for packet that have no chance of arriving on time. Though, this had a
side effect, which is that it was to get an early RTCP packet with no
feedback into it. This was pretty useless but also had a side effect,
which is that the RTX RTT value would never be updated. So we we stared
having late RTX request due to high RTT, we'd never manage to recover.

This fixes the regression by making sure we keep at least one NACK in
this situation. This is really light on the bandwidth and allow for
quick recover after the RTT have spiked higher then the jitterbuffer
capacity.

5 years agodocs: Stop building the doc cache by default
Thibault Saunier [Thu, 16 May 2019 13:14:19 +0000 (09:14 -0400)]
docs: Stop building the doc cache by default

Fixes https://gitlab.freedesktop.org/gstreamer/gst-docs/issues/36

5 years agodocs: Update plugins documentation cache
Thibault Saunier [Tue, 14 May 2019 02:53:59 +0000 (22:53 -0400)]
docs: Update plugins documentation cache

5 years agodoc: Fix some docstrings
Thibault Saunier [Tue, 23 Apr 2019 16:28:23 +0000 (12:28 -0400)]
doc: Fix some docstrings

5 years agodoc: Port documentation to hotdoc
Thibault Saunier [Mon, 22 Oct 2018 09:39:55 +0000 (11:39 +0200)]
doc: Port documentation to hotdoc

5 years agoMark some properties as DOC_SHOW_DEFAULT
Thibault Saunier [Mon, 12 Nov 2018 11:05:45 +0000 (08:05 -0300)]
Mark some properties as DOC_SHOW_DEFAULT

5 years agodocs: Port all docstring to gtk-doc markdown
Thibault Saunier [Mon, 22 Oct 2018 09:39:24 +0000 (11:39 +0200)]
docs: Port all docstring to gtk-doc markdown

5 years agortspsrc: do not try to send EOS with invalid seqnum
Thiago Santos [Fri, 3 May 2019 05:14:35 +0000 (22:14 -0700)]
rtspsrc: do not try to send EOS with invalid seqnum

The second udpsrc (rtcp) might not have seen the segment event if it was
not enabled or if rtcp is not available on the server. So if the
application tries to send an EOS event it will try to set an invalid
seqnum to the event.

5 years agortpsource: Add more information to probation warning
Nicolas Dufresne [Wed, 24 Apr 2019 17:54:12 +0000 (13:54 -0400)]
rtpsource: Add more information to probation warning

5 years agortpsession: Call on-new-ssrc earlier
Nicolas Dufresne [Wed, 24 Apr 2019 17:47:54 +0000 (13:47 -0400)]
rtpsession: Call on-new-ssrc earlier

Right now, we may call on-new-ssrc after we have processed the first
RTP packet. This prevents properly configuring the source as some
property like "probation" are copied internally for use as a
decreasing counter. For this specific property, it prevents the
application from disabling probation on auxiliary sparse stream.

Probation is harmful on sparse streams since the probation algorithm
assume frequent and contiguous RTP packets.

5 years agomatroskamux: Write MasteringMetadata and Max{CLL,FALL}
Seungha Yang [Tue, 19 Feb 2019 04:34:49 +0000 (13:34 +0900)]
matroskamux: Write MasteringMetadata and Max{CLL,FALL}

Enable muxing with HDR meta data if upstream provided it

5 years agomatroskademux: Add support parsing HDR metadata
Seungha Yang [Mon, 18 Feb 2019 14:28:50 +0000 (23:28 +0900)]
matroskademux: Add support parsing HDR metadata

Set SMPTE ST 2086 mastering-display-metadata and
content-light-level to caps, if any

5 years agomatroska: Remove white space
Seungha Yang [Tue, 19 Feb 2019 09:27:23 +0000 (18:27 +0900)]
matroska: Remove white space

5 years agortprawdepay: Don't get rid of the buffer pool on FLUSH_STOP
Sebastian Dröge [Wed, 1 May 2019 07:00:51 +0000 (10:00 +0300)]
rtprawdepay: Don't get rid of the buffer pool on FLUSH_STOP

We expect there to be a pool as long as the caps are known and
FLUSH_STOP is not resetting the caps. Getting rid of the pool would
cause assertions.

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

5 years agortpbin: Free storage when freeing session
Danny Smith [Fri, 8 Feb 2019 09:09:17 +0000 (10:09 +0100)]
rtpbin: Free storage when freeing session

5 years agomatroskamux: Fix typo in error message
Sebastian Dröge [Thu, 25 Apr 2019 18:52:42 +0000 (21:52 +0300)]
matroskamux: Fix typo in error message

5 years agoimagefreeze: Only set the DISCONT flag on the first buffer after segment start
Sebastian Dröge [Thu, 25 Apr 2019 08:19:06 +0000 (11:19 +0300)]
imagefreeze: Only set the DISCONT flag on the first buffer after segment start

5 years agojack: Use jack_free(3) to release ports
okuoku [Tue, 23 Apr 2019 17:38:32 +0000 (02:38 +0900)]
jack: Use jack_free(3) to release ports

Port objects acquired with jack_get_ports() need to be freed with
jack_free(3), not stdlib free().

On Windows, Jack may be linked against different libc than GStreamer
libraries so free()ing port objects directly might cause crash because
of libc mismatch.

5 years agoscaletempo: Advertise interleaved layout in caps templates
Philippe Normand [Tue, 23 Apr 2019 09:10:01 +0000 (10:10 +0100)]
scaletempo: Advertise interleaved layout in caps templates

Scaletempo doesn't support non-interleaved layout. Not explicitely stating this
would trigger critical warnings and a caps negotiation failure when scaletempo
is used as playbin audio-filter.

Patch suggested by George Kiagiadakis <george.kiagiadakis@collabora.com>.

Fixes #591

5 years agomeson: matroska: Ensure header dependency not only library
Seungha Yang [Sun, 21 Apr 2019 11:12:28 +0000 (20:12 +0900)]
meson: matroska: Ensure header dependency not only library

Library existence does not guarantee header.

5 years agomultidupsink: Use gst_net_utils_set_socket_tos for QoS DSCP
Robert Rosengren [Tue, 13 Nov 2018 12:48:11 +0000 (13:48 +0100)]
multidupsink: Use gst_net_utils_set_socket_tos for QoS DSCP

Util function in net library exists for setting QoS DSCP on socket, hence
use it to simplify code.

5 years agoBack to development
Tim-Philipp Müller [Fri, 19 Apr 2019 09:27:38 +0000 (10:27 +0100)]
Back to development

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.