codecs/video/Legacy: Cinepak, Microsoft Video 1, QuickTime RLE / SMC and FLIC decoders
Registry decoders (codecs/video/Video BUILTIN: cvid, CRAM / MSVC / WHAM, 'rle ', 'smc ', AFLC), rgba8 pictures painted over the previous picture, palettes from track.palette (or packet.palette). Bit-exact with ffmpeg on 28 AVI / MOV / MKV fixtures (tools/fixtures/legacy.py: ffmpeg's encoders plus encoders in _legacy_mux.py for QuickTime RLE 1/2/4/8-bit, 8-bit MS Video 1 and Cinepak). Also fixes QtPalette's big-endian reads. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b3566459a0
commit
2d014f1a52
14 files changed
+2171
-3
No files matched your search
@@ -313,8 +313,9 @@ local function parseTracks(buf: buffer, off: number, len: number, scaleNs: numbe
|
||||
t.kind = if ttype == 1 then "video" elseif ttype == 2 then "audio" elseif ttype == 17 then "subtitle" else "data"
|
||||
t.codecTag = codecId
|
||||
t.codec = codecFor(codecId, t.kind, t.bitsPerSample)
|
||||
if t.kind == "video" and t.config then
|
||||
vfwOrQuickTime(t, codecId, t.config)
|
||||
local cfg: buffer? = t.config
|
||||
if t.kind == "video" and cfg then
|
||||
vfwOrQuickTime(t, codecId, cfg)
|
||||
end
|
||||
if t.kind == "audio" then
|
||||
t.sampleRate = t.sampleRate or 8000
|
||||
|
||||
Reference in new issue
Block a user