FFmpeg git repo
Go to file
Avi Halachmi (:avih) 42355d12db configure: speed up flatten_extralibs_wrapper()
x50 - x200 faster.

Currently configure spends 50-70% of its runtime inside a single
function: flatten_extralibs[_wrapper] - which does string processing.

During its run, nearly 20K command substitutions (subshells) are used,
including its callees unique() and resolve(), which is the reason
for its lengthy run.

This commit avoids all subshells during its execution, speeding it up
by about two orders of magnitude, and reducing the overall configure
runtime by 50-70% .

resolve() is rewritten to avoid subshells, and in unique() and
flatten_extralibs() we "inline" the filter[_out] functionality.

Note that logically, "unique" functionality has more than one possible
output (depending on which of the recurring items is kept). As it
turns out, other parts expect the last recurring item to be kept
(which was the original behavior of uniqie()). This patch preservs
its output order.

Tested-by: Michael Niedermayer <michael@niedermayer.cc>
Tested-by: Helmut K. C. Tessarek <tessarek@evermeet.cx>
Tested-by: Dave Yeo <daveryeo@telus.net>
Tested-by: Reino Wijnsma <rwijnsma@xs4all.nl>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 58b81ac621)
2018-10-08 20:55:53 -03:00
compat
doc doc/examples/vaapi_transcode: Fix the typo 2018-10-07 21:34:00 +02:00
ffbuild
fftools ffmpeg: fix -stream_loop with multiple inputs 2018-07-08 12:52:49 +02:00
libavcodec avcodec/unary: Improve get_unary() docs 2018-10-07 21:34:00 +02:00
libavdevice avdevice/decklink_dec: unref packets on avpacket_queue_put error 2018-05-01 21:22:33 +02:00
libavfilter lavf/qsv: clone the frame which may be managed by framework 2018-04-23 22:56:18 +01:00
libavformat avformat/utils: Fix potential integer overflow in extract_extradata() 2018-10-07 21:34:01 +02:00
libavresample
libavutil avutil/pixfmt: Document chroma plane size for odd resolutions 2018-10-07 21:34:00 +02:00
libpostproc Bump minor versions for branching release/4.0 2018-04-16 12:35:12 +02:00
libswresample swresample/swresample: Fix input channel count in resample_first computation 2018-10-07 21:34:00 +02:00
libswscale Bump minor versions for branching release/4.0 2018-04-16 12:35:12 +02:00
presets
tests avcodec/xwddec: fix palette alpha 2018-05-16 22:50:18 +02:00
tools
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog Update for 4.0.2 2018-07-18 14:04:51 +02:00
INSTALL.md
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE Update for 4.0.2 2018-07-18 14:04:51 +02:00
RELEASE_NOTES add release notes based on release 3.4 2018-04-16 12:41:03 +02:00
configure configure: speed up flatten_extralibs_wrapper() 2018-10-08 20:55:53 -03:00

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 a mean to alter decoded Audio and Video through chain of 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.