platform/upstream/gstreamer.git
5 years agonvh264enc: Fix broken Y444 format encoding with system memory Y444 support
Seungha Yang [Sat, 4 May 2019 11:56:38 +0000 (20:56 +0900)]
nvh264enc: Fix broken Y444 format encoding with system memory Y444 support

separateColourPlaneFlag is mapped to separate_colour_plane_flag which
means Y, U and V planes are separately processed as monochrome sampled pictures.
So encoder shouldn't set that flag for normal 4:4:4 encoding.

Also for 4:4:4 encoding, NV_ENC_H264_PROFILE_HIGH_444_GUID profile must be
explicitly set.

5 years agomeson: fix build with opencv=enabled and opencv4. Fixes #964
Christoph Reiter [Sun, 5 May 2019 20:11:16 +0000 (22:11 +0200)]
meson: fix build with opencv=enabled and opencv4. Fixes #964

Having the opencv feature enabled would lead to the opencv3 dependency
being required which failed with only opencv4 being available.

Instead don't require anything and error out at the end if the feature was enabled
but no dependency was found.

5 years agomeson: Add support for the colormanagement plugin
Thibault Saunier [Sun, 5 May 2019 23:27:15 +0000 (19:27 -0400)]
meson: Add support for the colormanagement plugin

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/965

5 years agoautotools: gstsctp: set LDFLAGS
Christoph Reiter [Sun, 5 May 2019 10:34:23 +0000 (12:34 +0200)]
autotools: gstsctp: set LDFLAGS

This fixes the mingw build which failed because of "-no-undefined" missing.

5 years agodecklink: Add support for parsing/outputting AFD/Bar
Sebastian Dröge [Fri, 3 May 2019 21:15:32 +0000 (00:15 +0300)]
decklink: Add support for parsing/outputting AFD/Bar

5 years agodecklink: Allow VANC to be used for all modes
Sebastian Dröge [Mon, 22 Apr 2019 12:42:12 +0000 (15:42 +0300)]
decklink: Allow VANC to be used for all modes

5 years agodecklink: Add support for widescreen NTSC/PAL
Sebastian Dröge [Tue, 16 Apr 2019 10:15:40 +0000 (13:15 +0300)]
decklink: Add support for widescreen NTSC/PAL

Same as non-widescreen but with a different pixel-aspect-ratio.

5 years agoh265parse: Parse mastering display info and content light level from SEI
Seungha Yang [Wed, 1 May 2019 12:24:49 +0000 (21:24 +0900)]
h265parse: Parse mastering display info and content light level from SEI

... and set to caps if necessary.

Note 1) the mastering display info and content light level SEI meessages
are persistent in the corresponding codec video sequence (i.e., GOP).
So any bitstream containing those SEI messages
(and also all pictures are intended to be HDR rendered) should be ensured that
each first slice of codec video sequence follows those SEI messages.

Note 2) The codec video sequence is a group an [IRAP + NoRaslOutputFlag == 1]
and following AUs which are not [IRAP + NoRaslOutputFlag == 1]
The NoRaslOutputFlag is equal to 1 for each IDR AU, BLA AU and some CRA AU.
For a CRA AU to have NoRaslOutputFlag equal to 1, following condition should required.
* When the CRA AU is the first AU in the bitstream in decoding order
* or the CRA AU is the first AU that follows an end of sequence NAL in decoding order
* or the HandleCraAsBlaFlag equal to 1.

Due to the limited context in parse element, in this commint, CRA AU will not considered as
having the NoRaslOutputFlag equal to 1. Therefore, in the worst case,
mastering-display-info and content-light-level could be cleared one GOP after
when stream was chagned from HDR to SDR.

5 years agoh265parser: Add parsing mastering display colour volume SEI message
Seungha Yang [Fri, 26 Apr 2019 11:11:12 +0000 (20:11 +0900)]
h265parser: Add parsing mastering display colour volume SEI message

... and content light level SEI message. Those SEI messages are required
for HDR rendering.

