mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
8fd345f018
The existing code assumed that the first frame received by the decklink output would always be PTS zero. However if running in other timing modes than the default of CBR, items such as frame dropping at the beginning may result in starting at a non-zero PTS. For example, in our setup because we discard probing data and run with "-vsync 2" the first video frame scheduled to the decklink output will have a PTS around 170. Scheduling frames too far into the future will either fail or cause a backlog of frames scheduled far enough into the future that the entire pipeline will stall. Issue can be reproduced with the following command-line: ./ffmpeg -copyts -i foo.ts -f decklink -vcodec v210 -ac 2 'DeckLink Duo (4)' Keep track of the PTS of the first frame received, so that when we enable start playback we can provide that value to the decklink driver. Thanks to Marton Balint for review and suggestion to use AV_NOPTS_VALUE rather than zero for the initial value. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu> |
||
---|---|---|
.. | ||
tests | ||
.gitignore | ||
alldevices.c | ||
alsa_dec.c | ||
alsa_enc.c | ||
alsa.c | ||
alsa.h | ||
android_camera.c | ||
audiotoolbox.m | ||
avdevice.c | ||
avdevice.h | ||
avdeviceres.rc | ||
avfoundation.m | ||
bktr.c | ||
caca.c | ||
decklink_common_c.h | ||
decklink_common.cpp | ||
decklink_common.h | ||
decklink_dec_c.c | ||
decklink_dec.cpp | ||
decklink_dec.h | ||
decklink_enc_c.c | ||
decklink_enc.cpp | ||
decklink_enc.h | ||
dshow_capture.h | ||
dshow_common.c | ||
dshow_crossbar.c | ||
dshow_enummediatypes.c | ||
dshow_enumpins.c | ||
dshow_filter.c | ||
dshow_pin.c | ||
dshow.c | ||
fbdev_common.c | ||
fbdev_common.h | ||
fbdev_dec.c | ||
fbdev_enc.c | ||
file_open.c | ||
gdigrab.c | ||
iec61883.c | ||
internal.h | ||
jack.c | ||
kmsgrab.c | ||
lavfi.c | ||
libavdevice.v | ||
libcdio.c | ||
libdc1394.c | ||
Makefile | ||
openal-dec.c | ||
opengl_enc_shaders.h | ||
opengl_enc.c | ||
oss_dec.c | ||
oss_enc.c | ||
oss.c | ||
oss.h | ||
pulse_audio_common.c | ||
pulse_audio_common.h | ||
pulse_audio_dec.c | ||
pulse_audio_enc.c | ||
reverse.c | ||
sdl2.c | ||
sndio_dec.c | ||
sndio_enc.c | ||
sndio.c | ||
sndio.h | ||
timefilter.c | ||
timefilter.h | ||
utils.c | ||
v4l2-common.c | ||
v4l2-common.h | ||
v4l2.c | ||
v4l2enc.c | ||
version_major.h | ||
version.c | ||
version.h | ||
vfwcap.c | ||
xcbgrab.c | ||
xv.c |