1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
Go to file
Gyan Doshi be8a4f80b9 swr/swresample: avoid reapplication of firstpts
During a resampling operation where

1) user has specified first_pts
2) SWR_FLAG_RESAMPLE is not set initially (directly or otherwise)
3) first_pts has been fulfilled (always using hard compensation)

then upon first encountering a delay where a soft compensation is
required, swr_set_compensation will lead to another init of swr which
will reset outpts to the specified firstpts thus leading to an output
frame having its pts = firstpts. When the next input frame is received,
swr will see a large delay and inject silence from firstpts to the
current frame's pts. This can lead to severe desync and in worst case,
loss of audio playback.

Parameter firstpts initialized to AV_NOPTS_VALUE in swr_alloc and then
checked in swr_init to avoid resetting outpts, thus avoiding reapplication
of firstpts.

Fixes #4131.
2023-12-18 15:47:04 +05:30
compat configure: Set WIN32_LEAN_AND_MEAN at configure time 2023-08-14 22:57:28 +03:00
doc doc/ffmpeg: drop misleading claims from -stats_*_fmt 2023-12-18 08:50:02 +01:00
ffbuild riscv: test for assembler support 2023-12-08 17:21:09 +02:00
fftools fftools/ffmpeg: use a mutex for enc_stats_write() 2023-12-18 08:50:02 +01:00
libavcodec lavc/vc1dsp: fix R-V V vector lengths 2023-12-17 09:27:52 +02:00
libavdevice gdigrab: allow capturing a window by its handle 2023-12-17 19:14:08 +01:00
libavfilter libavfilter/vf_dnn_detect: Add yolov4 support 2023-12-16 21:51:52 +08:00
libavformat avformat/hls: use av_strlcopy instead of strncpy 2023-12-16 04:28:20 -05:00
libavutil riscv: Tweak names of cpu flags, print flags in libavutil/tests/cpu 2023-12-17 23:47:04 +02:00
libpostproc Bump versions after 6.1 2023-10-29 16:19:14 +01:00
libswresample swr/swresample: avoid reapplication of firstpts 2023-12-18 15:47:04 +05:30
libswscale riscv: test for assembler support 2023-12-08 17:21:09 +02:00
presets
tests swr/swresample: avoid reapplication of firstpts 2023-12-18 15:47:04 +05:30
tools tools/target_dec_fuzzer: Adjust threshold for VMIX 2023-12-14 23:34:46 +01:00
.gitattributes
.gitignore
.mailmap mailmap: remap my email accounts 2023-11-03 20:57:49 +08:00
.travis.yml
Changelog gdigrab: allow capturing a window by its handle 2023-12-17 19:14:08 +01:00
configure configure: check VTPixelTransferSessionCreate for scale_vt 2023-12-17 13:52:14 +08: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: Remove older s3tc entry 2023-12-10 03:25:23 -05:00
Makefile riscv: test for assembler support 2023-12-08 17:21:09 +02:00
README.md
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.