5 years agoandroidmedia: added path /system/vendor/etc to dependency
Roman Shpuntov [Fri, 3 May 2019 12:10:22 +0000 (19:10 +0700)]
androidmedia: added path /system/vendor/etc to dependency

5 years agonvenc/nvdec: Add NVIDIA SDK headers to noinst_HEADERS
Niels De Graef [Thu, 2 May 2019 12:29:03 +0000 (14:29 +0200)]
nvenc/nvdec: Add NVIDIA SDK headers to noinst_HEADERS

The tarballs that were being spun for 1.16 don't contain these headers
due to this small oversight, so let's add them.

5 years agorist: Enable plugin doc creation
Nicolas Dufresne [Fri, 5 Apr 2019 21:01:08 +0000 (17:01 -0400)]
rist: Enable plugin doc creation

5 years agorist: Add a plugin implenting RIST TR-06-1 Simple Profile
Nicolas Dufresne [Mon, 21 Jan 2019 16:44:10 +0000 (11:44 -0500)]
rist: Add a plugin implenting RIST TR-06-1 Simple Profile

RIST TR-06-1 is a specification for video streaming made by the VSF
group. It is using a subset of RTP specification to which some
modification has been made to improve RTX behaviour and avoid any need
for signaling. The plugin implement ristrtxsend / ristrtxreceive element
which are the RIST specific equivalent of rtprtxsend/rtprtxreceive and
ristsink / ristsrc which implement rist transmitter and receiver. The
RIST protocol is meant to be used in unidirectional way. Typically, MPEG
TS over RTP is used.

Currently we support unicast and multicast streaming according to the
specification. This patch does not include any bonding support yet. The
ristsrc element introduce rist:// URI handling in parallel to it's
property configuration interface.

5 years agoccextractor: copy input buffer flags to output buffer
Aaron Boxer [Wed, 1 May 2019 19:31:34 +0000 (15:31 -0400)]
ccextractor: copy input buffer flags to output buffer

GST_VIDEO_BUFFER_FLAG_INTERLACED and GST_VIDEO_BUFFER_FLAG_TFF
flags are needed when processing SCTE 20 closed captions for an interlaced
stream, when we need to convert back to analog, in which case we need to match
the caption to the top or bottom field

5 years agoh264parse: Fix typo when setting multiview mode and flags
Xavier Claessens [Wed, 1 May 2019 23:29:16 +0000 (19:29 -0400)]
h264parse: Fix typo when setting multiview mode and flags

5 years agox265enc: Do not drop SEI nals from header
Seungha Yang [Thu, 2 May 2019 04:20:30 +0000 (13:20 +0900)]
x265enc: Do not drop SEI nals from header

SEI message shouldn't be dropped since it contains various informal (or essential)
information.

5 years agox265enc: Add support mastering display info and content light level encoding
Seungha Yang [Thu, 2 May 2019 03:21:38 +0000 (12:21 +0900)]
x265enc: Add support mastering display info and content light level encoding

... if (x265 version >= 1.9) requirement is satisfied.

The SEI messages were supported since x265 version 1.8
but there was API change from version 1.9
(contentLightLevelInfo was renamed to maxCLL and maxFALL)

5 years agoFixed segtotal value being always 2 due to an unused variable
Marcos Kintschner [Wed, 1 May 2019 00:25:12 +0000 (21:25 -0300)]
Fixed segtotal value being always 2 due to an unused variable

The 'MAX' expression used to set segtotal always returned 2 because the unused and unitialized variable buffer_frame_count was always 0

5 years agoh265parser: parse range extension message in SPS/PPS.
Wangfei [Fri, 26 Apr 2019 01:52:43 +0000 (09:52 +0800)]
h265parser: parse range extension message in SPS/PPS.

Range extension message may exist in some extension-profile clips.

