hex/crates
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kit Langton f6fee41ed5
fix(capture-core): hold the final frame of B-frame recordings (#269)
* fix(capture-core): hold the final frame of B-frame recordings

When B-frames put the final presented frame before another sample in decode
order, lengthening the last decoded sample held the wrong picture, and FFmpeg
still ended the video at the final frame. The hold now appends one
non-reference H.264 P picture whose every macroblock is P_Skip against the
final frame (CAVLC, through a new PPS in avcC, deblocking off), so it decodes
to an exact copy. Its data goes in a new mdat box; every existing sample, and
every other track, stays byte-identical.

Streams the edit cannot prove correct are refused unchanged: interlaced
video, slice groups, POC types 1 and 2, long-term references and MMCO other
than unmarking, frame-number gaps, HEVC, multiple sample descriptions, and
unknown sample-table boxes.

* fix(capture-core): hold video whose edit list runs past its media

SCRecordingOutput can write a video-only source whose edit list, track and
movie durations claim more than the media holds. The hold took the track
duration as the video's end, judged the video already long enough, and changed
nothing, while FFmpeg still stopped at the media's end.

The video's end is now where the media's presentation ends, mapped through
the final edit. The held edit is set to end at the target instead of being
lengthened, so it no longer overruns, and the movie duration becomes the
target or the longest other track.

The AVAssetWriter reordered fixture now tries a few lengths, since
VideoToolbox does not always end on a reordered frame.
2026-10-28 00:27:31 -07:00
..
capture fix(capture): finish the screen recording before stopping it, via capture-core (#258) 2026-10-27 21:15:34 -07:00
capture-core fix(capture-core): hold the final frame of B-frame recordings (#269) 2026-10-28 00:27:31 -07:00
router fix(capture): finish the screen recording before stopping it, via capture-core (#258) 2026-10-27 21:15:34 -07:00