View Single Post
Old 9th September 2017, 13:32   #3250  |  Link
Reino
Registered User
 
Reino's Avatar
 
Join Date: Nov 2005
Posts: 693
Quote:
Originally Posted by sneaker_ger View Post
Quote:
Originally Posted by nijiko View Post
Are 60,65,89 and later no longer support for XP?
Correct. XP support has been dropped for good.
v1.7.11.24 appears to be latest version that works on my WinXP pc.

Quote:
Originally Posted by aufkrawall View Post
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 -
With this command youtube-dl pipes 'bestvideo' AND 'bestaudio' to mpc-hc. Afaik you can only pipe one stream at a time in Windows, so this would never work.
For this video 'bestvideo' and 'bestaudio' correspond to:
Code:
youtube-dl.exe -F aqz-KE-bpKQ
format code  extension  resolution note
258          m4a        audio only DASH audio  387k , m4a_dash container, mp4a.40.2, 29.15MiB
315          webm       3840x2160  2160p60 28416k , vp9, 60fps, video only, 1.63GiB
The only streams you can pipe with this command are the non-DASH/progressive videostreams:
Code:
youtube-dl.exe -F aqz-KE-bpKQ
format code  extension  resolution note
17           3gp        176x144    small , mp4v.20.3, mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3, mp4a.40.2
43           webm       640x360    medium , vp8.0, vorbis@128k
18           mp4        640x360    medium , avc1.42001E, mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F, mp4a.40.2@192k (best)

youtube-dl.exe -f best -o - aqz-KE-bpKQ | mpc-hc.exe - /close
It is possible to pipe 'bestvideo' and 'bestaudio' to MPC-HC, but you'd have to merge them first... with FFmpeg:
Code:
FOR /F %A IN ('youtube-dl.exe -gf bestvideo aqz-KE-bpKQ') DO (
    FOR /F %B IN ('youtube-dl.exe -gf bestaudio aqz-KE-bpKQ') DO (
      ffmpeg.exe -i %A -i %B -c copy -f nut - | mpc-hc.exe - /close
    )
)
The downside to piping is that you can't timeseek. But you don't have to pipe, because MPC-HC can load additional audiostreams:
Code:
FOR /F %A IN ('youtube-dl.exe -gf bestvideo aqz-KE-bpKQ') DO (
    FOR /F %B IN ('youtube-dl.exe -gf bestaudio aqz-KE-bpKQ') DO (
      mpc-hc.exe %A /dub %B
    )
)
And this is exactly what 3DYD Youtube Source does. You'd be much better off using this DirectShow filter to open Youtube videos!
------

A question to the MPC-HC devs on my part:
Code:
mpc-hc /?
/dub "dubname"	Load an additional audio file
/sub "subname"	Load an additional subtitle file
Eventhough it says "audio file", /dub also accepts an url (as I've just demonstrated).
/sub on the other hand does not. Could you, just like MPC-BE, have it accept subtitle urls as well?!
But then I guess it won't do me any good, because new versions won't work on my WinXP pc...
__________________
My hobby website
Reino is offline   Reply With Quote