5 years agosctp: increase DEFAULT_NUMBER_OF_SCTP_STREAMS to 1024
Fabio D'Urso [Fri, 26 Apr 2019 14:25:17 +0000 (16:25 +0200)]
sctp: increase DEFAULT_NUMBER_OF_SCTP_STREAMS to 1024

This change makes it possible to create more than just 5 webrtc
data channels. The maximum number of data channels is exactly
DEFAULT_NUMBER_OF_SCTP_STREAMS / 2, therefore the limit is now
512.

5 years agolibs: Fix various Since markers
Sebastian Dröge [Tue, 23 Apr 2019 12:09:17 +0000 (15:09 +0300)]
libs: Fix various Since markers

5 years agoplayer: Fix various Since markers in the docs
Sebastian Dröge [Tue, 23 Apr 2019 11:33:05 +0000 (14:33 +0300)]
player: Fix various Since markers in the docs

5 years agoopencv: allow compilation against 4.1.x
Nicola Murino [Tue, 23 Apr 2019 07:06:13 +0000 (09:06 +0200)]
opencv: allow compilation against 4.1.x

5 years agosrt: post error when failing to start
Mark Nauwelaerts [Sun, 21 Apr 2019 15:17:14 +0000 (17:17 +0200)]
srt: post error when failing to start

... as appropriate for a subsequent state change failure

5 years agosrt: downgrade regular message to log level
Mark Nauwelaerts [Sun, 21 Apr 2019 14:47:30 +0000 (16:47 +0200)]
srt: downgrade regular message to log level

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

5 years agoRelease 1.16.0
Tim-Philipp Müller [Thu, 18 Apr 2019 23:28:55 +0000 (00:28 +0100)]
Release 1.16.0

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

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

5 years agomsdk: fix the build error with libva 2.4.0
Haihao Xiang [Wed, 17 Apr 2019 01:12:52 +0000 (09:12 +0800)]
msdk: fix the build error with libva 2.4.0

This fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/949

5 years agowebrtcdsp/meson.build: don't forget to set c++11 mode
Dan Kegel [Sat, 13 Apr 2019 20:50:25 +0000 (13:50 -0700)]
webrtcdsp/meson.build: don't forget to set c++11 mode

5 years agomeson: Remove redundant env set operation
Nirbheek Chauhan [Sat, 13 Apr 2019 06:04:22 +0000 (11:34 +0530)]
meson: Remove redundant env set operation

This is immediately overriden 4 lines later, and starting with Meso
0.50.1 this will lead to a noisy warning.

5 years agosctp: Create plugin with $(GST_PLUGIN_LDFLAGS)
Sebastian Dröge [Fri, 12 Apr 2019 07:22:56 +0000 (10:22 +0300)]
sctp: Create plugin with $(GST_PLUGIN_LDFLAGS)

Otherwise we don't create a plugin but a proper shared library with
version information, i.e. libgstsctp.so.0.0.0.

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

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

5 years agomsdkdec: fix error handling in case of unsupported hardware
Peter Seiderer [Sat, 6 Apr 2019 19:44:35 +0000 (21:44 +0200)]
msdkdec: fix error handling in case of unsupported hardware

Check the return value of gst_msdk_context_ensure_context and
abort in case of failure.

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

5 years agomsdkenc: fix error handling in case of unsupported hardware
Peter Seiderer [Sat, 6 Apr 2019 19:29:58 +0000 (21:29 +0200)]
msdkenc: fix error handling in case of unsupported hardware

Check the return value of gst_msdk_context_ensure_context and
abort in case of failure.

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

5 years agomsdk: fix error handling in case of unsupported hardware
Peter Seiderer [Sat, 6 Apr 2019 19:09:03 +0000 (21:09 +0200)]
msdk: fix error handling in case of unsupported hardware

Fix double gst_object_unref for GstMsdkContext.

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

5 years agowaylandsink: make gst_wl_window_is_toplevel aware of XDG shell
Andrey Konovalov [Tue, 9 Apr 2019 18:32:36 +0000 (21:32 +0300)]
waylandsink: make gst_wl_window_is_toplevel aware of XDG shell

