Open eko5624 opened 1 month ago
please be more specific what you mean with slow OSC loading
. is it just the time between opening a file and when the window appears?
try with --no-config
like the issue template asked you to do.
try with --vo=gpu-next
.
provide a log of a run with "fast OSC loading" (with --vo=gpu(-next)
).
try older versions of mpv and see if it behaves the same way.
It's just the time between opening a file and the video start to play. Double clicks the video file, the video start to play immediately when using vo=gpu-next
, but not when using vo=libmpv
Here's the log when trying vo=gpu-next
.
You were asked to provide a log file with --no-config
, neither that nor the log in the OP are with --no-config
. Nobody has the time to shift through logs about thumbfast or you setting 20 options to their default values to find the relevant line.
Although with a rough look, it seems related to videotoolbox initialization rather than vo init.
Here comes the logs with --no-config
. Any help would be great, thanks.
so yeah this has nothing todo with OSC being slow. the title is very misleading.
from your no-config
logs both seems quite similar in startup time and libmpv catches up a bit at the end.
gpu-next
[ 0.664][v][cplayer] first video frame after restart shown
...
[ 0.688][d][cplayer] starting video playback
libmpv (faster by ~0.2s)
[ 0.465][v][cplayer] first video frame after restart shown
...
[ 0.466][d][cplayer] starting video playback
in your initial run without --no-config
a significant amount of time is being wasted in initialising videotoolbox
libmpv. though the whole things in general is a bit slower and adding up.
[ 0.740][v][vd] Requesting pixfmt 'videotoolbox_vld' from decoder.
[ 1.976][d][ffmpeg/video] h264: Reinit context to 1920x960, pix_fmt: videotoolbox_vld
gpu-next (which is ffmpeg and we can't do too much about it)
[ 0.262][v][vd] Requesting pixfmt 'videotoolbox_vld' from decoder.
[ 0.396][d][ffmpeg/video] h264: Reinit context to 1920x960, pix_fmt: videotoolbox_vld
since your no-config
run seems perfectly normal. something in your config or the various scripts you use are just bottlenecking the startup.
also like i suggested try some older versions of mpv and see if they exhebit the same problem.
I did some research, the problem appeared since https://github.com/mpv-player/mpv/commit/8a61929eb8e62097cf8ef0764dba233000fd1e5f , https://github.com/mpv-player/mpv/commit/cb75ecf19f28cfa00ecd348da13bca2550e85963 no problem.
I did some tests, remove https://github.com/mpv-player/mpv/commit/8a61929eb8e62097cf8ef0764dba233000fd1e5f , the problem is gone.
mpv Information
Other Information
Reproduction Steps
On intel chips mac, default
vo=gpu
seems poor performance because of using macvk , so I usevo=libmpv
to reduce performance consumption. But when usingvo=libmpv
, loading OSC needs longer time.Expected Behavior
OSC loading less time
Actual Behavior
OSC loading needs longer time
Log File
mpv.log
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.