Seungha Yang
2c81a50c2c
hlssink2: Fix string leak
...
Need to free allocated string memory on _finalize()
2018-11-27 16:08:17 +09:00
Xiang, Haihao
b0d22f8cb4
msdk: remove unnecessary assignment
...
CodecProfile will be set in MFXVideoDECODE_DecodeHeader() to match
the input stream. Setting the hard-coded profile here will mislead
user that msdkh265dec supports a special profile only.
2018-11-26 16:47:17 +00:00
Xiang, Haihao
b38f8d301c
msdk: update the sink and src caps of msdkh265dec
...
Now hevc 10bit video can be decoded correctly, so update the sink
and src caps accordingly.
This fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/720
2018-11-26 16:47:17 +00:00
Xiang, Haihao
2b0923842a
msdk: set right BitDepth and Shift for P010 mfx frame
...
BitDepth is 10 and Shitf must be set to 1 when creating P010 mfx
frame in MSDK
2018-11-26 16:47:17 +00:00
Xiang, Haihao
fda4918cc8
msdk: don't use hard-coded video format
...
Some codecs may support varied formats, e.g. HEVC may support NV12
and P010_10LE etc
2018-11-26 16:47:17 +00:00
Xiang, Haihao
27ab7fb40f
msdk: adjust the RT format for P010 surface
...
According to VA API, VA_RT_FORMAT_YUV420_10 is expected for P010
surface
2018-11-26 16:47:17 +00:00
Xiang, Haihao
eeb58f64c2
msdk: create VA_FOURCC_P010 surface from dmabuf
2018-11-26 16:47:17 +00:00
Xiang, Haihao
7d58424611
msdk: VA_FOURCC_P010 frame lock
...
P010 and NV12 have the same layout, so we may reuse the code in
gst_msdk_frame_lock()
2018-11-26 16:47:17 +00:00
Xiang, Haihao
f72c825194
msdk: map MFX_FOURCC_P010 to VA_FOURCC_P010
2018-11-26 16:47:17 +00:00
Xiang, Haihao
dc070a8306
msdk: make sure the surface data is set for GST_VIDEO_FORMAT_P010_10LE
...
P010_10LE and NV12 have the same layout, so we may reuse the code.
2018-11-26 16:47:17 +00:00
Haihao Xiang
54451b7303
msdk: map GST_VIDEO_FORMAT_P010_10LE to MFX_FOURCC_P010
2018-11-26 16:47:17 +00:00
Xiang, Haihao
1d97a6f00e
msdk: add an assert in gst_msdk_frame_lock() for unhandled formats
...
We will add support for more formats, e.g. P010, Adding an assert
here may catch the error early
2018-11-26 16:47:17 +00:00
Haihao Xiang
1c0160513b
msdk: use separate src caps for msdkh265dec
...
We will add more formats in the src caps of msdkh265dec, so let
msdkh265dec uses separate src caps. Note it doesn't change any
capability
2018-11-26 16:47:17 +00:00
Xiang, Haihao
1bfd1b2bf9
msdk: Make sure a variable is initialized when it is used
...
Previously alloc_info is initialized when both thiz->initialized
and thiz->allocation_caps are true, but only thiz->initialized is
checked when alloc_info is used.
2018-11-26 16:13:44 +00:00
Xiang, Haihao
38cf42f90f
msdk: Close fd handle
...
Otherwise it will result in resource leak if mem == NULL
2018-11-26 16:13:44 +00:00
Nicola Murino
24d5c9b200
opencv: define CASCADE_DO_CANNY_PRUNING for opencv < 4
2018-11-26 13:29:03 +00:00
Nicola Murino
b0773c6ea7
opencv: make compatible with opencv 4
...
Closed #826
2018-11-26 13:29:03 +00:00
Nicola Murino
890dbb560f
opencv: fix indentation
2018-11-26 13:29:03 +00:00
Wangfei
2fd3130350
configure.ac: add gst-allocator check in msdk.
...
With out check gst-allocator, there will be a gst-allocator api
symbol link error when call for libgstmsdk.so.
2018-11-26 09:45:01 +00:00
Matthew Waters
d67d866eb9
decklink: fixup internal time tracking over buffering pauses
...
Instead of relying on buffers after a state change to PLAYING to always start
from 0, track the amount of time we have spent outside playing but not changed
state to PAUSED.
2018-11-26 17:57:45 +11:00
Matthew Waters
65c9c4b406
tests/webrtc: fix tests for no libnice
...
webrtcbin will fail the state change to READY when libnice elements are
not available.
2018-11-26 17:13:08 +11:00
Matthew Waters
57a006d8a5
tests/webrtc: use the existing functions in the plugin
...
Instead of redefining our own, use the function implementations in
webrtcsdp.c and utils.c
2018-11-26 17:13:08 +11:00
Matthew Waters
14ee6f9d35
webrtc: fix typo in RTCRemoteOutboundRTPStreamStats
2018-11-26 16:21:58 +11:00
Matthew Waters
a42fdbb012
webrtc: add a few comments on bundle and src pad exposure
2018-11-26 16:21:19 +11:00
Matthew Waters
6f91a191de
webrtcbin: factor out dtls fingerprint setting
2018-11-26 16:20:02 +11:00
Matthew Waters
3a2566c61f
webrtc: remove extra 'pad' from log line
2018-11-26 16:12:03 +11:00
Matthew Waters
5ecca0bb22
webrtc: move some functions to the appropriate files
2018-11-26 16:07:57 +11:00
Seungha Yang
d2e87e6a31
meson: Fix Windows CUDA dependency check
...
Python returns 'None' string for unknown environment
2018-11-26 11:31:06 +09:00
Seungha Yang
d3a6eb7977
nvh265enc: Fix email address typo
2018-11-25 23:31:37 +00:00
Seungha Yang
c75907d23c
nvenc: Fix undefined reference build error on MSVC and CUDA 9.1
2018-11-25 23:31:37 +00:00
Seungha Yang
3cd1d0c7bc
nvenc: Fix MSVC build error C2121
2018-11-25 23:31:37 +00:00
Seungha Yang
6bf5ba993d
nvenc: Add meson build with Windows support
...
Note that, since Nvidia does not provide nvEncodeAPI.lib file,
find_library() couldn't be used for build on Windows.
This patch changes to load nvEncodeAPI(64).dll or libnvidia-encode.so
in runtime
2018-11-25 23:31:37 +00:00
Seungha Yang
6051c47bfe
nvdec: Add meson build with Windows support
2018-11-25 23:31:37 +00:00
Seungha Yang
4e314d6f80
nvdec: Drop dynlink interface and use NVIDIA CODEC SDK instead
...
dynlink_* was introduced since CUDA Toolkit 9.x but it's deprecated from 10.0.
Instead of using #ifdef hack, shipping nvidia headers of NVIDA CODEC SDK
can make build/code simple
2018-11-25 23:31:37 +00:00
Seungha Yang
67a84254ae
nvdec/nvenc: Shipping NVIDA Codec SDK headers
...
Add cuvidec.h, nvcuvid.h and nvEncodeAPI.h of NVIDIA Codec SDK 8.2.16
2018-11-25 23:31:37 +00:00
Seungha Yang
04f3cf80d5
nvenc/nvdec: Add support CUDA Toolkit 10.0
2018-11-25 23:31:37 +00:00
Tim-Philipp Müller
47b68176a1
examples: codecparser: fix compiler warnings for unstable API use
...
Breaks build bots and build with --werror
2018-11-25 17:33:04 +00:00
Tim-Philipp Müller
18e4e80b7d
examples: force gtk to x11 backend
...
Until someone makes it work with the wayland backend.
The code currenty assumes and hard-codes X11.
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/49
2018-11-25 16:28:25 +00:00
Tim-Philipp Müller
347d732889
meson: build more examples
...
See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/576
2018-11-25 14:59:16 +00:00
Seungha Yang
4de06ea12c
meson: Specify encoding to UTF-8 when building with MSVC
...
Use build arguments consistent with core and -base. This can also
remove noisy "C4819" warning of non-us locale MSVC.
2018-11-24 19:26:30 +09:00
Víctor Manuel Jáquez Leal
09dbe83e5d
msdk: don't declare headers in meson
...
This partially reverts commit 0bae648353
.
The compiler tells ninja the header dependency, then there is
no need to add them explicity.
2018-11-23 17:10:24 +01:00
Víctor Manuel Jáquez Leal
0bae648353
msdk: declare headers in meson
2018-11-23 13:50:20 +01:00
Wangfei
409d4ff30e
msdkdec: move output-order out of decode bass class.
...
Since output-order is a deprecated attribute, move it out of decode
bass class and configure it in each sub decoder class who need it.
https://bugzilla.gnome.org/show_bug.cgi?id=796853
2018-11-23 12:26:40 +00:00
Víctor Manuel Jáquez Leal
eaa1bd93e8
msdk: add support for open sourced MediaSDK
...
MediaSDK has been released as open source [1], but the directories
where it installs its files, are different from the binary only
distribution.
This patch adds to the libraries path the directory /lib. Also it
is defined in meson if the include directory has the mfx/ prefix,
something that is already handled in autotools.
1. https://github.com/Intel-Media-SDK/MediaSDK
2018-11-22 17:31:58 +01:00
Harshad Khedkar
9ad618e487
Webrtcbin : Need to use 'host' from gst_uri_get_host s libnice agent expects it
...
Currently master code of gst1-plugins-bad use plain-string host name while passing it to
libnice agent: nice_agent_set_relay_info() in gstwebrtcice.c while adding turn_server(_add_turn_server).
It is observered that if we don't convert the host parameter by using gst_uri_get_host, it fails in libnice agent(0.1.14-1).
Code does, actually, set the host correctly but while passing params to nice_agent_set_relay_info, it uses incorrect one.
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/823
2018-11-22 18:47:13 +05:30
Lars Petter Endresen
e6c56ec014
siren: Fix floating point invalid operation
...
Mix of single and double precision leads to zero-by-zero divide
for upper 64-bit of the xmm register, even though they are not
used.
2018-11-15 08:44:12 +00:00
Rosen Penev
29d48ce8a1
dtls: Fix compilation without deprecated APIs on OpenSSL 1.1.x
2018-11-14 14:55:37 -08:00
Justin Kim
e76c61d74c
cameracalibrate: Fix build error on Mac OSX
...
It fails to build only on Mac OSX with the following error.
In file included from ../subprojects/gst-plugins-bad/ext/opencv/gstopencv.cpp:45:
../subprojects/gst-plugins-bad/ext/opencv/gstcameracalibrate.h:96:38: error: a space is required between consecutive right angle brackets (use '> >')
std::vector<std::vector<cv::Point2f>> imagePoints;
^~
> >
1 error generated.
Fix : #817
2018-11-13 18:23:19 +09:00
Seungha Yang
b44d2702ca
meson: Fix invalid keyword warning
...
"required" keyword is not a valid argument for has_header()
WARNING: Passed invalid keyword argument "required".
WARNING: This will become a hard error in the future.
2018-11-13 09:02:21 +00:00
Sebastian Dröge
1d0d395b5c
decklinkvideosink: Cast result of bitwise-or of multiple enum values to the enum again
...
In C++ the bitwise-or results in an int, and ints are not implicitely
cast to enums.
See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/25#note_78122
2018-11-13 10:02:57 +02:00