5 years agoccextractor: document importance of pipeline order for this element
Aaron Boxer [Tue, 9 Apr 2019 15:26:28 +0000 (11:26 -0400)]
ccextractor: document importance of pipeline order for this element

5 years agomsdkvpp: add BGR10A2_LE format in the src pad
Haihao Xiang [Thu, 21 Mar 2019 08:22:23 +0000 (16:22 +0800)]
msdkvpp: add BGR10A2_LE format in the src pad

example pipeline:
gst-launch-1.0 videotestsrc ! video/x-raw,format=P010_10LE ! msdkvpp ! \
video/x-raw,format=BGR10A2_LE ! fakesink

5 years agomsdk: set some parameters in mfxFrameData for a MFX_FOURCC_A2RGB10 frame
Haihao Xiang [Thu, 21 Mar 2019 08:14:47 +0000 (16:14 +0800)]
msdk: set some parameters in mfxFrameData for a MFX_FOURCC_A2RGB10 frame

5 years agomsdk: map MFX_FOURCC_A2RGB10 to VA_FOURCC_A2R10G10B10
Haihao Xiang [Thu, 21 Mar 2019 07:34:36 +0000 (15:34 +0800)]
msdk: map MFX_FOURCC_A2RGB10 to VA_FOURCC_A2R10G10B10

5 years agomsdk: map GST_VIDEO_FORMAT_BGR10A2_LE to VA_FOURCC_A2R10G10B10
Haihao Xiang [Thu, 21 Mar 2019 07:29:15 +0000 (15:29 +0800)]
msdk: map GST_VIDEO_FORMAT_BGR10A2_LE to VA_FOURCC_A2R10G10B10

5 years agomsdk: map GST_VIDEO_FORMAT_BGR10A2_LE to MFX_FOURCC_A2RGB10
Haihao Xiang [Fri, 22 Mar 2019 05:43:23 +0000 (13:43 +0800)]
msdk: map GST_VIDEO_FORMAT_BGR10A2_LE to MFX_FOURCC_A2RGB10

5 years agodecklinkvideosrc: add missing break in set_property-code
Peter Körner [Tue, 9 Apr 2019 09:06:41 +0000 (11:06 +0200)]
decklinkvideosrc: add missing break in set_property-code

5 years agocea708decoder: use correct mask for font style
Aaron Boxer [Tue, 26 Mar 2019 13:43:46 +0000 (09:43 -0400)]
cea708decoder: use correct mask for font style

First three bits are used for font style, so mask
should be 0111 rather than 011 (in binary)

5 years agotests: h264parse: add minimal unit test for closed caption SEI parsing
Tim-Philipp Müller [Sun, 7 Apr 2019 12:47:38 +0000 (13:47 +0100)]
tests: h264parse: add minimal unit test for closed caption SEI parsing

5 years agoh264parse: extract CEA-708 closed captions
Tim-Philipp Müller [Fri, 29 Mar 2019 21:02:44 +0000 (21:02 +0000)]
h264parse: extract CEA-708 closed captions

Expose SEI data in the H.264 bitstream parser API and
extract closed captions and other things that are not
specified in the H.264 spec itself in the videoparser.

Based on patch by: Mathieu Duponchelle <mathieu@centricular.com>

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

5 years agovulkan: Add iOS window implementation
Matthew Waters [Wed, 27 Mar 2019 06:56:28 +0000 (17:56 +1100)]
vulkan: Add iOS window implementation

5 years agovulkan: Add Cocoa window implementation
Matthew Waters [Mon, 25 Mar 2019 06:50:13 +0000 (17:50 +1100)]
vulkan: Add Cocoa window implementation

5 years agovulkan: make the debug extension optional
Matthew Waters [Fri, 29 Mar 2019 05:24:15 +0000 (16:24 +1100)]
vulkan: make the debug extension optional

i.e. don't fail if it's not available

