Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
19th August 2017, 21:56 | #3222 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
After youtube-dl downloaded the video, you will be able to play the locally downloaded file... implementing stream selection code from youtube-dl into MPC-HC won't be simple, though, at least due to completely different programming languages being used. Furthermore, it's not "streaming" in a narrow sense anyway.
|
20th August 2017, 11:39 | #3223 | Link | |
MPC-HC Helper xD
Join Date: Aug 2006
Location: Belgrade, Serbia
Posts: 220
|
Quote:
However you can use "piping" to stream. Code:
youtube-dl -q -o - youtube_url | "path\to\mpc-hc.exe" /play /close - |
|
20th August 2017, 14:41 | #3224 | Link |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
Thank you. It's downloading, but it doesn't seem to pipe the content to the player. I'm just seeing youtube-dl's window with lots of gibberish-text in it, I'm seeing it consuming network traffic, but no player opens with playback.
|
20th August 2017, 15:37 | #3226 | Link |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
That gibberish occurs with the above command lines:
When I add Code:
--format="((bestvideo[vcodec^=vp9]/bestvideo)+(bestaudio[acodec=opus]/bestaudio[acodec=vorbis]/bestaudio[acodec=aac]/bestaudio))/best" What am I doing wrong? |
20th August 2017, 16:01 | #3228 | Link |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
Code:
"C:\Users\USER\Desktop\youtube-dl.exe" -q -o - https://www.youtube.com/watch?v=aqz-KE-bpKQ | "C:\Program Files\MPC-HC\mpc-hc64.exe" /play /close - youtube-dl v2017.08.18 ffmpeg x64 3.3.3 static That gibberish occurs without youtube-dl.conf. |
20th August 2017, 18:13 | #3230 | Link |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
Thx anyway. I got it working on Linux with mpv that way (I'm aware that youtube-dl can be used directly with mpv), so I really have no idea what's wrong on Windows here.
Might ask at youtube-dl Github, I think it's possible to be a bug. |
20th August 2017, 20:34 | #3231 | Link |
Registered User
Join Date: Jan 2011
Posts: 4
|
Subtitles doesnt work with new nightly build 1.7.13.89
It always crash and send a crash report. I tried with EVR and VMR9 for output. I have win7 and nvidia card (GTX260). Thx! Last edited by tasi; 20th August 2017 at 20:41. |
21st August 2017, 07:55 | #3232 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
If the downloaded video is written to the console, instead of piped to the player, then this version of youtube-dl seems not to support "-" as alias to STDOUT piping. But this topic is about MPC-HC, so rather ask youtube-dl issues where its developers can reply.
|
27th August 2017, 15:51 | #3234 | Link |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
Got youtube-dl working.
Looks like some weird behavior of Windows: It doesn't work with the "run" function, but it does work when executing the command via a bat file. Do you guys know how to stop it from downloading both streams first when you use "-f bestvideo+bestaudio"? Without that command, https://www.youtube.com/watch?v=aqz-KE-bpKQ works just fine with the commands used for piping. However, it's just 1080p H.264 instead of 4k 60fps VP9. I know that it's because bestvideo+bestaudio are two seperate streams, but in theory this isn't a problem (and isn't in mpv either). Last edited by aufkrawall; 27th August 2017 at 16:12. |
27th August 2017, 16:04 | #3235 | Link | |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
Quote:
With manual piping in Windows it's difficult to do two pipes and I doubt youtube-dl can interleave/mux live. So no luck with the separate streams if you use it in this way. |
|
27th August 2017, 16:28 | #3237 | Link |
MPC-HC Developer
Join Date: May 2010
Location: Poland
Posts: 586
|
It is better to just extract streams with youtube-dl and open directly in MPC-HC. I have script which does that for me. Frankly integration with youtube-dl is not a problem but distributing youtube-dl is. But anyway gui for stream selection can be done fairly easy.
|
28th August 2017, 01:58 | #3240 | Link |
Registered User
Join Date: Feb 2017
Posts: 4
|
https://nightly.mpc-hc.org/
Latest version is already 1.7.13.112, but in page source (Ctrl+U in Chrome) links are still old (1.7.13.89). And I can't fetch latest version using Code:
wget -rl1 -nd -AMPC-HC*x64*.7z -R*pdb*,*filters* https://nightly.mpc-hc.org/ |
Tags |
dxva, media player classic, mpc, mpc-hc |
Thread Tools | Search this Thread |
Display Modes | |
|
|