faroit / stempeg

Python I/O for STEM audio files
https://faroit.github.io/stempeg
MIT License
96 stars 13 forks source link

OSX quicklook support #22

Closed faroit closed 4 years ago

faroit commented 5 years ago

🥳 osx seems to support stem files and has a UI to select the stem right from the quicklook window:

image

However, in seems that is uses some specific metadata to read the stem track name. Currently I don't know how to do that with ffmpeg, but it would be great to find out if there is way to support this.

faroit commented 4 years ago

Maybe let's try https://superuser.com/questions/834244/how-do-i-name-an-audio-track-with-ffmpeg

faroit commented 4 years ago

Got this working for VLC using the handler_name tag. However still no luck for quicklook on OSX as it seems to only allow official iso languages...

Maybe bringing in @nils-werner, any idea?

nils-werner commented 4 years ago

Have you tried

-metadata:s:a:1 title="Foo"

https://superuser.com/a/835069/204044

faroit commented 4 years ago

Have you tried

-metadata:s:a:1 title="Foo"

yes, actually my last comment was not correct

i use title for VLC and handler_name for ffmpegs own metadata (when using ffprobe)

                        '-map',
                        "[a%d]" % idx,
                        # add title tag (e.g. displayed by VLC)
                        "-metadata:s:a:%d" % idx,
                        "title=%s" % stream_names[idx],
                        # add handler tag (e.g. read by ffmpeg < 4.1)
                        "-metadata:s:a:%d" % idx,
                        "handler=%s" % stream_names[idx],
                        # add handler tag for ffmpeg >= 4.1
                        "-metadata:s:a:%d" % idx,
                        "handler_name=%s" % stream_names[idx]
nils-werner commented 4 years ago

The Unknown language sounds like it may be reading the language metadata field. Try

-metadata:s:a:1 language=eng

and see if it shows English

faroit commented 4 years ago

it does, but it seems to only allow ISO certfied languages :-(

nils-werner commented 4 years ago

Then you're probably out of luck...

faroit commented 4 years ago

Alright, macOS, you had your chance ...