5 years agoassrender: fix seeking backwards
Tim-Philipp Müller [Sat, 6 Apr 2019 13:39:22 +0000 (14:39 +0100)]
assrender: fix seeking backwards

Use proper API to flush libass events when we do
a flushing seek, and also do it in FLUSH_STOP
rather than FLUSH_START, so we can be sure
streaming has stopped.

Fixes seeking back in time.

Something seems to have changed in libass that
renders the old manual way of flushing events
ineffective and libass then seems to ignore
timestamps that are older than the ones last
seen then if we do it the old way.

Fixes #916

5 years agoassrender: improve debug logging in video chain
Tim-Philipp Müller [Sat, 6 Apr 2019 13:33:45 +0000 (14:33 +0100)]
assrender: improve debug logging in video chain

Print video timestamps only once and enumerate text
buffers to make output more concise and nicer to read.

5 years agoassrender: use subtitle segment to calculate running time for text
Tim-Philipp Müller [Sat, 6 Apr 2019 13:31:37 +0000 (14:31 +0100)]
assrender: use subtitle segment to calculate running time for text

Not the video segment. This just for correctness, shouldn't make
any difference in practice since we don't support external SSA yet.

5 years agortponviftimestamp: prioritize PTS over DTS for NTP timestamp
Mathieu Duponchelle [Wed, 12 Dec 2018 14:25:45 +0000 (15:25 +0100)]
rtponviftimestamp: prioritize PTS over DTS for NTP timestamp

NTP timestamps are supposed to match the expected presentation
time, prefering the DTS to compute them was incorrect.

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

Section 6.3.1: NTP Timestamps

5 years agortponviftimestamp: buffer without PTS or DTS is not an error.
Mathieu Duponchelle [Tue, 13 Nov 2018 20:17:41 +0000 (21:17 +0100)]
rtponviftimestamp: buffer without PTS or DTS is not an error.

For example, when plugged after rtpgstpay, serialized events will
have neither.

5 years agortponviftimestamp: implement support for the T flag
Mathieu Duponchelle [Mon, 5 Nov 2018 19:32:03 +0000 (20:32 +0100)]
rtponviftimestamp: implement support for the T flag

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

6.3 RTP header extension

5 years agoIncrease nvenc's encoding height to 4096
Shi Yan [Thu, 4 Apr 2019 20:19:42 +0000 (20:19 +0000)]
Increase nvenc's encoding height to 4096

According to https://developer.nvidia.com/nvidia-video-codec-sdk

the minimum resolution nvenc supports should be 4096x4096

5 years agowaylandsink: Wait for the surface to be configured
Nicolas Dufresne [Tue, 26 Mar 2019 02:21:09 +0000 (22:21 -0400)]
waylandsink: Wait for the surface to be configured

With latest XDG shell, we need to fait for the surface to have been
configured before we can attach a buffer to it. This is being enforce by
Weston with an error.

Fixes #933

5 years agoh264parse, h265parse: take unit_field_based_flag into account ..
Mathieu Duponchelle [Tue, 2 Apr 2019 13:18:03 +0000 (15:18 +0200)]
h264parse, h265parse: take unit_field_based_flag into account ..

when computing timecode metas. Depending on the value of that flag,
n_frames is to be interpreted as a number of fields or a number of
frames. As GstVideoTimeCodeMeta always deals with frames, we want
to scale that number when needed.

5 years agoh265parse: forward time codes
Mathieu Duponchelle [Sat, 30 Mar 2019 00:17:08 +0000 (01:17 +0100)]
h265parse: forward time codes

This transforms time code SEIs into GstVideoTimeCodeMeta

5 years agoh264parse: forward time codes
Mathieu Duponchelle [Thu, 28 Mar 2019 21:02:02 +0000 (22:02 +0100)]
h264parse: forward time codes

This transforms time codes from the timing SEI into
GstVideoTimeCodeMeta

