FFmpeg git repo
Go to file
Anton Khirnov 889a022cce fftools/ffmpeg: rework keeping track of file duration for -stream_loop
Current code tracks min/max pts for each stream separately; then when
the file ends it combines them with last frame's duration to compute the
total duration of each stream; finally it selects the longest of those
durations as the file duration.

This is incorrect - the total file duration is the largest timestamp
difference between any frames, regardless of the stream.

Also change the way the last frame information is reported from decoders
to the muxer - previously it would be just the last frame's duration,
now the end timestamp is sent, which is simpler.

Changes the result of the fate-ffmpeg-streamloop-transcode-av test,
where the timestamps are shifted slightly forward. Note that the
matroska demuxer does not return the first audio packet after seeking
(due to buggy interaction betwen the generic code and the demuxer), so
there is a gap in audio.
2023-11-14 18:18:26 +01:00
compat configure: Set WIN32_LEAN_AND_MEAN at configure time 2023-08-14 22:57:28 +03:00
doc doc/ffmpeg: expand -bsf documentation 2023-11-14 18:18:26 +01:00
ffbuild ffbuild: Add gzip -n flag to fix reproducible builds 2023-11-05 11:30:13 +01:00
fftools fftools/ffmpeg: rework keeping track of file duration for -stream_loop 2023-11-14 18:18:26 +01:00
libavcodec lavc/8bps: fix exporting palette after 63767b79a5 2023-11-14 18:18:26 +01:00
libavdevice avdevice/android_camera: fix build failure due to typo 2023-11-07 11:10:07 +08:00
libavfilter lavfi/af_amix: make sure the output does not depend on input ordering 2023-11-14 18:18:26 +01:00
libavformat lavf/mux: do not apply max_interleave_delta to subtitles 2023-11-14 18:18:26 +01:00
libavutil lavu/log: do not assume AVClass.item_name is always set 2023-11-09 11:25:17 +01:00
libpostproc Bump versions after 6.1 2023-10-29 16:19:14 +01:00
libswresample Bump versions after 6.1 2023-10-29 16:19:14 +01:00
libswscale sws/rgb2rgb: fix unaligned accesses in R-V V YUYV to I422p 2023-11-13 18:34:29 +02:00
presets
tests fftools/ffmpeg: rework keeping track of file duration for -stream_loop 2023-11-14 18:18:26 +01:00
tools tools/target_dec_fuzzer: Adjust threshold for CSCD 2023-11-01 16:40:21 +01:00
.gitattributes
.gitignore gitignore: add config_components.h 2022-03-17 18:35:41 -03:00
.mailmap mailmap: remap my email accounts 2023-11-03 20:57:49 +08:00
.travis.yml
Changelog avcodec: LEAD MCMP decoder 2023-11-08 17:37:58 +11:00
configure avcodec: LEAD MCMP decoder 2023-11-08 17:37:58 +11:00
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
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: add myself as a mediacodec and videotoolbox maintainer 2023-11-08 16:15:04 +08:00
Makefile tools: Don't include the direct library names when linking 2023-10-02 22:49:07 +03:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE RELEASE: update after 5.1 branch 2022-07-13 00:31:42 +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.