LAVFilters icon indicating copy to clipboard operation
LAVFilters copied to clipboard

LAV Splitter Subtitles Selection

Open AlreadyFree opened this issue 1 year ago • 4 comments

Does LAV Splitter recognize the Commentary flag for audio & subtitles in an mkv file? I have a file where the main track is #1 Spanish with English subtitles flagged default, #2 English Dub audio with forced English subtitles, an #3 English commentary track with no subtitles and a #4 Spanish commentary track with forced English subtitles. The 2 commentary tracks have had the commentary flag applied within the mkv.

Using these rules (eng:eng|f eng:off *:eng|d) I can get the first 2 tracks to select the correct subtitles. However choosing the English commentary audio track will cause the forced subtitles for track 2 to be selected. And with the Spanish commentary track I get the English subtitles for the 1st audio track.

I have the commentary audio tracks named: "(1.0 ch) (AAC) (Commentary by Whoever)" and the subtitle tracks named: "Commentary by Whoever". I know it's possible to use the @ symbol to denote the track title but it seems to only work for subtitle, not audio. *@Commentary:Eng@Commentary doesn't seem to work but *:Eng@Commentary does. Is that right?

Seems like ideally there would be a new indicator for the commentary flag and that would solve the problem. Example: eng:eng|f eng|c:eng|c eng:off *:eng|d *|c:eng|c *:off

If that's already a possibility somewhere it's not documented and I can't figure it out.

AlreadyFree avatar Apr 14 '24 22:04 AlreadyFree

Subtitles are not re-selected when you change an audio stream, the rules are for initial selection only, and I would assume you don't generally want a commentary track to be the default.

Nevcairiel avatar Apr 16 '24 10:04 Nevcairiel

At least with the LAV Splitter version integrated into MediaPlayerClassic-HC there is an option to "Reselect subtitles on every audio switch". I assumed this was a native LAV Splitter feature but maybe it's a MPC-HC modification. Great feature either way!

AlreadyFree avatar Apr 16 '24 14:04 AlreadyFree

That is native feature.

The track name matching only applies to the subtitle track itself.

clsid2 avatar Apr 16 '24 14:04 clsid2

Any chance for it to be implemented for audio tracks also? I'm sure it would be useful in other scenarios outside of selecting commentary tracks.

AlreadyFree avatar Apr 16 '24 15:04 AlreadyFree