ws-video2-flv: FLV writer test from ADTS AAC (MPEG-TS), bench lines (H.263 / Sorenson CIF fps), docs/guide/video.md FLV and H.263 section (inputs: tools/fixtures/docs_flv.py)

This commit is contained in:
4DBug committed 2026-10-31 15:13:14 -05:00
1 parent efc0812746
commit f23d0aa3e8
5 files changed
+105 -3

No files matched your search

+7 -1
View File
@@ -213,7 +213,13 @@ for _, c in Mx do
end
end
end
t:check(same, label .. ": the source's packets (" .. c.source .. ")")
if c.name == "ts_aac.flv" then
-- MPEG-TS AAC: ADTS frames re-framed as raw frames with a made AudioSpecificConfig
local bt = assert(b:track("audio"))
t:check(bt.codec == "aac" and bt.config ~= nil and b:count(bt.id) > a:count(assert(a:track("audio")).id), label .. ": ADTS split into raw AAC frames")
else
t:check(same, label .. ": the source's packets (" .. c.source .. ")")
end
local md = b.meta.metadata
t:check(md and md.encoder == "formats-luau" and md.filesize == #c.data, label .. ": onMetaData encoder and file size")
end