ws-audio2: audio/ac3 + codecs/audio/Ac3: AC-3 decoding from ATSC A/52, AC-3 tracks of MKV / MP4 / TS / AVI
Written from the A/52:2018 specification (tables transcribed from it; no liba52 / ffmpeg code): every acmod with LFE, coupling + phase flags, rematrixing, block switching, delta bit allocation, dither, CRC check, dynamic range off by default (drc = 0 .. 1). E-AC-3 and bsid 9 / 10 are UNSUPPORTED. 101.8 - 108.6 dB SNR vs ffmpeg's float decode (liba52's for block-switched streams: the packaged ffmpeg mis-decodes the first short transform). Outside the folders: containers/AudioWrap passes ac3 tracks to audio/ac3 (one branch); a comment in src/Formats/init.luau mentions it. The fixture clears the encoders' dithflags (positions from the new Ac3 decoder field dec.blocks) so reference and decoder decode the same numbers.
This commit is contained in:
1 parent
5b8f7cba39
commit
41b72d9b8a
10 files changed
+1741
-2
No files matched your search
@@ -278,7 +278,7 @@ end
|
||||
--
|
||||
-- Audio tracks of video containers: opts.openAudio(demuxer, track) -> audio Decoder | nil, Err. The track's packets
|
||||
-- become a stream an audio format reads (containers/AudioWrap: PCM -> WAV, Opus / Vorbis -> Ogg, AAC -> ADTS, MP3 /
|
||||
-- FLAC as they are), opened through F.open with that format.
|
||||
-- FLAC / AC-3 as they are), opened through F.open with that format.
|
||||
local function openAudio(demuxer: any, track: any): (any, Err.Err?)
|
||||
local buf, fmt, err = AudioWrap.wrap(demuxer, track)
|
||||
if not buf then
|
||||
|
||||
Reference in new issue
Block a user