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.

 

Go Back   Doom9's Forum > Hardware & Software > Software players

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th August 2017, 21:48   #3221  |  Link
aufkrawall
Registered User
 
Join Date: Dec 2011
Posts: 1,812
Would it be possible to add youtube-dl support?
Or is it possible to open YT streams with youtube-dl via CLI in MPC HC already?
aufkrawall is offline   Reply With Quote
Old 19th August 2017, 21:56   #3222  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
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.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 20th August 2017, 11:39   #3223  |  Link
vBm
MPC-HC Helper xD
 
vBm's Avatar
 
Join Date: Aug 2006
Location: Belgrade, Serbia
Posts: 220
Quote:
Originally Posted by aufkrawall View Post
Would it be possible to add youtube-dl support?
Or is it possible to open YT streams with youtube-dl via CLI in MPC HC already?
There's a ticket regarding youtube-dl integration but no one wanted to work on it so far.

However you can use "piping" to stream.

Code:
youtube-dl -q -o - youtube_url | "path\to\mpc-hc.exe" /play /close -
__________________
MPC-HC Links: official nightlies | Trac | GitHub | git log | IRC | Twitter | Facebook
vBm is offline   Reply With Quote
Old 20th August 2017, 14:41   #3224  |  Link
aufkrawall
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.
aufkrawall is offline   Reply With Quote
Old 20th August 2017, 14:51   #3225  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 293
Doesn't work if MPC-HC is already running. The workaround is to add /new switch to mpc-hc command line.
lvqcl is offline   Reply With Quote
Old 20th August 2017, 15:37   #3226  |  Link
aufkrawall
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"
to youtube-dl.conf (stream selection config for open codec and best quality), it instead downdloads the whole video.

What am I doing wrong?
aufkrawall is offline   Reply With Quote
Old 20th August 2017, 15:45   #3227  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 293
Post your exact command line, youtube-dl version, MPC-HC version. Maybe it'll help.
Or maybe your youtube-dl.conf is responsible for this. Rename it to something else and try again.
lvqcl is offline   Reply With Quote
Old 20th August 2017, 16:01   #3228  |  Link
aufkrawall
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 -
MPC HC x64 1.7.13
youtube-dl v2017.08.18
ffmpeg x64 3.3.3 static

That gibberish occurs without youtube-dl.conf.
aufkrawall is offline   Reply With Quote
Old 20th August 2017, 16:35   #3229  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 293
Works for me, so I have no idea, sorry.
lvqcl is offline   Reply With Quote
Old 20th August 2017, 18:13   #3230  |  Link
aufkrawall
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.
aufkrawall is offline   Reply With Quote
Old 20th August 2017, 20:34   #3231  |  Link
tasi
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.
tasi is offline   Reply With Quote
Old 21st August 2017, 07:55   #3232  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
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.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 22nd August 2017, 06:52   #3233  |  Link
rock
Registered User
 
Join Date: Dec 2013
Posts: 116
request: greyed out drop down option for language when only English / no other language installed
issue: when play wmv with wmv9 mft decoder, status bar display H/W
rock is offline   Reply With Quote
Old 27th August 2017, 15:51   #3234  |  Link
aufkrawall
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.
aufkrawall is offline   Reply With Quote
Old 27th August 2017, 16:04   #3235  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Quote:
Originally Posted by aufkrawall View Post
I know that it's because bestvideo+bestaudio are to seperate streams, but in theory this isn't a problem (and isn't in mpv either).
But you don't manually do that in mpv, do you? It probably opens youtube-dl twice or something like that.

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.
sneaker_ger is offline   Reply With Quote
Old 27th August 2017, 16:21   #3236  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 293
Quote:
Originally Posted by aufkrawall View Post
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.
Piping (via '|', '>' or '<' characters) doesn't work without cmd.exe.
lvqcl is offline   Reply With Quote
Old 27th August 2017, 16:28   #3237  |  Link
kasper93
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.
kasper93 is offline   Reply With Quote
Old 27th August 2017, 17:08   #3238  |  Link
sauma144
Registered User
 
Join Date: Sep 2016
Posts: 89
Could you share your script?
What about adding a button to download/update youtube-dl or maybe a checkbox in the installer?
sauma144 is offline   Reply With Quote
Old 27th August 2017, 17:17   #3239  |  Link
aufkrawall
Registered User
 
Join Date: Dec 2011
Posts: 1,812
I'd be totally happy about just dropping the youtube-dl.exe into MPC HC folder to enable YT (and HLS etc.) functionality for opening URLs.
aufkrawall is offline   Reply With Quote
Old 28th August 2017, 01:58   #3240  |  Link
mikhaelkh
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/
mikhaelkh is offline   Reply With Quote
Reply

Tags
dxva, media player classic, mpc, mpc-hc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.