platform/upstream/gstreamer.git
5 years agodocs: Make sure frei0r plugins properties default are stable
Thibault Saunier [Tue, 14 May 2019 14:45:21 +0000 (10:45 -0400)]
docs: Make sure frei0r plugins properties default are stable

frei0r returns 'random' values as default and it makes the cache
often change for no good reason

5 years agodocs: Remove stereo and openglmixer from the cache
Thibault Saunier [Tue, 14 May 2019 14:28:17 +0000 (10:28 -0400)]
docs: Remove stereo and openglmixer from the cache

Thus were moved, respectively, to -good and -base

5 years agodtlsagent: Do not overwrite openssl locking callbacks
Jose Antonio Santos Cadenas [Tue, 14 May 2019 07:36:15 +0000 (07:36 +0000)]
dtlsagent: Do not overwrite openssl locking callbacks

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

5 years agodocs: Build documentation with hotdoc
Thibault Saunier [Mon, 22 Oct 2018 09:30:45 +0000 (11:30 +0200)]
docs: Build documentation with hotdoc

5 years agoMark some properties as DOC_SHOW_DEFAULT
Thibault Saunier [Mon, 12 Nov 2018 21:24:20 +0000 (18:24 -0300)]
Mark some properties as DOC_SHOW_DEFAULT

5 years agoMinor documentation fixes
Thibault Saunier [Sat, 11 Aug 2018 00:32:30 +0000 (20:32 -0400)]
Minor documentation fixes

5 years agodirectfb: Fixup plugin name to match plugin filename
Thibault Saunier [Mon, 22 Oct 2018 09:30:09 +0000 (11:30 +0200)]
directfb: Fixup plugin name to match plugin filename

Has required by the new PLUGIN_DEFINE macro

5 years agomeson: Fix missing GSM_HEADER_IN_SUBDIR logic
Niklas Hambüchen [Wed, 1 May 2019 17:40:03 +0000 (19:40 +0200)]
meson: Fix missing GSM_HEADER_IN_SUBDIR logic

Until now, this hadn't been translated from autoconf yet.

5 years agomeson: Fix typo in gsm header file name
Niklas Hambüchen [Wed, 1 May 2019 17:16:58 +0000 (19:16 +0200)]
meson: Fix typo in gsm header file name

This was wrong since commit c360ceea4deb5d56c94126e31b9614734e8c1a7e.

Also fix incorrect indentation (tab instead of spaces).

Found using hermetic builds with Nix:

    https://github.com/NixOS/nixpkgs/pull/54398#discussion_r280125735

5 years agosrt: set cancellation in locked section
Mark Nauwelaerts [Wed, 1 May 2019 17:22:17 +0000 (19:22 +0200)]
srt: set cancellation in locked section

... to avoid race with wait which uses it with 'flushing' flag state semantics.

5 years agosrt: avoid srtsrc segfault upon downward state change
Mark Nauwelaerts [Wed, 1 May 2019 17:01:03 +0000 (19:01 +0200)]
srt: avoid srtsrc segfault upon downward state change

... when it has not yet been connected to.

Also, a condition variable is not a semaphore, so a lock/wait/unlock
sequence is inherently racy without any state checking.  So switch to
a different lock and check the intended state.

5 years agosrt: initialize list access within locked region
Mark Nauwelaerts [Wed, 1 May 2019 16:58:30 +0000 (18:58 +0200)]
srt: initialize list access within locked region

5 years agowebrtc: Fix signals documentation
Niels De Graef [Thu, 9 May 2019 12:08:31 +0000 (14:08 +0200)]
webrtc: Fix signals documentation

Some GIR annotations were incorrect or even missing. The former isn't
good for bindings, while the latter is especially annoying for signal
handlers, as that means your arguments will get the wrong names in the
rendered documentation.

5 years agonvenc: Respect display aspect ratio and set to encoding parameter
Seungha Yang [Thu, 9 May 2019 06:11:17 +0000 (15:11 +0900)]
nvenc: Respect display aspect ratio and set to encoding parameter

It should be written in VUI parameter for proper rendering

5 years agowebrtc: Add g_autoptr() support for public types
Niels De Graef [Wed, 8 May 2019 13:46:26 +0000 (15:46 +0200)]
webrtc: Add g_autoptr() support for public types

5 years agoopenh264enc: Fix compilation with openh264 v2.0
Víctor Manuel Jáquez Leal [Wed, 8 May 2019 11:35:25 +0000 (13:35 +0200)]
openh264enc: Fix compilation with openh264 v2.0

As OpenH264 increased its version to 2.0 the guard for structure
member is not valid.

This patch will fix the compilation with gst-build and openh264.

5 years agomeson: Allow CUDA_PATH fallback on linux
Seungha Yang [Wed, 8 May 2019 10:26:03 +0000 (19:26 +0900)]
meson: Allow CUDA_PATH fallback on linux

That's what we've supported via autotools build

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

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