5 years agowpesrc: Switch to WPEBackend-fdo 1.2.0
Philippe Normand [Sat, 30 Mar 2019 14:02:50 +0000 (14:02 +0000)]
wpesrc: Switch to WPEBackend-fdo 1.2.0

5 years agosrtp: bump libsrtp requirement to 1.6.0
Tim-Philipp Müller [Fri, 29 Mar 2019 12:09:02 +0000 (12:09 +0000)]
srtp: bump libsrtp requirement to 1.6.0

See !234

5 years agomsdkdec: add postinit_decoder
Haihao Xiang [Fri, 29 Mar 2019 05:22:55 +0000 (13:22 +0800)]
msdkdec: add postinit_decoder

The workaround for https://github.com/Intel-Media-SDK/MediaSDK/issues/1139
is required for vp8 only, so move this workaround to the corresponding
postinit_decoder function

The pipeline below works with this change

gst-launch-1.0 filesrc location=SA10104.vc1 ! \
'video/x-wmv,profile=(string)advanced',width=720,height=480,framerate=14/1 ! \
msdkvc1dec ! fakesink

5 years agomsdkdec: don't set unknown picture struct to progressive for vc1
Haihao Xiang [Fri, 29 Mar 2019 04:53:38 +0000 (12:53 +0800)]
msdkdec: don't set unknown picture struct to progressive for vc1

MFXVideoDECODE_DecodeHeader only parses the sequence layer for VC1, so
the structure is unknown for a stream with interlace flag set in the
sequence layer. If forcing the struct to progressive in this plugin,
MediaSDK will fail to decode such streams.

5 years agomsdkvc1dec: add the preinit_decoder function
Haihao Xiang [Fri, 29 Mar 2019 04:57:10 +0000 (12:57 +0800)]
msdkvc1dec: add the preinit_decoder function

5 years agowpe: Bump required version to WPEWebKit 2.24
Philippe Normand [Thu, 28 Mar 2019 18:27:28 +0000 (18:27 +0000)]
wpe: Bump required version to WPEWebKit 2.24

Fixes #929

5 years agompegvideoparse: add debug code for closed captions
Aaron Boxer [Wed, 27 Mar 2019 17:22:47 +0000 (13:22 -0400)]
mpegvideoparse: add debug code for closed captions

This debug code will help determine why certain instances of closed
captions that are present in the Picture User Data are not actually
processed by the pipeline

5 years agosrtp: Add support for GCM (RFC 7714)
Ulf Olsson [Wed, 6 Mar 2019 06:36:44 +0000 (07:36 +0100)]
srtp: Add support for GCM (RFC 7714)

The GCM support in libsrtp have been there for a while and
it can be useful for some applications.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/913

5 years agonvenc: Don't leak CUDA device memory
Seungha Yang [Tue, 26 Mar 2019 11:43:22 +0000 (20:43 +0900)]
nvenc: Don't leak CUDA device memory

Allocated device memory should be freed with cuMemFree

5 years agonvenc: Ensure unmap resources before finalizing them
Seungha Yang [Tue, 26 Mar 2019 11:24:22 +0000 (20:24 +0900)]
nvenc: Ensure unmap resources before finalizing them

Mapped resource via NvEncMapInputResource() will result to unregister fail.
It can happen when paused to ready state change without EOS event.

5 years agoh265parse: ignore VUI parse fail when parse SPS
Haihua Hu [Thu, 28 Feb 2019 09:42:58 +0000 (17:42 +0800)]
h265parse: ignore VUI parse fail when parse SPS

VUI is an optional for SPS parse, some HEVC file has incorrect VUI
parameters but still can be decoded

5 years agoclosedcaption: fix build error in OSX
Josep Torra [Fri, 22 Mar 2019 21:32:59 +0000 (22:32 +0100)]
closedcaption: fix build error in OSX

Fixes the following error.

