Skip to content

AceForge 0.6.16

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 19 Oct 05:40
· 7 commits to main since this release

YuE2 output format: mp3 by default

YuE2 had no way to choose an output format, and every render landed as 48 kHz
stereo PCM -- 25.2 MiB for a 137 second track, measured on a real one.

The reason was structural. The output_format field lives in MM3's request
struct, which is the ACE-Step path; YuE2's request has never had one, and the
engine hardcodes result_mime = "audio/wav". ACE-Step could ask its engine for
mp3, YuE2 could not.

The YuE2 form now has Format (mp3 / wav) and Bitrate (128 / 192 / 320), and mp3
is the default, matching ACE-Step. At 128k a render is roughly an eighth of the
size it was.

The engine cannot be asked, so the app does the encode with ffmpeg after the
render. If ffmpeg is missing or the encode fails, the WAV is kept and the reason
is logged -- that is deliberately not a failure. The render is already on disk
and correct, and discarding it over a few megabytes would be a bad trade. The
WAV is deleted only once the mp3 is confirmed non-empty on disk, so a library
row can never point at nothing.

Duration is read from the WAV bytes before any re-encode and never re-derived,
so lyric sidecars do not depend on the encode having worked.

248 tests, including a real ffmpeg encode that checks the size reduction.