FFmpeg git repo
Go to file
Lynne aea4d4b423
hwcontext_vulkan: rewrite upload/download
This commit was long overdue. The old transfer dubiously tried to
merge as much code as possible, and had very little in the way
of optimizations, apart from basic host-mapping.

The new code uses buffer pools for any temporary bufflers, and
handles falling back to buffer-based uploads if host-mapping fails.

Roundtrip performance difference:
ffmpeg -init_hw_device "vulkan=vk:0,debug=0,disable_multiplane=1" -f lavfi \
-i color=red:s=3840x2160 -vf hwupload,hwdownload,format=yuv420p -f null -

7900XTX:
Before: 224fps
After: 502fps

Ada, with proprietary drivers:
Before: 29fps
After: 54fps

Alder Lake:
Before: 85fps
After: 108fps

With the host-mapping codepath disabled:
Before: 32fps
After: 51fps
2024-08-11 05:13:11 +02:00
compat
doc lavu/hwcontext_vaapi: Add option to allow to specify vendor id when init hw device 2024-08-09 13:40:24 +08:00
ffbuild
fftools fftools/ffprobe: implement dv_md_compression 2024-07-28 12:20:07 +02:00
libavcodec vulkan_video: remove NIH pooled buffer implementation 2024-08-11 05:13:10 +02:00
libavdevice avdevice/dshow: Don't skip audio devices if no video device is present 2024-07-24 14:45:20 +02:00
libavfilter lavfi/riscv: depend on RVB and simplify accordingly 2024-08-05 21:16:26 +03:00
libavformat avformat/wtvdec: Check length of read mpeg2_descriptor 2024-08-08 19:10:05 +02:00
libavutil hwcontext_vulkan: rewrite upload/download 2024-08-11 05:13:11 +02:00
libpostproc
libswresample swresample/swresample: Rectify invalid function in the documentation 2024-07-02 21:57:17 +02:00
libswscale sws/riscv: depend on RVB and simplify accordingly 2024-08-05 21:16:26 +03:00
presets
tests lavu/riscv: drop probing for zba CPU capability 2024-08-05 21:16:26 +03:00
tools tools/target_dec_fuzzer: Use av_buffer_allocz() to avoid missing slices to have unpredictable content 2024-08-10 15:04:46 +02:00
.gitattributes
.gitignore
.mailmap mailmap: add entry for myself 2024-07-15 01:59:37 +02:00
Changelog lavc/qsvdec: Add VVC decoder 2024-07-30 13:40:21 +08:00
configure configure: check if assembler supports RV zicbop 2024-07-30 18:41:51 +03:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: add myself as d3d12va_encode maintainer 2024-07-10 18:10:08 +02:00
Makefile add tools/target_swr_fuzzer 2024-08-08 15:26:52 +02:00
README.md
RELEASE

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.