Giter Site home page Giter Site logo

Comments (5)

axeldelafosse avatar axeldelafosse commented on June 19, 2024

Hello Joerg,

.m4a is the same as .mp4 -- it simply means that it only contains audio (and no video).

You can easily change this is the code if you prefer .mp4 extensions instead.

Thank you for using Stemgen!

from stemgen.

JoergAtGithub avatar JoergAtGithub commented on June 19, 2024

This violates not only the specification of the STEM format, it also breaks third party players like VLC, which do not play STEM files extension .m4a, but with extension .mp4.

from stemgen.

axeldelafosse avatar axeldelafosse commented on June 19, 2024

Can you link to the specification please?

from stemgen.

JoergAtGithub avatar JoergAtGithub commented on June 19, 2024

You have to register at Native Instruments to get it: https://www.stems-music.com/stems-is-for-developers/

from stemgen.

axeldelafosse avatar axeldelafosse commented on June 19, 2024

So I guess you are referring to this part:

"There are two criteria every Stem File must fulfill—failure to fulfill these criteria means the file in question is not a Stem File:
▪ The file must be a valid MP4 file (ISO base media file format: ISO/IEC 14496-12) with the “.mp4” file extension. Preferably the file name should end with “.stem.mp4”, but just “.mp4” is also valid.
▪ 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 in section ↑7.1, File Structure."

But this repo is a fork of ni-stem (included in the SDK you linked) and if you look at the code, it is actually using .m4a for the file extension: stemOutExtension = ".m4a".

So now you might argue that Native Instruments isn't following its own specification, but I don't really have time for this. The important part is that the file is a valid MP4 file.

I'm sorry if you have some trouble playing the Stem files with VLC but it's working for me on macOS and Windows (it's even displaying the cover pretty nicely on Windows). The issue is probably coming from somewhere else.

And again, feel free to patch the code in ni-stem to use .mp4 if .m4a isn't working for you. This is why this repo is open-source!

from stemgen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.