No description
Find a file
Russell Greene e0440eb392 hwcontext_vulkan: fix exporting multi-plane DRM modifiers
Previously, it was assumed that `drmFormatModifierPlaneCount` was one
for all modifiers when exporting, which is not always the case, in
particular for AMD GPUs and maybe others.

Fetch the number of memory planes and fill the structs appropriately in this situation.

The encoded stream is still bad in the case whre modifers are involved,
but I think this patch still stands on its own and I suspect that may be a driver bug.

A potential improvement that could be make is to cache the format
information, so we can avoid the two GetPhysicalDeviceFormatProperties2
calls for each export, as well as the allocation. I doubt this is very
expensive, but seemed worth noting.

v2 changes: query the format properties with the test image created in
`vulkan_frames_init` to avoid allocating space for the query during
export

Signed-off-by: Russell Greene <russellgreene8@gmail.com>
2025-08-05 23:53:58 +09:00
.forgejo forgejo/workflows: sort file list for cache hash 2025-08-04 21:49:56 +00:00
compat all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
doc vf_libplacebo: add support for specifying a LUT for the input 2025-08-05 23:51:13 +09:00
ffbuild all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
fftools all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
libavcodec vulkan_encode_h264/5: Fix uninitialized return value in write_extra_headers 2025-08-05 23:52:15 +09:00
libavdevice all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
libavfilter vf_libplacebo: add support for specifying a LUT for the input 2025-08-05 23:51:13 +09:00
libavformat avformat/iff: fix EOF check 2025-08-05 00:24:08 -03:00
libavutil hwcontext_vulkan: fix exporting multi-plane DRM modifiers 2025-08-05 23:53:58 +09:00
libswresample all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
libswscale all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
presets
tests tests/fate/hlsenc: add testcase of hls fragment mp4 named cmfa 2025-08-05 11:47:11 +00:00
tools tools/target_fuzzer: don't spam stderr 2025-08-05 03:27:54 +02:00
.gitattributes gitattributes: End merge conflicts in Changelog 2025-03-17 15:26:10 +01:00
.gitignore forgejo/workflows: add initial rudimentary CI 2025-07-22 20:06:20 +02:00
.mailmap mailmap: add entry for myself 2024-07-15 01:59:37 +02:00
Changelog all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
configure all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
CONTRIBUTING.md Add CONTRIBUTING.md 2016-09-18 10:02:13 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1 all: fix whitespace/new-line issues 2025-08-03 13:48:47 +02:00
COPYING.LGPLv3
CREDITS Use https for repository links 2023-03-01 21:59:10 +01:00
FUNDING.json Add FUNDING.json 2025-06-23 14:48:40 +02:00
INSTALL.md all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
LICENSE.md Remove libpostproc 2025-05-07 15:35:47 +02:00
MAINTAINERS MAINTAINERS: add myself 2025-07-15 00:59:46 +02:00
Makefile Makefile: Split ALLFFLIBS 2025-05-26 20:33:10 +02:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE RELEASE: update release number after release/7.1 branch 2024-10-09 01:55:50 +02: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 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.