-
Notifications
You must be signed in to change notification settings - Fork 63
Archive: enhance mkv tracks metadata #26
Comments
I guess we could extend this bug report to the You set it to the human readable form but ffmpeg expects for matroska a particular encoding (ISO 639-2/B). So I guess the correct line could look like something like this if you want to keep the human readable form: // video
metadata = append(metadata, fmt.Sprintf("-metadata:s:v:%d", i), fmt.Sprintf("language=%s", locale)
metadata = append(metadata, fmt.Sprintf("-metadata:s:v:%d", i), fmt.Sprintf("title=%s", utils.LocaleLanguage(locale))
// audio
metadata = append(metadata, fmt.Sprintf("-metadata:s:a:%d", i), fmt.Sprintf("language=%s", locale)
metadata = append(metadata, fmt.Sprintf("-metadata:s:a:%d", i), fmt.Sprintf("title=%s", utils.LocaleLanguage(locale))
// subtitle
metadata = append(metadata, fmt.Sprintf("-metadata:s:s:%d", i), fmt.Sprintf("language=%s", locale)
metadata = append(metadata, fmt.Sprintf("-metadata:s:s:%d", i), fmt.Sprintf("title=%s", utils.LocaleLanguage(locale)) If ffmpeg accepts the current form of |
Commit 06a5414 seems to work fine, cheers ! The last thing a bit annoying with subtitle is that without any particular options, the first track will be marked as default which will not necessarily be the one the user reads. I saw you try to detect the user local, it could be a nice addition to set the track language corresponding to the user local as default ? In case local is not detected or if detected but no corresponding subtitle track can be found, you can still add the Thanks again for your work. Edit: just reread the doc; you could actually always leave the flag |
Fixed in newest commit 0c92fc0, but I had to use |
I can confirm 0c92fc0 works fine on my side, thanks ! |
This is already implemented since v2.0.1, I totally forgot about that lol xd. Just set the environment variable |
Hello,
Just wondering why subtitles have their title set to human readable locale but not the their metadata
language
field ? (which is even more important for players to automatically select the right one for their user)You do set the
language
field for video and audio. Why not subtitles ?It seems to me that your actual locales would be valid values for mkv (from what I see in mkvtoolnix-gui).
Anyway, thank you for your work this software has been working flawlessly so far !
The text was updated successfully, but these errors were encountered: