mpc-hc icon indicating copy to clipboard operation
mpc-hc copied to clipboard

Subtitles doesn't load by URL via /sub command-line arg

Open chainikdn opened this issue 4 years ago • 7 comments

i.e. mpc-hc.exe video-url /dub audio-url /sub subs-url subtitles stream doesn't load at all, tried with VTT from youtube and SSA from crunchyroll

chainikdn avatar Jul 07 '20 17:07 chainikdn

Only local subtitle files are supported. I have no plans to change that.

wget subs-url -o %temp%\subfile.srt
mpc-hc.exe video-url /dub audio-url /sub %temp%\subfile.srt

clsid2 avatar Jul 07 '20 18:07 clsid2

I must mention that it works in MPC-BE.

chainikdn avatar Jul 07 '20 18:07 chainikdn

Test if it works with latest development build: https://github.com/clsid2/mpc-hc/releases/tag/1.9.7.34

clsid2 avatar Aug 27 '20 12:08 clsid2

I can't make the following work:

> wget subs-url -o %temp%\subfile.vtt
> mpc-hc.exe video-url /sub %temp%\subfile.vtt

While using 1.9.10.44.

It does not loads the locally downloaded subtitle.

If I drag and drop the subtitle file while the stream is playing, MPC-HC shows it correctly.

OscarL avatar Mar 26 '21 18:03 OscarL

I just tested and it is working here.

clsid2 avatar Mar 26 '21 19:03 clsid2

For what its worth, this is the exact command line I'm using:

>"C:\Program Files\MPC-HC\mpc-hc64.exe" https://www.youtube.com/watch?v=b0zxIfJJLAY /sub R:\temp-sub.en.vtt

I've downloaded the subtitle by using youtube-dl.exe --write-auto-sub --skip-download <URL>

Retested to make sure... It doesn't shows the subtitle, and in the context-menu, the "subtitle track" appears disabled.

Drag and drop... the subtitle appears. If you can't reproduce it with that particular command line... well, not much to do, I guess.

Let me thank you again for your work on this much beloved program!

OscarL avatar Mar 26 '21 19:03 OscarL

With that URL it doesn't work. Probably related to the indirection of youtube-dl processing.

clsid2 avatar Mar 26 '21 19:03 clsid2