Mpv: Unexpected behavior of windows services and antimalware

Created on 18 Dec 2018  Â·  7Comments  Â·  Source: mpv-player/mpv

mpv version and platform

mpv 0.29.0-107-gd6d6da4711 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
 built on Sun Dec 16 00:57:00 UTC 2018
ffmpeg library versions:
   libavutil       56.24.101
   libavcodec      58.42.102
   libavformat     58.24.101
   libswscale      5.4.100
   libavfilter     7.46.101
   libswresample   3.4.100
ffmpeg version: git-2018-12-15-be60dc21

Reproduction steps

double click mkv file to open with mpv

Expected behavior

normal pc behavior

Actual behavior

high cpu usage of windows services
high cpu usage of antimalware

Log file

[cplayer] Command line options: '-v'
[cplayer] mpv 0.29.0-107-gd6d6da4711 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Sun Dec 16 00:57:00 UTC 2018
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.24.101
[cplayer]    libavcodec      58.42.102
[cplayer]    libavformat     58.24.101
[cplayer]    libswscale      5.4.100
[cplayer]    libavfilter     7.46.101
[cplayer]    libswresample   3.4.100
[cplayer] ffmpeg version: git-2018-12-15-be60dc21
[cplayer]
[cplayer] Configuration: /home/shinchiro/build/build64/packages/mpv-prefix/src/mpv/waf configure --enable-static-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-javascript --enable-libarchive --enable-libass --enable-libbluray --enable-dvdread --enable-dvdnav --enable-uchardet --enable-rubberband --enable-lcms2 --enable-openal --enable-vapoursynth --prefix=/home/shinchiro/build/build64/install/mingw
[cplayer] List of enabled features: asm atomics build-date cplayer crossc cuda-hwaccel d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths drmprime dvdnav dvdread dvdread-common egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvcodec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gnuc gpl iconv javascript jpeg lcms2 libaf libarchive libass libass-osd libav-any libavcodec libavdevice libbluray libm libmpv-shared lua luajit mingw noexecstack openal optimize plain-gl posix-or-mingw rubberband shaderc shaderc-static static-build stdatomic uchardet vapoursynth vapoursynth-core vapoursynth-lazy vulkan wasapi win32-desktop win32-internal-pthreads win32-pipes zlib
[cplayer] Reading config file C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/mpv.conf
[ifo] Opening C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[ifo_dvdnav] Opening C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[bdmv/bluray] Opening C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[file] Opening C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[input] Parsing input config file C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[input] Input config file C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf parsed: 7 binds
[cplayer] mpv 0.29.0-107-gd6d6da4711 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Sun Dec 16 00:57:00 UTC 2018
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.24.101
[cplayer]    libavcodec      58.42.102
[cplayer]    libavformat     58.24.101
[cplayer]    libswscale      5.4.100
[cplayer]    libavfilter     7.46.101
[cplayer]    libswresample   3.4.100
[cplayer] ffmpeg version: git-2018-12-15-be60dc21
[cplayer]
[cplayer] Usage:   mpv [options] [url|path/]filename
[cplayer]
[cplayer] Basic options:
[cplayer]  --start=<time>    seek to given (percent, seconds, or hh:mm:ss) position
[cplayer]  --no-audio        do not play sound
[cplayer]  --no-video        do not play video
[cplayer]  --fs              fullscreen playback
[cplayer]  --sub-file=<file> specify subtitle file to use
[cplayer]  --playlist=<file> specify playlist file
[cplayer]
[cplayer]  --list-options    list all mpv options
[cplayer]  --h=<string>      print options which contain the given string in their name
[cplayer]
[ytdl_hook] script-opts/ytdl_hook.conf not found.
[stats] script-opts/stats.conf not found.
[ytdl_hook] lua-settings/ytdl_hook.conf not found.
[stats] lua-settings/stats.conf not found.
[ytdl_hook] Exiting...
[stats] Exiting...

