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

won't create video clip + change in slashes with preferences? #29

Open
mooniehilton opened this issue Mar 8, 2024 · 5 comments
Open

Comments

@mooniehilton
Copy link

mooniehilton commented Mar 8, 2024

no matter what i do, i cannot create a video clip and it'll just be stuck at "Please wait...". i don't know if this is an issue with my preferences of output being too high or what but i've tried messing with those and it still has the same result?
Screenshot 2024-03-07 165338

there's also a problem with my preferences not saving within mpv and the slashes being messed up halfway through. (note that i don't have a -master folder so i don't know if i have to create that to fix the issue)
Screenshot 2024-03-07 164643

@tatsumoto-ren
Copy link
Member

The second problem is most likely a result of some incorrect path transforming.

The first one is hard to reason about. Does it take forever even with the default settings?

@tatsumoto-ren
Copy link
Member

local mpv_dirpath = string.gsub(mp.get_script_directory(), "scripts[\\/]%w+", "")

apparently, %w doesn't include the minus sign which is present in your path.

tatsumoto-ren added a commit that referenced this issue Mar 8, 2024
@Kithin7
Copy link

Kithin7 commented Mar 28, 2024

I had the same first problem.
I updated my videoclip.conf file save paths from default to what I wanted. video_folder_path=D:\Videos

@scillidan
Copy link

scillidan commented Aug 30, 2024

On Windows 10 and this mpv version,

image

videoclip.conf don't work when I write liked:

video_folder_path = C:\\Users\\User\\Videos
audio_folder_path = C:\\Users\\User\\Music
...

Until I noticed the errors say:

[videoclip] script-opts/videoclip.conf:1 unknown key 'video_folder_path ', ignoring
[videoclip] script-opts/videoclip.conf:2 unknown key 'audio_folder_path ', ignoring

It's weird that it work when write liked:

video_folder_path=C:\\Users\\User\\Videos
audio_folder_path=C:\\Users\\User\\Music
...

I habitually used Space in .conf files and I always thought it was just a difference in writing style😦.

@tatsumoto-ren
Copy link
Member

I habitually used Space in .conf files and I always thought it was just a difference in writing style😦.

mpv doesn't like spaces around =. This is a quirk in the config parser implementation.

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

4 participants