Comments (2)
No, we cannot retire mpv.com
. It is age old topic. There are workarounds, and we are using the best one. It is not supported use-case by Windows kernel. https://devblogs.microsoft.com/oldnewthing/20090101-00/?p=19643
It is explained here why it is bad idea to use GUI mode always. #13011 (comment)
Alternatively it is bad idea to use Console mode always, as best we can do is to hide console window in this case and this produces annoying flicker.
I have dilemma to choose between launching mpv.exe and mpv.com: the former hits the breakpoints, but can't print any log message to the terminal, while the latter does the opposite.
Change subsystem to console and always use mpv.exe
diff --git a/meson.build b/meson.build
index 1a89094df0..fd4efb1f20 100644
--- a/meson.build
+++ b/meson.build
@@ -1803,7 +1803,7 @@ if get_option('cplayer')
install_data('etc/mpv-symbolic.svg', install_dir: join_paths(hicolor_dir, 'symbolic', 'apps'))
mpv = executable('mpv', main_fn_source, objects: libmpv.extract_all_objects(recursive: true), dependencies: dependencies,
- win_subsystem: 'windows', install: true)
+ win_subsystem: 'console', install: true)
# Older meson versions generate this in the player subdirectory.
if win32 and meson.version().version_compare('>= 1.3.0')
from mpv.
Thanks for the links. If I understand correctly, the main limitation of Windows over Linux is the lack of API to not only attach but take full control of parent process' console. And the console wrapper solution is good because it can use its own console to override the parent console, and wait out the wrapped sub-process.
If that's really the only reason, I'm a bit surprised why Windows can't offer such an API, provided that they have a otherwise fairly complete plethora of console manipulation utilities. But if Visual Studio itself has to use a .com
trick, I guess the reason must be deep.
Thanks again. Closing.
from mpv.
Related Issues (20)
- Fullscreen video always freezing in Wayland session, sound still playing (Fedora 40, Gnome 46, Nvidia GTX 1060) HOT 4
- mpv ignoring 'slang' option set on 'mpv.conf' in favor of external subs HOT 11
- The blur factor applied to the font itself HOT 2
- Zooming or full screen zoom produces grid lines HOT 2
- select.lua: `select-subtitle-line` doesn't consider ordered chapters HOT 3
- can i choose to not keep last image when URL stream not feeding data?
- Please improve functional integration with third-party extensions HOT 2
- watch-later-options missing secondary subtitle delay and sid
- SwayWM causes mpv to give an aliased output. HOT 11
- YouTube m3u8 Can't Skip Around In Video (VP9) HOT 1
- Let mpv not reset window position when profile applies
- ao=null never receives EOF with ao-null-untimed HOT 4
- gpu-context waylandvk cannot sync to the display refresh rate HOT 12
- scripts loading twice when mpv folder in appdata HOT 6
- ASS subs are not rendered correctly in gpu-next HOT 2
- Add an option to enable ontop only when video is playing HOT 3
- libmpv with lua: leaking memory with each new mpv instance HOT 9
- Show thumbnail on the official osc time bar
- Slow OSC loading with vo=libmpv on intel chips mac HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpv.