ws-polish: Flash ADPCM (FLV SoundFormat 1) decodes through codecs/audio/Adpcm.swf

Adpcm.swf / swfFrames: the SWF ADPCM bit stream (2..5-bit codes, 4096-frame blocks), bit-exact with
ffmpeg's adpcm_swf (mono and stereo FLV fixtures). containers/AudioWrap decodes adpcm_swf tracks into a
float WAV, so FLV audio opens through the api hook.
This commit is contained in:
4DBug committed 2026-10-31 17:10:51 -05:00
1 parent c0412f76cb
commit c420eab820
7 files changed
+181 -12

No files matched your search

+3 -2
View File
@@ -318,8 +318,9 @@ assert(F.video.open(mkv).codec == "theora")
FLV (Flash Video) opens like any other container. Its onMetaData script tag is `v.meta.metadata` (duration, width,
height, framerate, codec ids, encoder, ...). Sorenson Spark (FLV1) and H.263 (in 3GP / MP4 `s263`, AVI `H263`)
decode bit-exactly as ffmpeg decodes them; H.264 tracks carry their avcC in `track.config` and their B-frame
composition times in the pts. VP6, screen video, Flash ADPCM, Nellymoser and Speex tracks are known (and remuxable)
but not decoded: `nextFrame` / `v.audioError` say UNSUPPORTED. Writing FLV copies H.264 + AAC / MP3 from MP4,
composition times in the pts. Flash ADPCM audio decodes (bit-exact with ffmpeg's `adpcm_swf`) next to MP3, AAC and
PCM. VP6, screen video, Nellymoser and Speex tracks are known (and remuxable) but not decoded: `nextFrame` /
`v.audioError` say UNSUPPORTED. Writing FLV copies H.264 + AAC / MP3 from MP4,
Matroska or FLV sources (FLV has no codec here that encodes).
```luau