axeldelafosse / stemgen

🎛 Stemgen is a Stem file generator. Convert any track into a Stem and have fun with Traktor.
https://stemgen.dev
MIT License
207 stars 39 forks source link

[Bug] ALAC stems can't be read on Windows within Traktor #40

Closed Ma5onic closed 10 months ago

Ma5onic commented 1 year ago

I tried to load the generated stems but Traktor can't analyze them or load them. Traktor Pro 3 Error: image

Traktor Scratch Pro 2 Error: image

Ma5onic commented 1 year ago

I tried dumping the udta metadata using mp4box --dump-udta 0:stem MyStemFile.stem.mp4, as instructed in the NI File Specification PDF, but got an error about too many arguments. dumping without 0:stem did not generate a udta dump. Possibly related to issue https://github.com/axeldelafosse/stemgen/issues/38: The MP4 file must contain a box (i.e. data container) of type stem as a sub-box of moov.udta. moov is the root box of the MP4 file, as shown in the Stem File Structure diagram: image

axeldelafosse commented 11 months ago

Are you using Windows or macOS?

Ma5onic commented 11 months ago

Windows

axeldelafosse commented 10 months ago

Hey, sorry for the delay. This is related to https://github.com/axeldelafosse/stemgen/issues/19... I suspect an issue with https://github.com/NativeInstruments/ni-media, which probably doesn't support ALAC on Windows.

You can use the argument -f aac to force the compression to AAC instead of ALAC. This is pretty bad because you shouldn't be forced to compress your audio files. But if you really need to, I suggest using a good encoder like qaac.