@svnpenn5 @Elgero, the whole purpose of needing this functionality in the first place is because I currently have Windows applications that depend on a external youtube plugin (looks for a user-defined Windows EXE,BAT, or CMD) to handle youtube streaming. Ive been using
youtube-dl.exe for this, but unfortunately youtube-dl.exe doesnt handle live-tv correctly. So, I've been searching for a suitable Win32/Win64 youtube-dl.exe replacement.
With the solution that svnpenn5 so kindly created, I have no idea how to
tell it what to do from a windows command prompt. Below, is the functionality I would need for this to work:
c:\>youtube youtube.com/watch?v=LHelEIJVxiE
46 1080p WebM vp8
37 1080p MP4 h.264 high
45 720p WebM vp8
102 720p WebM vp8 3D
22 720p MP4 h.264 high
84 720p MP4 h.264 3D
44 480p WebM vp8
35 480p FLV h.264 main
43 360p WebM vp8
100 360p WebM vp8 3D
34 360p FLV h.264 main
18 360p MP4 h.264 baseline
82 360p MP4 h.264 3D
5 240p FLV h.263
36 240p 3GP mpeg4 simple
17 144p 3GP mpeg4 simple
usage: /bin/youtube.sh [ITAG] [FILEPATH] URL
c:\>youtube 46 "E:\TV Recordings\video.mp4" youtube.com/watch?v=LHelEIJVxiE
--2013-01-26 11:52:27-- http://r3---sn-jvhj5nu-a5me.c.youtube.com/videoplayback?cp=U0hUTlJQUF9JTUNONF9KSlRJOlhPTUFVX 2ZKeTVu&cpn=HK55ba8vKaCJnpL2&expire=1359252843&fex p=916613%2C920704%2C912806%2C922403%2C922405%2C929 901%2C913605%2C925710%2C929104%2C920201%2C913302%2 C919009%2C911116%2C926403%2C910221%2C901451&id=2c7 7a5108255c621&ip=67.160.251.60&ipbits=8&itag=37&ke epalive=yes&key=yt1&ms=au&mt=1359229695&mv=m&newsh ard=yes&range=0-11886591&ratebypass=yes&signature=7F31C85ACEBA29AF 9EECFAC6232887A41BC66E34.0940C484FAA680D3086433326 0B3AA17629DB3AE&source=youtube&sparams=cp%2Cid%2Ci p%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cex pire&sver=3&upn=foxK64JaswQ
Resolving r3---sn-jvhj5nu-a5me.c.youtube.com (r3---sn-jvhj5nu-a5me.c.youtube.com)... 208.117.232.142
Connecting to r3---sn-jvhj5nu-a5me.c.youtube.com (r3---sn-jvhj5nu-a5me.c.youtube.com)|208.117.232.142|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 15745447 (15M) [video/webm] Saving to: `E:\TV Recordings\video.mp4'
91% [==================================> ] 14,364,940 1.30M/s eta 1s
@svnpenn5, I hope this isn't asking too much (at this point it is getting closer to begging

), but is there any way you could convert your batch script into a Windows executable (with builtin baby-cygwin) that works like the above example?
BTW, @Elgero, did you change your mind to make a .net based script that does this?
Thanks so much,
MKANET