gstccconverter.c:677:7: error: variable 'len' is used uninitialized whenever 'if' condition is false
      [-Werror,-Wsometimes-uninitialized]
  if (flags & 0x40) {
      ^~~~~~~~~~~~
gstccconverter.c:698:10: note: uninitialized use occurs here
  return len;
         ^~~
gstccconverter.c:677:3: note: remove the 'if' if its condition is always true
  if (flags & 0x40) {
  ^~~~~~~~~~~~~~~~~~
gstccconverter.c:572:12: note: initialize the variable 'len' to silence this warning
  guint len;
           ^
            = 0

5 years agoclosedcaption: fix build error in OSX
Josep Torra [Fri, 22 Mar 2019 21:25:20 +0000 (22:25 +0100)]
closedcaption: fix build error in OSX

Fixes the following error by commenting an unused block.

./misc.h:503:11: error: 'strlcpy' macro redefined [-Werror,-Wmacro-redefined]

5 years agonvenc: Don't release stream lock on GstVideoEncoder::stop()
Seungha Yang [Mon, 25 Mar 2019 13:24:17 +0000 (22:24 +0900)]
nvenc: Don't release stream lock on GstVideoEncoder::stop()

baseclass didn't take the stream lock during stop. It's valid only for
GstVideoEncoder::finish()

Closes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/912

5 years agomsdkvpp: add VUYA format in the src and sink pads
Haihao Xiang [Fri, 8 Mar 2019 04:22:52 +0000 (12:22 +0800)]
msdkvpp: add VUYA format in the src and sink pads

5 years agomsdk: return the right pointer for GST_VIDEO_FORMAT_VUYA frame
Haihao Xiang [Thu, 14 Mar 2019 04:05:58 +0000 (12:05 +0800)]
msdk: return the right pointer for GST_VIDEO_FORMAT_VUYA frame

The first component for GST_VIDEO_FORMAT_VUYA in memory is V.

5 years agomsdk: set some parameters in mfxFrameData for a MFX_FOURCC_AYUV frame
Haihao Xiang [Fri, 8 Mar 2019 04:20:56 +0000 (12:20 +0800)]
msdk: set some parameters in mfxFrameData for a MFX_FOURCC_AYUV frame

5 years agomsdk: map MFX_FOURCC_AYUV to VA_FOURCC_AYUV
Haihao Xiang [Fri, 8 Mar 2019 04:15:14 +0000 (12:15 +0800)]
msdk: map MFX_FOURCC_AYUV to VA_FOURCC_AYUV

5 years agomsdk: map GST_VIDEO_FORMAT_VUYA to VA_FOURCC_AYUV
Haihao Xiang [Fri, 8 Mar 2019 04:26:37 +0000 (12:26 +0800)]
msdk: map GST_VIDEO_FORMAT_VUYA to VA_FOURCC_AYUV

5 years agomsdk: map GST_VIDEO_FORMAT_VUYA to MFX_FOURCC_AYUV
Haihao Xiang [Fri, 8 Mar 2019 04:13:05 +0000 (12:13 +0800)]
msdk: map GST_VIDEO_FORMAT_VUYA to MFX_FOURCC_AYUV

5 years agomsdkdec: avoid infinite loop
Haihao Xiang [Wed, 6 Mar 2019 05:07:53 +0000 (13:07 +0800)]
msdkdec: avoid infinite loop

It is possible MFXVideoDECODE_DecodeFrameAsync returns MFX_ERR_INCOMPATIBLE_VIDEO_PARAM
and this error can't be recovered by retrying MFXVideoDECODE_DecodeFrameAsync
in some cases, so we need to limit the number of retries to avoid infinite loop.

This fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/909

5 years agog-i: pass --quiet to g-ir-scanner
Tim-Philipp Müller [Sat, 23 Mar 2019 18:58:06 +0000 (18:58 +0000)]
g-i: pass --quiet to g-ir-scanner

This suppresses the annoying 'g-ir-scanner: link: cc ..' output
that we get even if everything works just fine.

We still get g-ir-scanner warnings and compiler warnings if
we pass this option.

5 years agog-i: silence 'nested extern' compiler warnings when building scanner binary
Tim-Philipp Müller [Sat, 23 Mar 2019 18:57:24 +0000 (18:57 +0000)]
g-i: silence 'nested extern' compiler warnings when building scanner binary

We need a nested extern in our init section for the scanner binary
so we can call gst_init to make sure GStreamer types are initialised
(they are not all lazy init via get_type functions, but some are in
exported variables). There doesn't seem to be any other mechanism to
achieve this, so just remove that warning, it's not important at all.

5 years agovulkan: fix some compiler warnings in gnu89 mode
Tim-Philipp Müller [Fri, 22 Mar 2019 23:35:04 +0000 (23:35 +0000)]
vulkan: fix some compiler warnings in gnu89 mode

for loop variable initialization and conflicting types for i.

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

5 years agoopenh264: fix build with gstreamer debug system disabled
Tim-Philipp Müller [Thu, 21 Mar 2019 11:14:37 +0000 (11:14 +0000)]
openh264: fix build with gstreamer debug system disabled

See https://gitlab.freedesktop.org/gstreamer/gst-ci/merge_requests/89

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:13:38 +0000 (11:13 +0000)]
meson: add -Wno-unused also to C++ args when gst debug system is disabled

5 years agomxfdemux: Avoid possible NULL caps 'dereferencing'
Thibault Saunier [Thu, 21 Mar 2019 00:38:04 +0000 (21:38 -0300)]
mxfdemux: Avoid possible NULL caps 'dereferencing'

5 years agortmpsrc: fix buffer leak on read error or EOS
Ilya Smelykh [Wed, 20 Mar 2019 12:45:12 +0000 (19:45 +0700)]
rtmpsrc: fix buffer leak on read error or EOS

5 years agowpesrc: Register backend activity states
Philippe Normand [Thu, 31 Jan 2019 16:31:04 +0000 (16:31 +0000)]
wpesrc: Register backend activity states

5 years agowpesrc: Always log loaded URI
Philippe Normand [Thu, 31 Jan 2019 16:30:18 +0000 (16:30 +0000)]
wpesrc: Always log loaded URI

5 years agowpesrc: Implement webview background configuration support
Philippe Normand [Fri, 18 Jan 2019 13:28:45 +0000 (13:28 +0000)]
wpesrc: Implement webview background configuration support

5 years agosrtpdec: Lower severity of srtp_err_status_replay_fail
Jan Alexander Steffens (heftig) [Fri, 15 Mar 2019 10:19:03 +0000 (11:19 +0100)]
srtpdec: Lower severity of srtp_err_status_replay_fail

AFAIU this happens when encountering retransmissions. Don't print a
warning for these packets.

5 years agosrtpdec: Simplify code flow handling status_key_expired
Jan Alexander Steffens (heftig) [Fri, 15 Mar 2019 10:16:10 +0000 (11:16 +0100)]
srtpdec: Simplify code flow handling status_key_expired

Ensures a balanced UNLOCK -> LOCK.

5 years agosrtpdec: Simplify checking the unprotect error
Jan Alexander Steffens (heftig) [Fri, 15 Mar 2019 10:13:14 +0000 (11:13 +0100)]
srtpdec: Simplify checking the unprotect error

Introduce an err label to jump to. Avoid logging two warnings per
failure.

5 years agosrtpdec: Simplify locking in gst_srtp_dec_decode_buffer
Jan Alexander Steffens (heftig) [Fri, 15 Mar 2019 10:03:52 +0000 (11:03 +0100)]
srtpdec: Simplify locking in gst_srtp_dec_decode_buffer

Don't drop the lock on filter just to unmap the buffer (or log a
message).

5 years agonetsim: don't use G_INLINE_FUNC
Tim-Philipp Müller [Mon, 18 Mar 2019 15:12:37 +0000 (15:12 +0000)]
netsim: don't use G_INLINE_FUNC

It's deprecated. Just use 'inline'.