Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?EDIT: There aren't any updated cclive builds for windows.
It seems youtube-dl is the only commandline downloader that has a Windows executable. Last edited by MKANET : 01-20-2013 at 02:51 PM. |
#12
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?Thanks, but I dont have cygwin; and, definitely not worth installing just for a shell script.
|
#13
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?I wasn't begging and certainly not from you.
|
#14
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?Suit yourself but it does work.
Code:
$ youtube.sh 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: youtube.sh [ITAG] URL $ youtube.sh 37 youtube.com/watch?v=LHelEIJVxiE --2013-01-20 20:20:21-- http://r9---sn-q4f7dn7r.c.youtube.com/videop layback?mv=m&source=youtube&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cra tebypass%2Csource%2Cupn%2Cexpire&cp=U0hUTVdQV19JTUNONF9PSkFHOnFoNGhZS WJkcWZm&ms=au&ipbits=8&sver=3&expire=1358759643&mt=1358734810&id=2c77 a5108255c621&itag=37&upn=TbYQqBTiOpY&newshard=yes&ip=99.109.97.214&ke y=yt1&fexp=920704%2C912806%2C922403%2C922405%2C929901%2C913605%2C9257 10%2C929104%2C929110%2C908493%2C920201%2C913302%2C919009%2C911116%2C9 26403%2C910221%2C901451&ratebypass=yes&signature=2C8615065314DC13FA54 5E057ACAA37C55004942.85F61420F91DCDCBACACDF881B06DFBFC9938402 Resolving r9---sn-q4f7dn7r.c.youtube.com (r9---sn-q4f7dn7r.c.youtube. com)... 173.194.24.142, 2001:4860:4002:4::e Connecting to r9---sn-q4f7dn7r.c.youtube.com (r9---sn-q4f7dn7r.c.yout ube.com)|173.194.24.142|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 17891401 (17M) [video/mp4] Saving to: `a.mp4' 100%[===========================>] 17,891,401 1.37M/s in 12s 2013-01-20 20:20:34 (1.37 MB/s) - `a.mp4' saved [17891401/17891401] |
#15
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?No doubt it works for you, but if I was going to install an entire cygwin environment on my machine, I would have done it a long time ago; and certainly not for a single script. I do have cygwin1.dll on my machine for a few standalone exe's, but that's about it.
|
#16
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?I can write a commandline tool tomorrow that is similar to svnpenn's script, but it requires .NET Framework 2.0.
|
#17
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?That would be great. I already have .NET Framework 2.0. I appreciate it.
|
#18
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?@svnpenn5 I really do appreciate pointing me to babycygwin. I didnt even know there was such a thing.
One of the reasons why I was hoping for a windows native command-line tool was because it's much easier for me to integrate into my existing Windows batch files and apps; plus, the output would display natively in my Windows command prompt. I'm sure there are probably ways to further bridge the gap; but, it's hard to pass up a Windows native command-line tool if it's available. BTW: I did try youtube.sh. I think Im doing something fundamentally wrong. But, it gave an error for me. It would be good to get this to work just in case the .NET solution doesnt come through. Code:
MKANET@Horizon ~ $ youtube.sh youtube.com/watch?v=LHelEIJVxiE /bin/youtube.sh: line 4: syntax error near unexpected token `newline' /bin/youtube.sh: line 4: `<!DOCTYPE html>' |
#19
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?Quote:
|
#20
|
|||
|
|||
Re: How to dump youtube live TV stream to file using commandline?@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 |
Tags: livetv, youtube |
Thread Tools | |
Display Modes | |
|
|