Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visualizer conflict with search-subtitles.lua results 2x #38

Open
mrfragger opened this issue Sep 30, 2024 · 0 comments
Open

visualizer conflict with search-subtitles.lua results 2x #38

mrfragger opened this issue Sep 30, 2024 · 0 comments

Comments

@mrfragger
Copy link

I simply commented out these two lines and no longer get double results when searching subtitles with subtitle-search.lua

in visualizer.lua
--mp.observe_property("current-tracks/audio", "native", visualizer_hook)
--mp.observe_property("current-tracks/video", "native", visualizer_hook)

https://github.com/zenwarr/mpv-config/blob/master/scripts/subtitle-search.lua

I'm sure it's somehow loading double tracks somehow..probably related to this stuff in the manual
--track-auto-selection=<yes|no>

Enable the default track auto-selection (default: yes). 
Enabling this will make the player select streams according to --aid, --alang, and others. 
If it is disabled, no tracks are selected. 
In addition, the player will not exit if no tracks are selected, 
and wait instead (this wait mode is similar to pausing, but the pause option is not set).

This is useful with --lavfi-complex: you can start playback in this mode, 
and then set select tracks at runtime by setting the filter graph. 
Note that if --lavfi-complex is set before playback is started, the referenced tracks are always selected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant