[FFmpeg-devel] [PATCH v3 00/03] fix broken CC detection and ffprobe fields (cover letter)
Marth64
marth64 at proxyid.net
Thu Dec 5 05:06:54 EET 2024
As it stands today, ffprobe has two stream-level fields (closed_captions and
film_grain) that do not work. Their value is always 0 because ffprobe cannot
access the internal codec properties in the stream context when it is setting up
its internal streams.
This patchset aims to fix the issue by adding a new option to ffprobe,
analyze_frames, which when paired with show_streams will run on the given
probe interval to analyze the publically exposed frame side data and set
the fields. This solution is less invasive than v1/v2 (much simpler),
and also gives the user flexibility in terms of how long they want to analyze
(using ffprobe's -read_intervals). This also rules out luck from the detection.
For example, to detect closed captions or film grain over the first 20 seconds:
ffprobe -show_streams -analyze_frames -read_intervals "%+20" INPUT
More information about the ffmpeg-devel
mailing list