Skip to content

Commit 7f26b48

Browse files
committed
docs(engine): the sampling comment states the half-tick bound it keeps
1 parent f5274a7 commit 7f26b48

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/engine/src/services/videoFrameExtractor.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,9 @@ export async function extractVideoFramesRange(
845845
vfFilters.push("format=nv12");
846846
}
847847
if (sampleCfrAtOutputFps) {
848-
// Each slot takes the last frame starting at or before its time. On timebases of 2 ms or finer a
849-
// half-tick shift absorbs container rounding (WebM/MKV store whole ms); coarser ones are exact.
848+
// Each slot takes the last frame starting at or before its time, within half a tick.
849+
// Ticks of 2 ms or finer shift half a tick for container rounding (WebM/MKV use whole ms);
850+
// 1/fps ticks don't.
850851
vfFilters.push(
851852
"settb=intb/2",
852853
"setpts=PTS-lte(TB\\,0.001)",

0 commit comments

Comments
 (0)