Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

nilaoda/av3a_decoder

Repository files navigation

2024-09 Project Archived

Due to the leak of the AV3A codec source code, it is now possible to perfectly integrate the decoder into ffmpeg and mpv. Therefore, this project is no longer meaningful.

av3a_decoder

AVS3-P3 / Audio Vivid Decoder

!!ONLY 5.1.4 LAYOUT TESTED!!

!!VERY SLOW, BUT WORKS!!

Steps

1. Extract av3a audio from MPEG2-TS file (Optional)

You can use es_extractor.py to do that:

python es_extractor.py sample.ts sample.av3a 0x101

Note: You can use mediainfo to find av3a track pid, maybe 0x101 or 0x1100

2. Decode av3a to PCM

python av3a_decoder.py sample.av3a sample.wav

3. Post Process

You can set channel layout

5.1.4 Example:

ffmpeg -i sample.wav -filter "channelmap=0|1|2|3|4|5|6|7|8|9:FL+FR+FC+LFE+SL+SR+TFL+TFR+TBL+TBR" sample_layout.wav

You can encode wav to 448 kbps 5.1(side) AC3

ffmpeg -i sample.wav -filter "channelmap=0|1|2|3|4|5:FL+FR+FC+LFE+SL+SR" -b:a 448k sample_layout.ac3

Links