ws-h264: F.video.open end to end on MP4 / MKV / TS / AVI / raw H.264 (bit-exact vs ffmpeg), display-order pts from the sorted packet times; JVT conformance test (48 streams bit-exact vs JM yuv, 4 refused); video/mp4 writer: a video edit list plays every frame (the B-frame delay no longer cut 2 frames off the end); tests tune LuaJIT through host

This commit is contained in:
4DBug committed 2026-10-31 10:53:34 -05:00
1 parent 84101d919e
commit 7271e6e3fa
9 files changed
+266 -3

No files matched your search

+10
View File
@@ -264,10 +264,20 @@ function Mp4.encode(value: any, opts: EncodeOptions?): (buffer?, Err.Err?)
if s.kind == "audio" and s.track and s.track.codecDelay and s.copied then
skip = math.floor(s.track.codecDelay * scale + 0.5)
end
-- video: the skipped decode delay is a composition shift, every frame still plays (ffmpeg drops the frames an
-- edit cuts); audio: the codec delay samples are not played
local playDuration = nil
if s.kind == "video" and skip > 0 then
playDuration = 0
for _, d in durations do
playDuration += d
end
end
local t: any = {
kind = s.kind,
timescale = scale,
skip = if skip > 0 then skip else nil,
playDuration = playDuration,
samples = samples,
durations = durations,
cts = if anyCts then cts else nil,