mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.79k stars 2.86k forks source link

Faulty integration with youtube-dl on niconico videos #1974

Closed ghost closed 9 years ago

ghost commented 9 years ago

image This happens with some (about half of the ones I tested) niconico videos whenever I try to play them directly through mpv using ytdl, however, if I try to download the video directly through yotube-dl, it works just fine. I don't have flash player installed. The youtube-dl is the same version on both of them (which is also the latest) Pic related is on mpvhq-win64, but I get the same error when I try to play it on Linux Mint using vanilla mpv.

ghost commented 9 years ago

normal Pic related of it working perfectly fine with other nicovideos.

ghost commented 9 years ago

Are you sure about this? It even says to report this issue to youtube-dl. It fails with youtube-dl on the command line too with -J.

ghost commented 9 years ago

PS: in case you don't know, here's where you should report it: https://github.com/rg3/youtube-dl/issues/

ghost commented 9 years ago

I thought about reporting it there, but since it was working with youtube-dl I thought here would be the place. Anyway, thanks.

ghost commented 9 years ago

but since it was working with youtube-dl

The video in your screenshot doesn't (for me).

qyot27 commented 9 years ago

The Megpoid video requires logging into niconico; a plain youtube-dl invocation for that video fails, but having it log in allows it to work. Bad Apple has no log-in restriction on it, which is why that works.

Just pass --ytdl-raw-options="username=<username>,password=<password>" to mpv, substituting the actual log-in credentials. Then it should work.