[   0.010][v][cplayer] mpv 0.29.0-107-gd6d6da4711 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[   0.010][v][cplayer]  built on Sun Dec 16 00:57:00 UTC 2018
[   0.010][v][cplayer] ffmpeg library versions:
[   0.010][v][cplayer]    libavutil       56.24.101
[   0.010][v][cplayer]    libavcodec      58.42.102
[   0.010][v][cplayer]    libavformat     58.24.101
[   0.010][v][cplayer]    libswscale      5.4.100
[   0.010][v][cplayer]    libavfilter     7.46.101
[   0.010][v][cplayer]    libswresample   3.4.100
[   0.010][v][cplayer] ffmpeg version: git-2018-12-15-be60dc21
[   0.010][v][cplayer] 
[   0.011][v][cplayer] Configuration: /home/shinchiro/build/build64/packages/mpv-prefix/src/mpv/waf configure --enable-static-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-javascript --enable-libarchive --enable-libass --enable-libbluray --enable-dvdread --enable-dvdnav --enable-uchardet --enable-rubberband --enable-lcms2 --enable-openal --enable-vapoursynth --prefix=/home/shinchiro/build/build64/install/mingw
[   0.011][v][cplayer] List of enabled features: asm atomics build-date cplayer crossc cuda-hwaccel d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths drmprime dvdnav dvdread dvdread-common egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvcodec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gnuc gpl iconv javascript jpeg lcms2 libaf libarchive libass libass-osd libav-any libavcodec libavdevice libbluray libm libmpv-shared lua luajit mingw noexecstack openal optimize plain-gl posix-or-mingw rubberband shaderc shaderc-static static-build stdatomic uchardet vapoursynth vapoursynth-core vapoursynth-lazy vulkan wasapi win32-desktop win32-internal-pthreads win32-pipes zlib
[   0.011][v][cplayer] Command line options: '--log-file=output.txt'
[   0.011][v][cplayer] mpv 0.29.0-107-gd6d6da4711 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[   0.011][v][cplayer]  built on Sun Dec 16 00:57:00 UTC 2018
[   0.011][v][cplayer] ffmpeg library versions:
[   0.011][v][cplayer]    libavutil       56.24.101
[   0.011][v][cplayer]    libavcodec      58.42.102
[   0.011][v][cplayer]    libavformat     58.24.101
[   0.011][v][cplayer]    libswscale      5.4.100
[   0.011][v][cplayer]    libavfilter     7.46.101
[   0.011][v][cplayer]    libswresample   3.4.100
[   0.011][v][cplayer] ffmpeg version: git-2018-12-15-be60dc21
[   0.011][v][cplayer] 
[   0.011][v][cplayer] Configuration: /home/shinchiro/build/build64/packages/mpv-prefix/src/mpv/waf configure --enable-static-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-javascript --enable-libarchive --enable-libass --enable-libbluray --enable-dvdread --enable-dvdnav --enable-uchardet --enable-rubberband --enable-lcms2 --enable-openal --enable-vapoursynth --prefix=/home/shinchiro/build/build64/install/mingw
[   0.011][v][cplayer] List of enabled features: asm atomics build-date cplayer crossc cuda-hwaccel d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths drmprime dvdnav dvdread dvdread-common egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvcodec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gnuc gpl iconv javascript jpeg lcms2 libaf libarchive libass libass-osd libav-any libavcodec libavdevice libbluray libm libmpv-shared lua luajit mingw noexecstack openal optimize plain-gl posix-or-mingw rubberband shaderc shaderc-static static-build stdatomic uchardet vapoursynth vapoursynth-core vapoursynth-lazy vulkan wasapi win32-desktop win32-internal-pthreads win32-pipes zlib
[   0.012][v][cplayer] Reading config file C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/mpv.conf
[   0.012][d][cplayer] Setting option 'profile' = 'gpu-hq' (flags = 4)
[   0.012][d][cplayer] Setting option 'scale' = 'spline36' (flags = 4)
[   0.013][d][cplayer] Setting option 'cscale' = 'spline36' (flags = 4)
[   0.013][d][cplayer] Setting option 'dscale' = 'mitchell' (flags = 4)
[   0.013][d][cplayer] Setting option 'dither-depth' = 'auto' (flags = 4)
[   0.013][d][cplayer] Setting option 'correct-downscaling' = 'yes' (flags = 4)
[   0.013][d][cplayer] Setting option 'linear-downscaling' = 'yes' (flags = 4)
[   0.013][d][cplayer] Setting option 'sigmoid-upscaling' = 'yes' (flags = 4)
[   0.013][d][cplayer] Setting option 'deband' = 'yes' (flags = 4)
[   0.013][d][cplayer] Setting option 'deband' = 'no' (flags = 4)
[   0.013][d][cplayer] Setting option 'osc' = 'no' (flags = 4)
[   0.013][d][cplayer] Setting option 'autofit' = '75%x75%' (flags = 4)
[   0.013][d][cplayer] Setting option 'volume' = '50' (flags = 4)
[   0.013][d][cplayer] Setting option 'loop' = '' (flags = 4)
[   0.013][d][cplayer] Setting option 'ytdl-format' = 'bestvideo[height<=?1080][fps<=?600][vcodec!=?av1]+bestaudio/best' (flags = 4)
[   0.013][d][cplayer] Setting option 'log-file' = 'output.txt' (flags = 8)
[   0.014][v][ifo] Opening C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[   0.014][v][ifo_dvdnav] Opening C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[   0.015][v][bdmv/bluray] Opening C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[   0.015][v][file] Opening C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[   0.015][d][file] Stream opened successfully.
[   0.015][v][input] Parsing input config file C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf
[   0.015][v][input] Input config file C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/input.conf parsed: 7 binds
[   0.015][d][global] user path: 'output.txt' -> 'output.txt'
[   0.016][d][ytdl_hook] Loading lua script @ytdl_hook.lua...
[   0.016][d][stats] Loading lua script @stats.lua...
[   0.016][i][cplayer] mpv 0.29.0-107-gd6d6da4711 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[   0.017][i][cplayer]  built on Sun Dec 16 00:57:00 UTC 2018
[   0.017][i][cplayer] ffmpeg library versions:
[   0.018][i][cplayer]    libavutil       56.24.101
[   0.023][i][cplayer]    libavcodec      58.42.102
[   0.023][i][cplayer]    libavformat     58.24.101
[   0.024][i][cplayer]    libswscale      5.4.100
[   0.024][i][cplayer]    libavfilter     7.46.101
[   0.025][i][cplayer]    libswresample   3.4.100
[   0.025][i][cplayer] ffmpeg version: git-2018-12-15-be60dc21
[   0.025][i][cplayer] 
[   0.025][i][cplayer] Usage:   mpv [options] [url|path/]filename
[   0.026][i][cplayer] 
[   0.026][i][cplayer] Basic options:
[   0.026][i][cplayer]  --start=<time>    seek to given (percent, seconds, or hh:mm:ss) position
[   0.026][i][cplayer]  --no-audio        do not play sound
[   0.026][i][cplayer]  --no-video        do not play video
[   0.027][i][cplayer]  --fs              fullscreen playback
[   0.027][i][cplayer]  --sub-file=<file> specify subtitle file to use
[   0.027][i][cplayer]  --playlist=<file> specify playlist file
[   0.027][i][cplayer] 
[   0.027][i][cplayer]  --list-options    list all mpv options
[   0.028][i][cplayer]  --h=<string>      print options which contain the given string in their name
[   0.028][i][cplayer] 
[   0.028][d][global] config path: 'scripts' -> 'C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/scripts'
[   0.028][d][stats] loading mp.defaults
[   0.028][d][global] config path: 'scripts' -> 'C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/scripts'
[   0.028][d][ytdl_hook] loading mp.defaults
[   0.028][d][ytdl_hook] loading @ytdl_hook.lua
[   0.028][d][stats] loading @stats.lua
[   0.029][d][ytdl_hook] reading options for ytdl_hook 
[   0.029][d][stats] reading options for stats 
[   0.029][d][global] config path: 'script-opts/ytdl_hook.conf' -/-> 'C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/script-opts/ytdl_hook.conf'
[   0.029][v][ytdl_hook] script-opts/ytdl_hook.conf not found. 
[   0.029][d][global] config path: 'script-opts/stats.conf' -/-> 'C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/script-opts/stats.conf'
[   0.029][d][global] config path: 'lua-settings/ytdl_hook.conf' -/-> 'C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/lua-settings/ytdl_hook.conf'
[   0.029][v][ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[   0.029][v][stats] script-opts/stats.conf not found. 
[   0.030][d][global] config path: 'lua-settings/stats.conf' -/-> 'C:/Users/Seth Azazel/scoop/apps/mpv-git/current/portable_config/lua-settings/stats.conf'
[   0.030][v][stats] lua-settings/stats.conf not found. 
[   0.030][v][ytdl_hook] Exiting...
[   0.031][d][cplayer] Run command: define-section, flags=0, args=[input_stats, i script-binding stats/display-stats
[   0.031][d][cplayer] , default]
[   0.031][d][cplayer] Run command: enable-section, flags=0, args=[input_stats, allow-hide-cursor+allow-vo-dragging]
[   0.031][d][cplayer] Run command: define-section, flags=0, args=[input_forced_stats, , force]
[   0.031][d][cplayer] Run command: enable-section, flags=0, args=[input_forced_stats, allow-hide-cursor+allow-vo-dragging]
[   0.031][d][cplayer] Run command: define-section, flags=0, args=[input_stats, I script-binding stats/display-stats-toggle
[   0.031][d][cplayer] i script-binding stats/display-stats
[   0.031][d][cplayer] , default]
[   0.031][d][cplayer] Run command: enable-section, flags=0, args=[input_stats, allow-hide-cursor+allow-vo-dragging]
[   0.031][d][cplayer] Run command: define-section, flags=0, args=[input_forced_stats, , force]
[   0.031][d][cplayer] Run command: enable-section, flags=0, args=[input_forced_stats, allow-hide-cursor+allow-vo-dragging]
[   0.031][d][cplayer] Run command: define-section, flags=0, args=[input_stats, i script-binding stats/display-stats
[   0.031][d][cplayer] I script-binding stats/display-stats-toggle
[   0.031][d][cplayer] , default]
[   0.031][d][cplayer] Run command: enable-section, flags=0, args=[input_stats, allow-hide-cursor+allow-vo-dragging]
[   0.031][d][cplayer] Run command: define-section, flags=0, args=[input_forced_stats, , force]
[   0.031][d][cplayer] Run command: enable-section, flags=0, args=[input_forced_stats, allow-hide-cursor+allow-vo-dragging]
[   0.031][d][cplayer] Run command: define-section, flags=0, args=[input_stats, i script-binding stats/display-stats
[   0.031][d][cplayer] I script-binding stats/display-stats-toggle
[   0.031][d][cplayer] , default]
[   0.031][d][cplayer] Run command: enable-section, flags=0, args=[input_stats, allow-hide-cursor+allow-vo-dragging]
[   0.031][d][cplayer] Run command: define-section, flags=0, args=[input_forced_stats, , force]
[   0.031][d][cplayer] Run command: enable-section, flags=0, args=[input_forced_stats, allow-hide-cursor+allow-vo-dragging]
[   0.032][v][stats] Exiting...

SS https://imgur.com/a/ap64UYt

Most helpful comment

I don't see why this would be mpv's fault, since it's your antivirus snakeoil thing misbehaving.

All 7 comments

I don't see why this would be mpv's fault, since it's your antivirus snakeoil thing misbehaving.

i am not saying it's mpv's fault just i don't get it why windows services (not only antimalware) use too much cpu when mpv working. when i play same video with smplayer and potplayer nothing unordinary happens

Try a couple previous shinchiro builds to isolate the issue to this specific build perhaps.

I tried previos versions and there was no problem. But when i copy my scripts to scripts folder same problem showed up. I delete mpv_thumbnail_script and problem was gone.https://github.com/TheAMM/mpv_thumbnail_script

Thanks for helping me. Please feel free to close the issue.
(if you know any alternative for mpv_thumbnail_script please inform me.)

you can close your own issue.

i didn't know that, i am newbie. Thank you.

On Tuesday, December 18, 2018 10:56:13 PM CET sethazazel wrote:

I tried previos versions and there was no problem. But when i copy my
scripts to scripts folder same problem showed up. I delete
mpv_thumbnail_script and problem was
gone.https://github.com/TheAMM/mpv_thumbnail_script

Thanks for helping me. Please feel free to close the issue.
(if you now any alternative for mpv_thumbnail_script please inform me.)

This probably happens because Windows is a terrible OS and has gigantic
process creation overhead that gets even worse when the antimalware shit is
involved. Of course the script should try to avoid spawning a process for each
thumbnail it wants to create, but that’s a different problem…

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thebunnyrules picture thebunnyrules  Â·  3Comments

lightonflux picture lightonflux  Â·  4Comments

xanadupark picture xanadupark  Â·  3Comments

SPDurkee picture SPDurkee  Â·  3Comments

532910 picture 532910  Â·  3Comments