FFmpeg git repo
Go to file
Devin Heitmueller 8fd345f018 avdevice/decklink_enc: don't take for granted that first frame to decklink output will be PTS 0
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>
2023-03-08 23:53:15 +01:00
compat compat: Use '-' instead of '/' for rc.exe options 2023-02-13 13:49:40 +02:00
doc doc/filters: update SITI description 2023-03-02 18:59:37 +01:00
ffbuild
fftools fftools/ffmpeg_filter: initialize the 'o' to silence the warning 2023-03-01 06:49:13 +08:00
libavcodec avcodec/libdav1d: reindent after previous commit 2023-03-08 12:44:37 -03:00
libavdevice avdevice/decklink_enc: don't take for granted that first frame to decklink output will be PTS 0 2023-03-08 23:53:15 +01:00
libavfilter avfilter/graphparser: fix filter instance name when an id is provided 2023-03-06 08:42:18 -03:00
libavformat avformat/http: cookie path attribute should be optional not compulsory 2023-03-08 23:40:58 +01:00
libavutil lavu/vulkan: fix handle type for 32-bit targets 2023-03-07 22:55:07 +02:00
libpostproc version.h: Bump minor post 6.0 branch 2023-02-19 18:37:36 +01:00
libswresample swresample/swresample: add a used channel layout option using the new API 2023-02-19 18:28:45 -03:00
libswscale version.h: Bump minor post 6.0 branch 2023-02-19 18:37:36 +01:00
presets
tests tests: actually test yadif's 10 and 16-bit functions 2023-03-06 21:41:24 +01:00
tools avcodec: add AVCodecContext.frame_num as 64 bit variant to frame_number 2023-02-13 00:36:46 +01:00
.gitattributes
.gitignore
.mailmap
.travis.yml
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS Use https for repository links 2023-03-01 21:59:10 +01:00
Changelog Changelog: Add back <next> past 6.0 branch 2023-02-19 22:58:52 +01:00
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: add maintainer for the imf demuxer 2023-02-13 18:41:22 +01:00
Makefile
README.md
RELEASE
configure configure: select subordinate formats for HLS 2023-02-18 14:31:23 +05:30

README.md

FFmpeg README

FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides means to alter decoded audio and video through a directed graph of connected filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analysis tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Coding examples are available in the doc/examples directory.

License

FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.