Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #11  
Old 01-20-2013, 12:16 PM
MKANET MKANET is offline
Junior Member
 
Join Date: Jan 2013
Posts: 27
MKANET is on a distinguished road
Default

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.
Reply With Quote
  #12  
Old 01-20-2013, 06:55 PM
MKANET MKANET is offline
Junior Member
 
Join Date: Jan 2013
Posts: 27
MKANET is on a distinguished road
Default

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.
Reply With Quote
  #13  
Old 01-20-2013, 07:54 PM
MKANET MKANET is offline
Junior Member
 
Join Date: Jan 2013
Posts: 27
MKANET is on a distinguished road
Default

Re: How to dump youtube live TV stream to file using commandline?


I wasn't begging and certainly not from you.

Quote:
Originally Posted by svnpenn5 View Post
Beggars cant be choosers.
Reply With Quote
  #14  
Old 01-20-2013, 08:21 PM
svnpenn5 svnpenn5 is offline
Banned
 
Join Date: Jan 2013
Posts: 6
svnpenn5 is on a distinguished road
Default

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]
Reply With Quote
  #15  
Old 01-20-2013, 08:35 PM
MKANET MKANET is offline
Junior Member
 
Join Date: Jan 2013
Posts: 27
MKANET is on a distinguished road
Default

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.
Reply With Quote
  #16  
Old 01-21-2013, 01:14 AM
Elgero Elgero is offline
Senior Member
 
Join Date: Feb 2012
Posts: 177
Elgero is on a distinguished road
Default

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.
Reply With Quote
  #17  
Old 01-21-2013, 02:33 AM
MKANET MKANET is offline
Junior Member
 
Join Date: Jan 2013
Posts: 27
MKANET is on a distinguished road
Default

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.

Quote:
Originally Posted by Elgero View Post
I can write a commandline tool tomorrow that is similar to svnpenn's script, but it requires .NET Framework 2.0.
Reply With Quote
  #18  
Old 01-21-2013, 04:39 AM
MKANET MKANET is offline
Junior Member
 
Join Date: Jan 2013
Posts: 27
MKANET is on a distinguished road
Default

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>'
Reply With Quote
  #19  
Old 01-21-2013, 04:52 AM
svnpenn5 svnpenn5 is offline
Banned
 
Join Date: Jan 2013
Posts: 6
svnpenn5 is on a distinguished road
Default

Re: How to dump youtube live TV stream to file using commandline?


Quote:
Originally Posted by MKANET
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>'
You need to get "Raw" version by clicking Raw link on GitHub.
Reply With Quote
  #20  
Old 01-26-2013, 02:13 PM
MKANET MKANET is offline
Junior Member
 
Join Date: Jan 2013
Posts: 27
MKANET is on a distinguished road
Arrow

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
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 08:32 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons