gstreamer/sys/decklink
Matthew Waters bf849e9a69 decklink: start scheduled playback in paused
This is part of a much larger goal to always keep the frames we schedule to
decklink be always increasing.  This also allows us to avoid using both the
sync and async frame display functions which aren't recomended to be used
together.

If the output timestatmsp is not always increasing decklink seems to hold
onto the latest frame and may cause a flash in the output if the played
sequence has a framerate less than the video output.

Scenario is play for N seconds, pause, flushing seek to some other position,
play again.  Each of the play sequences would normally start at 0 with
the decklink time.  As a result, the latest frame from the previous sequence
is kept alive waiting for it's timestamp to pass before either dropping
(if a subsequent frame in the new sequence overrides it) or displayed
causing the out of place frame to be displayed.

This is also supported by the debug logs from the decklink video sink
element where a ScheduledFrameCompleted() callback would not occur for
the frame until the above had happened.

It was timing related as to whether the frame was displayed based
on the decklink refresh cycle (which seems to be 16ms here),
when the frame was scheduled by the sink and the difference between
the 'time since vblank' of the two play requests (and thus start times
of scheduled playback).

https://bugzilla.gnome.org/show_bug.cgi?id=797130
2018-09-12 21:16:27 +10:00
..
linux decklink: Update to SDK 10.8 2016-09-26 16:39:18 +03:00
osx decklink: Update to SDK 10.8 2016-09-26 16:39:18 +03:00
win decklink: Fix MinGW warnings due to MSVC-specific pragmas 2018-03-31 11:16:38 +05:30
gstdecklink.cpp decklinkvideosrc: Add support for extracting Closed Caption 2018-04-23 16:16:06 +02:00
gstdecklink.h decklinkvideosrc: Add support for extracting Closed Caption 2018-04-23 16:16:06 +02:00
gstdecklinkaudiosink.cpp decklink: start scheduled playback in paused 2018-09-12 21:16:27 +10:00
gstdecklinkaudiosink.h decklinkaudiosink: Implement resampling/buffer reversing for trick-modes 2017-12-14 10:37:20 +02:00
gstdecklinkaudiosrc.cpp decklinkaudiosrc: Extrapolate stream/hw reference timestamps when video frame is missing 2018-01-04 15:51:16 +02:00
gstdecklinkaudiosrc.h decklinkaudiosrc: Extrapolate stream/hw reference timestamps when video frame is missing 2018-01-04 15:51:16 +02:00
gstdecklinkvideosink.cpp decklink: start scheduled playback in paused 2018-09-12 21:16:27 +10:00
gstdecklinkvideosink.h decklink: start scheduled playback in paused 2018-09-12 21:16:27 +10:00
gstdecklinkvideosrc.cpp decklink: Only use drop-frame flag for 29.97 and 59.94 FPS 2018-08-28 15:23:48 +03:00
gstdecklinkvideosrc.h decklinkvideosrc: Add support for extracting Closed Caption 2018-04-23 16:16:06 +02:00
Makefile.am decklink: Add autotools support on Windows 2017-07-14 17:21:13 +05:30
meson.build meson: host_system is 'ios' when building for iOS 2018-08-17 04:07:24 +05:30