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
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
a197f16f04
commit
c49093c464
9 files changed
+266
-3
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user