Sebastian Dröge
538aae2404
msdkh264enc: Implement frame-packing SEI insertion for side-by-side and top-bottom
...
Ideally this would be supported directly in the Intel MediaSDK but
that's not the case nowadays.
https://bugzilla.gnome.org/show_bug.cgi?id=774920
2017-11-20 14:39:03 +02:00
Hyunjun Ko
3c611da315
msdkenc: Fix handling of YUY2, UYVY, BGRA surfaces
...
https://bugzilla.gnome.org/show_bug.cgi?id=789847
2017-11-20 14:38:34 +02:00
Sebastian Dröge
d3eeb98f0c
msdkenc: Add support for YV12, YUY2, UYVY and BGRA
...
By doing conversion with VPP to NV12 before the actual encoding.
https://bugzilla.gnome.org/show_bug.cgi?id=789847
2017-11-20 14:38:25 +02:00
Vivia Nikolaidou
71bfbce84d
decklink: Remove unused "bflags" variable
...
We are ignoring all its flags anyway, so let's remove it altogether.
2017-11-09 12:08:35 +02:00
Vivia Nikolaidou
5ab660c4e2
decklink: Ignore some driver-set timecode flags
...
The "fields" flag is ignored because currently GStreamer doesn't support
having only top or only bottom fields inside a frame. The "drop frame"
flag is ignored because some occurrences have been spotted where it
wasn't set while it should have been. In practice, when we have 29.97 or
59.94 FPS, it's always drop-frame.
https://bugzilla.gnome.org/show_bug.cgi?id=790112
2017-11-09 11:55:13 +02:00
Vivia Nikolaidou
bae9427dc1
decklink: Don't crash when getting hw serial number doesn't return OK
...
If the return value isn't OK, it means we might be getting data that
points to an invalid memory address. That shouldn't make us crash.
2017-11-09 00:19:42 +02:00
Vivia Nikolaidou
07819afda4
Revert "decklink: Detect gaps on incoming stream times, issue warnings"
...
This reverts commit c1294e10f9
.
Was not ready to be pushed yet.
2017-11-07 21:12:42 +02:00
Vivia Nikolaidou
c1294e10f9
decklink: Detect gaps on incoming stream times, issue warnings
...
When we receive a video or audio buffer, we calculate the next stream
time based on the current stream time + buffer duration. If the next
buffer's stream time is after that, we issue a warning.
This happens because the stream time incoming from Decklink should be
really constant and without gaps. If there is a gap, it means that
something went wrong, e.g. the internal buffer pool is empty (too many
buffers queued up downstream).
https://bugzilla.gnome.org/show_bug.cgi?id=781776
2017-11-07 16:45:52 +02:00
Hyunjun Ko
66d2bce8ff
msdk: fix to build msdkvp8dec with mfx_dispatch
...
https://bugzilla.gnome.org/show_bug.cgi?id=789751
2017-11-04 11:14:50 +02:00
Edward Hervey
b9e8ffb4be
dvb: Fix sockaddr_un usage
...
The sun_path field needs to be NULL-terminated
CID #206004
2017-11-04 07:51:14 +01:00
Hyunjun Ko
cd2dca6275
msdk: adds msdkvp8dec
...
https://bugzilla.gnome.org/show_bug.cgi?id=789751
2017-11-01 11:33:50 +02:00
Sebastian Dröge
62f04e801b
msdk: Allow building against mfx_dispatcher
...
E.g. from https://github.com/lu-zero/mfx_dispatch
2017-10-30 18:20:23 +02:00
Matthew Waters
dc6c4ea5c2
vtdec: destroy and create the GL context on start()/stop()
...
Removes a reference count loop
2017-10-30 17:19:40 +11:00
Nicola Murino
6165e07b62
vtdec: flush decoder on stop
...
fix a memory leak if the decoder shut down before EOS
https://bugzilla.gnome.org/show_bug.cgi?id=787311
2017-10-30 17:16:49 +11:00
Nicola Murino
889e735675
vtenc: flush encoder on stop
...
https://bugzilla.gnome.org/show_bug.cgi?id=787311
2017-10-30 17:16:29 +11:00
Nicola Murino
c808b4dd11
vtenc: fix memory leak
...
finish encoding and clean buffers queue on flush. This avoid a memory leak
if the element shuts down before EOS
https://bugzilla.gnome.org/show_bug.cgi?id=787311
2017-10-20 01:49:22 +11:00
Sebastian Dröge
a563cbbc1c
decklink: Add read-only property to read the device serial number
...
https://bugzilla.gnome.org/show_bug.cgi?id=788510
2017-10-18 12:33:28 +02:00
Ponnam Srinivas
53ea2f82ae
nvbaseenc: Fix Memory leak in error case
...
https://bugzilla.gnome.org/show_bug.cgi?id=788243
2017-10-13 18:43:01 +03:00
Vivia Nikolaidou
0355bb7c34
decklink: Print one "dropped N old frames" message, not one per frame
...
If we drop many frames at once, printing one message per video frame and
one per audio packet would cause a lot of disk IO. Just print a total at
the end.
https://bugzilla.gnome.org/show_bug.cgi?id=788780
2017-10-11 19:29:26 +03:00
Nicolas Dufresne
f272ddf9c7
kmssink: Fix crash on NULL dmabuf allocator pointer
...
Now that we are doing lazy allocation, we may endup calling _stop()
before the allocator was created. As a side effect, we need to nul-check
the pointer before calling it's method (_clear_cache()).
https://bugzilla.gnome.org/show_bug.cgi?id=787593
2017-10-06 15:10:26 -04:00
U. Artie Eoff
ddba9e40f2
kms: Fix compilation error when libdrm < 2.4.68
...
DRM_RDWR was not defined until libdrm 2.4.68. However,
in configure.ac we only require libdrm >= 2.4.55.
Seems silly to to bump minimum libdrm version for a simple
define. Thus, define DRM_RDWR if it's not defined.
This fixes compilation error introduced in:
commit 922031b0f9
Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date: Tue Sep 12 12:07:13 2017 -0400
kms: Export DMABuf from Dumb buffer when possible
https://bugzilla.gnome.org/show_bug.cgi?id=787593
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2017-10-05 20:50:37 -04:00
Nicolas Dufresne
2057a36d04
kmsallocator: Update GstVideoInfo.size when extrapolating
...
When we guess the strides, we need to also update the GstVideoInfo.size
otherwise the memory size will be set to something smaller then needed.
This was causing crash with the DMABuf exportation, since we would not
mmap() a large enough buffer.
https://bugzilla.gnome.org/show_bug.cgi?id=787593
2017-10-05 16:19:15 -04:00
Nicolas Dufresne
922031b0f9
kms: Export DMABuf from Dumb buffer when possible
...
https://bugzilla.gnome.org/show_bug.cgi?id=787593
2017-10-05 16:16:16 -04:00
Nicolas Dufresne
9d5a524547
kmssink: Move the mem cache into the allocator
...
No functional change, the cache will be later reused by the buffer
pool to keep track of the kmssink memory when exporting dmabuf.
https://bugzilla.gnome.org/show_bug.cgi?id=787593
2017-10-05 16:16:16 -04:00
Nicolas Dufresne
119294f3fc
kmsbufferpool: Don't check allocator pointer twice
...
https://bugzilla.gnome.org/show_bug.cgi?id=787593
2017-10-05 16:16:16 -04:00
Nicolas Dufresne
0a25ca893d
kmsbufferpool: Removed unused member fd
...
https://bugzilla.gnome.org/show_bug.cgi?id=787593
2017-10-05 16:16:16 -04:00
Nicolas Dufresne
045a91922c
kmssink: Check if we can prime export
...
This will be used later to decide if a DMABuf allocator should be
exposed.
https://bugzilla.gnome.org/show_bug.cgi?id=787593
2017-10-05 16:16:16 -04:00
Sebastian Dröge
350c56dab4
decklinkaudio/videosrc: Put hardware reference timestamp in a reference timestamp meta
...
This can be useful to know on multi-channel cards which frames from
different channels were captured at the same time.
2017-09-28 13:55:18 +03:00
Sebastian Dröge
980ddfdfb7
decklink: Free the correct memory in our own buffer pool
...
The buffer itself is 128 bytes into the allocated memory area, to be
able to store the size and other metadata before it. Freeing the buffer
directly will make malloc moderately unhappy.
2017-09-21 14:40:06 +03:00
Per-Erik Brodin
650adc43a9
nvdec: Correctly set the discontinuity flag
...
Instead of clearing the "valid timestamp" flag, which would result in a
timestamp mismatch after a discontinuity.
https://bugzilla.gnome.org/show_bug.cgi?id=787926
2017-09-20 11:22:15 +10:00
Nicolas Dufresne
ee021c0418
kmssink: Don't leak the dumb buffer on drain
2017-09-08 10:16:12 -04:00
Nicolas Dufresne
22ce257f1c
kmssink: Don't assume buffer pool won't touch buf pointer
...
Just for extra safety, let's not assume that gst_buffer_pool_acquire()
won't ever touch the buf pointer.
2017-09-08 09:28:19 -04:00
Guillaume Desmottes
7e38fb5422
kms: fix crash if bo allocation failed when copying to dumb buffer
...
If bo allocation failed we destroy the buffer and return GST_FLOW_ERROR,
but the @buffer pointer was still pointing to the address of the
destroyed buffer. gst_kms_sink_copy_to_dumb_buffer() was then trying to
unref it when bailing out causing a crash.
Leave @buffer untouched if allocation failed to fix the crash.
Also remove the check on *buffer being not NULL as gst_buffer_new()
will abort if it failed.
https://bugzilla.gnome.org/show_bug.cgi?id=787442
2017-09-08 09:26:21 -04:00
Nicolas Dufresne
9b2e28d91d
Request minimum buffer even if need_pool is FALSE
...
When tee is used, it will not request a pool, but still it wants to
know how many buffers are required.
https://bugzilla.gnome.org/show_bug.cgi?id=730758
2017-09-06 14:19:37 -04:00
Matthew Waters
4d2382fb27
amc: actually use the provided application class loader
...
For the camera and sensor
Fixes a couple of ClassNotFound java exceptions when initializing GStreamer
off the main thread.
2017-09-05 21:16:33 +10:00
George Kiagiadakis
83883a5c18
ipcpipeline: cleanup header includes
...
We are only using read(), write(), memcpy(), strlen() and errno
in ipcpipelinecomm.c. Everything else is glib/gstreamer.
2017-09-04 16:03:17 +03:00
George Kiagiadakis
15927b6511
ipcpipeline: use GstPoll instead of select() to watch for socket activity
...
... and make that code more readable in the process
https://bugzilla.gnome.org/show_bug.cgi?id=787208
2017-09-04 15:52:03 +03:00
Per-Erik Brodin
f267451751
nvdec: fix build after GL/gl.h no longer included
...
GL headers are no longer included in public gstgl headers, except for
gstglfuncs.h so make sure to include that one.
https://bugzilla.gnome.org/show_bug.cgi?id=786993
2017-08-30 09:37:14 +03:00
Matthew Waters
63c582d685
gl: fix build for ios/win32/android after 2fd84a6c
...
Some missing GL includes.
2017-08-28 12:57:47 +10:00
Philippe Normand
157a255c43
applemedia: fix build after commit 2fd84a6c
2017-08-22 16:19:39 +01:00
Jan Alexander Steffens (heftig)
f338621446
sys: Convert source files to UTF-8
...
Otherwise we have problems with the new gtk-doc
ported to python. But it's a good thing to do
anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=786364
2017-08-16 13:05:05 +01:00
Dave Johnstone
0cd1bf13e8
decklinkvideosink: Add support for Decklink hardware keying
...
Add two properties (keyer-mode and keyer-level) to control the built-in hardware keyer of Decklink cards.
https://bugzilla.gnome.org/show_bug.cgi?id=773660
2017-08-15 11:09:37 +03:00
Nicolas Dufresne
a5229c3098
kmssink: Add bus-id property
...
https://bugzilla.gnome.org/show_bug.cgi?id=786112
2017-08-11 09:32:08 -04:00
Nicolas Dufresne
b7b7948e5f
kmssink: Free devname before setting it
...
This avoids leaking the devname if the property is set twice.
2017-08-09 15:00:17 -04:00
Nicola Murino
f5d8304724
vtenc: assume 25 fps for unknown framerate
...
This is better than reporting no latency at
all and then later failing in live pipelines.
https://bugzilla.gnome.org/show_bug.cgi?id=786036
2017-08-09 12:38:05 +03:00
Nicolas Dufresne
1ec081f96d
Revert "kmssink: support videooverlay interface"
...
This is causing hard failure for non-squared pixel. The fix isn't
trivial so taking offline by reverting.
This reverts commit db07f4507d
.
2017-08-07 16:00:59 -04:00
Sebastian Dröge
571c8bc1ff
decklink: Fix indentation
2017-08-02 19:07:35 +03:00
George Kiagiadakis
58e2b2ef1c
ipcpipeline: don't use g_steal_pointer; it's not in the current required version of GLib
...
We depend on GLib 2.40, g_steal_pointer was introduced in 2.44.
https://bugzilla.gnome.org/show_bug.cgi?id=785698
2017-08-02 10:46:46 +03:00
George Kiagiadakis
30f5abc32c
ipcpipeline: move to sys/ and make it dependent on platform support for unix sockets
2017-08-02 10:40:24 +03:00
Georg Lippitsch
a205338082
decklinksrc: Raise limit of devices to 16
...
https://bugzilla.gnome.org/show_bug.cgi?id=785694
2017-08-01 10:22:58 -04:00