Nevcairiel / LAVFilters

LAV Filters - Open-Source DirectShow Media Splitter and Decoders
GNU General Public License v2.0
7.51k stars 788 forks source link

LAV Splitter Subtitles Selection #587

Open AlreadyFree opened 7 months ago

AlreadyFree commented 7 months ago

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.

Nevcairiel commented 7 months ago

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.

AlreadyFree commented 7 months ago

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!

clsid2 commented 7 months ago

That is native feature.

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

AlreadyFree commented 7 months ago

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.