-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
--input-terminal=yes doesn't work on Windows via STDIN #5005
Comments
Just remembered that That should work. |
Duplicate of #4622. Also, mpv has built-in youtube-dl support, so you don't need to pipe it in like that. EDIT: Actually, never mind; that PR only addresses this issue on linux - unless windows suddenly grows a /dev/tty it still wouldn't work. |
Actually, attached consoles on Windows are surprisingly similar to controlling terminals on Linux. A Windows process can have an attached console, which is used for job control and Ctrl+C/Ctrl+Break handling, even if all the stdio streams are redirected. There's no Part of the reason I'm interested in getting #4622 solved is because we could easily port the change to terminal-win.c for equivalent behaviour on Windows. |
Just to be clear, that was just an(other) example for people interested in trying to reproduce the issue on Windows, since the whole stdin/stdout manipulation arsenal avaiable is much more limited, as you most likely is aware. I coudn't think of anything else other than the two mentioned examples. |
It is a mystery |
hello to all, my problem is that doing in this way player closes and opens after each file finishes creating an annoying flash. does anyone has some tip to do so keeping the player open? thanks in advice |
mpv version and platform
Windows 8.1
Reproduction steps
Play a media file via stdin (e.g.
7z.exe e "F:\Path\To\Some\rarfile.rar" -so|mpv.com --no-config --input-terminal=yes --terminal=yes --force-seekable=yes -
)Expected behavior
mpv should accept and respond to keyboard input when the cmd.exe window has focus.
Actual behavior
Keyboard input is ignored.
Log file
http://sprunge.us/gfaZ
The text was updated successfully, but these errors were encountered: