No description
Find a file
Marth64 a1ae66c827 avformat/dvdvideodec: reset the subdemuxer on discontinuity instead of flushing
DVDs naturally consist of segmented MPEG-PS blobs within a VOB
(i.e. VOBs are not linear). NAV packs set the segment boundaries.
When switching between segments, discontinuities occur and thus
the subdemuxer needs to be reset. The current approach to manage
this is by invoking ff_read_frame_flush() on the subdemuxer context,
via a callback function which is invoked during the menu or dvdnav
block functions. The same subdemuxer context is used throughout
the demux, with a stretched PTS wrap bits value (64) + disabled
overflow correction, and then flushed on each segment. Eventually,
a play_end context variable is set to declare EOF.

However, this approach causes frame drops. The block read flushes the
demuxer before the frame read is complete, causing frames to drop
on discontinuity. The play_end signal likewise ends playback before
the frame read is complete, causing frames to drop at end of the title.
To compound the issue, the PTS wrap bits value of 64 is wrong;
the VOBU limit is actually 32 and the overflow correction should work.

Instead, EOF the MPEG-PS subdemuxer organically when each VOB segment
ends, and re-open it if needed with the offset after the full frame read
is complete. In doing so, correct the PTS wrap behavior to 32 bits and
remove the play_end/segment_started signals and callback pattern.

Note that the timestamps as reported by the NAV packets are known as
"PTMs", so the fields storing the time prior to adjustment are renamed
accordingly. This makes it more clear when we are offsetting the
NAV packet reported timestamps versus what we present as a demuxer.

Signed-off-by: Marth64 <marth64@proxyid.net>
2024-11-16 14:40:51 -06:00
compat compat: Fix the fallback definition of stdc_trailing_zeros 2024-09-24 14:00:27 +03:00
doc avformat/dvdvideodec: enable chapter calculation for menus 2024-11-16 14:40:51 -06:00
ffbuild configure: Add detection of assembler support for SVE/SVE2 2024-09-27 00:03:04 +03:00
fftools fftools/ffplay: fix crash when vk renderer is null 2024-11-06 16:34:02 +08:00
libavcodec lavc/h264dsp: move RISC-V fn pointers to .data.rel.ro 2024-11-16 16:04:24 +02:00
libavdevice avdevice/dshow: fix unused variable warning 2024-10-17 13:04:17 +02:00
libavfilter avfilter/f_loop: fix aloop activate logic 2024-11-11 21:56:34 +01:00
libavformat avformat/dvdvideodec: reset the subdemuxer on discontinuity instead of flushing 2024-11-16 14:40:51 -06:00
libavutil avutil/rational: never return greater num/den than the maximum allowed in av_d2q 2024-11-16 20:58:49 +01:00
libpostproc */version.h: bump after release/7.1 branch 2024-09-24 17:10:35 +02:00
libswresample arm: Consistently use proper interworking function returns 2024-10-09 15:52:51 +03:00
libswscale x86/swscale: disable AVX2 yuv2nv12cX functions if accurate_rnd is requested 2024-11-07 11:16:42 -03:00
presets
tests checkasm/diracdsp: test add_dirac_obmc 2024-11-15 13:44:53 -05:00
tools enc_recon_frame_test: don't print an error on EOF. 2024-11-13 09:26:22 -05:00
.gitattributes lavf/assenc: normalize line endings to \n 2024-02-11 17:01:07 -08:00
.gitignore gitignore: add config_components.h 2022-03-17 18:35:41 -03:00
.mailmap mailmap: add entry for myself 2024-07-15 01:59:37 +02:00
Changelog lavc: deprecate the omx encoders 2024-11-09 02:46:17 +01:00
configure configure: add rv60 decoder golomb dependency 2024-11-16 19:08:39 +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 INSTALL: explain the circular dependency issue and solution 2024-11-03 19:35:23 +01:00
LICENSE.md avfilter/vf_geq: Relicense to LGPL 2019-12-28 11:20:48 +01:00
MAINTAINERS MAINTAINERS: remove arpi 2024-11-13 02:15:59 +10:00
Makefile add tools/target_swr_fuzzer 2024-08-08 15:26:52 +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.