Nevcairiel / LAVFilters

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

Looks like the advanced subtitile selection mode doesn't work for specific language #497

Closed soksanichenko closed 2 years ago

soksanichenko commented 2 years ago

Hello dear developers. I tried to set rule *:rus|n for selection of subtitles, but it every time selects forced subtitle stream. But it works if I use eng or ukr in the rule. It selects non-forced and non-default subtitles. Looks like it doesn't work for russian language.

Nevcairiel commented 2 years ago

The only reason it wouldn't work would be if the tracks are not actually flagged properly for that language. There is no handling whatsoever that even looks at what the code is, it just matches it with whatever is in the file - which is also whats shown in the stream selector for comparison.

soksanichenko commented 2 years ago

But player MPC-HC shows the stream as forced. And I tried the ruleset on many videos. How can I check flag of a stream with 100% guaranty? Thank you.

Nevcairiel commented 2 years ago

If you specify |n, it will not allow forced streams, because |n means "normal", ie. not forced or default.

soksanichenko commented 2 years ago

I know it, but it I don't know why it doesn't work. I'll prepare a few screenshots as proof my issue later.

soksanichenko commented 2 years ago

I checked the streams by MediaInfo and what did I see? I see that the "forced" streams are just titled as forced, but forced flag isn't set. Looks like the container is built not correctly. The ticket can be closed.