Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added _read_mp4box_stem_titles function #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

naba89
Copy link

@naba89 naba89 commented Jan 15, 2023

Basically, for stems which have been created by the NI creator have the titles of the streams in the udta metadata.

I added the functionality to try to read the stream titles if MP4Box is available, else fall back to original default numbered streams.

This is useful if you want to extract wav files using the stem2files, and instead of getting filenames like "stem_0.wav", you can get "Drums.wav" or "Vox.wav" if this information is available in the stem files.

The code is taken almost verbatim from the StemMetadataViewer class in https://github.com/axeldelafosse/stemgen/blob/master/ni-stem/_internal.py

Basically, for stems which have been created by the NI creator have the titles of the streams in the `udta` metadata.

I added the functionality to try to read the stream titles if MP4Box is available, else fall back to original default numbered streams.

This is useful if you want to extract wav files using the stem2files, and instead of getting filenames like "stem_0.wav", you can get "Drums.wav" or "Vox.wav" if this information is available in the stem files.

The code is taken almost verbatim from the `StemMetadataViewer` class in https://github.com/axeldelafosse/stemgen/blob/master/ni-stem/_internal.py
stempeg/read.py Outdated Show resolved Hide resolved
@axeldelafosse
Copy link

Nice!

@naba89
Copy link
Author

naba89 commented Feb 14, 2023

I added sudo apt-get update to fix the previous issue of 404 errors while installing apt-get packages.

But still, the CI failed with some errors in FFmpeg unable to find x264 libraries.
ffprobe: error while loading shared libraries: libx264.so.138: cannot open shared object file: No such file or directory

@axeldelafosse
Copy link

@faroit sorry for the ping -- can you have a look when you have some free time please? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants