I get the error
Cannot find main.* for any supported scripting backend in: /usr/share/mpv/scripts/
And when I press `n` it says
[input] No key binding found for key ‘n’.
How do I install it correctly? Also is there any configuration setting I can write in the `mpv.conf` file so that I don't have to manually write `mpv --scripts=/usr/share/mpv/scripts/` every time I want to use the script?
Yes I have. But it doesn’t really solve the issue, it only installs a different file. The PKGBUILD only installs the file autosubsync.lua when it should install all this files
Make sure autosubsync-mpv is installed properly. This is the expected content of your ~/.config/mpv/ directory:
Well, I filed an orphan request for the package seeing how the maintainer is AWOL. If it’s accepted, you or someone else can adopt the package and fix it.
And I added this to ~/.config/mpv/script-opts/autosubsync.conf
# This user script also supports ffsubsync as a backend,
# but we will not install it automatically.
#
# If you need ffsubsync, you can install it via pip:
#
# pip install ffsubsync
#
# Or through aur (python-ffsubsync).
#
# Absolute paths to the executables, if needed:
# 1. ffmpeg
ffmpeg_path=/usr/bin/ffmpeg
# 2. alass
alass_path=/usr/bin/alass
# 3. ffsubsync (Optional)
# Install via pip (ffsubsync) or aur (python-ffsubsync)
#ffsubsync_path=/home/user/.local/bin/ffsubsync
# Preferred retiming tool. Allowed options: 'ffsubsync', 'alass', 'ask'.
# If set to 'ask', the add-on will ask to choose the tool every time:
# 1. Preferred tool for syncing to audio.
audio_subsync_tool=alass
# 2. Preferred tool for syncing to another subtitle.
altsub_subsync_tool=alass
# Unload old subs (yes,no)
# After retiming, tell mpv to forget the original subtitle track.
#unload_old_sub=no