No description
Find a file
Ganesh Ajjanagadde f281cb4ea9 lavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y)
This is ~2x faster for y not an integer on Haswell+GCC, and should
generally be faster due to the fact that anyway powf essentially does
this under the hood. Made an inline function in lavu/internal.h for this
purpose.

Note that there are some accuracy differences, that should generally be
negligible. In particular, FATE still passes on this platform.

Results in ~ 7% speedup in aac encoding with -march=native, Haswell+GCC.
before:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  6.05s user 0.06s system 104% cpu 5.821 total

after:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  5.67s user 0.03s system 105% cpu 5.416 total

This is also faster than an alternative approach that pulls in powf, gets rid of
the crufty NaN checks and other special cases, exploits knowledge about the intervals, etc.
This of course does not exclude smarter approaches; just suggests that
there would need to be significant work on this front of lower utility than
searches for hotspots elsewhere.

Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
(cherry picked from commit bccc81dfa0)
2016-03-28 16:57:41 +01:00
compat compat/os2threads: split long lines 2016-02-14 19:17:36 +01:00
doc avformat/concatdec: set safe mode to enabled instead of auto 2016-03-26 21:52:47 +01:00
libavcodec lavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y) 2016-03-28 16:57:41 +01:00
libavdevice libavdevice/dshow.c: Correct CoGetMalloc check 2016-02-13 22:57:26 +01:00
libavfilter vf_blend: Move C dsp function mapping to separate function 2016-02-14 10:46:56 -08:00
libavformat avformat/rtpdec_jpeg: fix low contrast image on low quality setting 2016-03-26 21:52:48 +01:00
libavresample Merge commit 'cc4c242081' 2016-01-02 10:13:58 +01:00
libavutil lavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y) 2016-03-28 16:57:41 +01:00
libpostproc postproc: fix unaligned access 2016-02-23 15:58:07 +01:00
libswresample x86: use the new helper macros where useful 2016-02-14 20:04:19 -03:00
libswscale swscale/utils: Fix chrSrcHSubSample for GBRAP16 2016-03-26 21:52:47 +01:00
presets presets: remove moldering iPod presets 2014-06-17 16:15:04 -08:00
tests avformat/utils: fix dts from pts code in compute_pkt_fields() during ascending delay 2016-03-26 21:52:47 +01:00
tools avcodec: Remove libstagefright 2016-01-06 16:43:06 +00:00
.gitattributes Treat all '*.pnm' files as non-text file 2014-11-28 17:52:43 -05:00
.gitignore build: use a link instead of changing current directory when compiling 2016-01-25 20:43:34 +01:00
.travis.yml Merge commit 'eda1832874' 2015-11-22 17:12:24 +00:00
arch.mak mips: rename mipsdspr1 to mipsdsp 2015-12-04 02:35:42 +01:00
Changelog Update for 3.0.1 2016-03-26 22:37:41 +01:00
cmdutils.c cmdutils: realign for some additional filters with very long name 2016-02-06 12:48:51 +01:00
cmdutils.h fate/source: Do not use GNU extensions in sed 2016-02-13 07:59:00 -08:00
cmdutils_common_opts.h opts: add list device sources/sinks options 2014-10-25 20:20:31 +02:00
cmdutils_opencl.c all: use FFDIFFSIGN to resolve possible undefined behavior in comparators 2015-11-03 16:28:30 -05:00
common.mak build: use a link instead of changing current directory when compiling 2016-01-25 20:43:34 +01:00
configure configure: check for SEC_I_CONTEXT_EXPIRED before enabling SChannel 2016-03-16 15:32:50 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1 cosmetics: Delete empty lines at end of file. 2012-02-09 12:26:45 +01:00
COPYING.LGPLv3
CREDITS CREDITS: redirect to Git log, remove current outdated content 2013-01-31 18:02:52 +01:00
ffmpeg.c ffmpeg: replace "flush Media" with "flush_media" in benchmark_all output 2016-01-29 10:58:18 +01:00
ffmpeg.h ffmpeg: use lavf API for applying bitstream filters 2015-12-28 08:34:30 -06:00
ffmpeg_dxva2.c ffmpeg_dxva2: support vp9 hwaccel 2015-12-07 09:47:51 +01:00
ffmpeg_filter.c ffmpeg_filter: Factor get_compliance_unofficial_pix_fmts() out 2016-02-10 13:28:23 +01:00
ffmpeg_opt.c ffmpeg_opt: Fix memleaks in "manually set programs" loop 2016-02-08 15:57:24 +01:00
ffmpeg_qsv.c Merge commit 'fb472e1a11' 2015-10-22 16:18:02 +02:00
ffmpeg_vdpau.c ffmpeg_vdpau: Ignore decoder's max supported level 2015-08-16 15:02:33 -07:00
ffmpeg_videotoolbox.c ffmpeg/videotoolbox: protect UTGetOSTypeFromString on both VDA and VT 2015-10-15 10:22:31 +02:00
ffplay.c ffplay: update docs after previous changes in ffplay mouse behaviour 2016-01-20 21:23:03 +01:00
ffprobe.c ffprobe: Deprecate stream timecode field and add frame side data timecode field 2016-02-01 18:19:30 +00:00
ffserver.c ffserver&ffm: Fixed issues preventing ffserver write_index and files_size from being set correctly which was breaking ffserver streaming. 2016-02-23 15:58:42 +01:00
ffserver_config.c ffserver_config: check for INT_MIN before doing FFABS 2015-10-13 19:40:09 -04:00
ffserver_config.h ffserver: Use singlejpeg muxer for jpeg 2015-06-08 03:36:22 +02:00
INSTALL.md INSTALL: add markdown syntax 2014-05-28 22:38:38 +02:00
library.mak build: use a link instead of changing current directory when compiling 2016-01-25 20:43:34 +01:00
LICENSE.md avcodec: Remove libaacplus 2016-01-29 17:14:37 -08:00
MAINTAINERS MAINTAINERS: add myself as an OS/2 maintainer 2016-03-26 21:52:46 +01:00
Makefile build: use intermediate lcov coverage file 2016-02-06 15:42:09 +01:00
README.md README: replace http with https 2015-10-06 13:27:29 +02:00
RELEASE Update for 3.0.1 2016-03-26 22:37:41 +01:00
RELEASE_NOTES Basic updates for 3.0 2016-02-14 23:03:41 +01:00
version.sh version.sh: add note that ffversion.h is auto-generated 2015-10-25 10:14:44 -04:00

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.
  • ffserver is a multimedia streaming server for live broadcasts.
  • 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. Few developers follow pull requests so they will likely be ignored.