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

mpvnet does not recognize stdin as input #21

Closed
TETYYS opened this issue May 28, 2019 · 9 comments
Closed

mpvnet does not recognize stdin as input #21

TETYYS opened this issue May 28, 2019 · 9 comments

Comments

@TETYYS
Copy link

TETYYS commented May 28, 2019

When using streamlink with mpvnet player, player shows a blank screen with a logo in the middle of it.

mpvnet doesn't seem to recognize stdin as input.

@stax76
Copy link
Collaborator

stax76 commented May 28, 2019

You mean following project?

https://streamlink.github.io/

I would need more detail like a command line or URL.

@TETYYS TETYYS changed the title Not compatible with streamlink mpvnet does not accept recognize stdin as input May 28, 2019
@TETYYS
Copy link
Author

TETYYS commented May 28, 2019

Yes, but I believe the issue is that mpvnet doesn't accept any stdin input. For example:

ffmpeg -i video.mp4 -c:v copy -c:a copy -f matroska - | mpvnet - doesn't work, but works fine for mpv (just replace mpvnet with mpv), tested on WSL command line.

@TETYYS TETYYS changed the title mpvnet does not accept recognize stdin as input mpvnet does not recognize stdin as input May 28, 2019
@stax76
Copy link
Collaborator

stax76 commented May 28, 2019

It might not be possible to implement due to limitations of the Windows OS, I'll investigate it, thanks for the feedback.

@TETYYS
Copy link
Author

TETYYS commented May 28, 2019

I run Windows and it works fine with mpv.

@stax76
Copy link
Collaborator

stax76 commented May 28, 2019

That was fast, mpv has two executables, one for the console (mpv.com) and one for the windowing system (mpv.exe), probably they communicate via json ipc, I think that somewhere in the mpv documentation it is mentioned that this split is only needed on windows and Linux can do it together without a split.

@stax76
Copy link
Collaborator

stax76 commented May 29, 2019

All my attempts to make mpv work with input from stdin failed today. :(

@TETYYS
Copy link
Author

TETYYS commented May 29, 2019

Powershell is kinda bad with piping, that's why I used WSL. Classic cmd works too, for this exact command line at least: ffmpeg -i "any video.mp4" -c:v copy -c:a copy -f matroska - | mpv - (requires ffmpeg and mpv in PATH)

@stax76
Copy link
Collaborator

stax76 commented May 31, 2019

My command line did not work because I used PowerShell instead of CMD.

mpv.net did a file exist check, that's why stdin don't work, it will work in the next release. :-)

@stax76
Copy link
Collaborator

stax76 commented Jun 1, 2019

New release is online. Thanks for the feedback.

@stax76 stax76 closed this as completed Jun 1, 2019
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

2 participants