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

property not found if prefer_mpv=yes #2

Closed
virendra531 opened this issue Jun 13, 2021 · 4 comments
Closed

property not found if prefer_mpv=yes #2

virendra531 opened this issue Jun 13, 2021 · 4 comments

Comments

@virendra531
Copy link

image
my mpv https://mega.nz/folder/VehwVYYK#--QX_gBhyjxSM0aIQag0GA

@hooke007
Copy link

local mpv_command = skip_nil({
"mpv",
-- Hide console output
"--msg-level=all=no",
-- Disable ytdl
(ytdl_disabled and "--no-ytdl" or nil),
-- Pass HTTP headers from current instance
header_fields_arg,
-- Pass User-Agent and Referer - should do no harm even with ytdl active
"--user-agent=" .. mp.get_property_native("user-agent"),
"--referrer=" .. mp.get_property_native("referrer"),
-- Disable hardware decoding
"--hwdec=no",
-- Insert --no-config, --profile=... and --log-file if enabled
(thumbnailer_options.mpv_no_config and "--no-config" or nil),
profile_arg,
(thumbnailer_options.mpv_logs and log_arg or nil),
file_path,
"--start=" .. tostring(timestamp),
"--frames=1",
"--hr-seek=yes",
"--no-audio",
-- Optionally disable subtitles
(thumbnailer_options.mpv_no_sub and "--no-sub" or nil),
("--vf=scale=%d:%d"):format(size.w, size.h),
"--vf-add=format=bgra",
"--of=rawvideo",
"--ovc=rawvideo",
("--o=%s"):format(output_path)
})
return utils.subprocess({args=mpv_command})
end

So, it is not designed for libmpv.
If you really want to use mpv rather than ffmpeg, just add the mpv into path.

Snipaste_2021-06-16_19-35-10

@marzzzello
Copy link
Owner

marzzzello commented Jul 7, 2021

So it got fixed by adding mpv to PATH?
I am not using Windows or mpv.net.
Is there something that needs to be changed in the script itself?

@gta0gagan
Copy link

gta0gagan commented Jan 29, 2022

So it got fixed by adding mpv to PATH? I am not using Windows or mpv.net. Is there something that needs to be changed in the script itself?

how do you add mpv to PATH in windows

@marzzzello
Copy link
Owner

For anyone that uses mpv.net see my comment here

@gta0gagan
https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/

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