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
  #21  
Old 01-26-2013, 02:53 PM
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?


Can you give me an example of a livestream?

A live stream like this?

http://www.youtube.com/user/Aiekillu...E&feature=plcp

:edit:

Changed live stream. Previous one went offline.
Reply With Quote
  #22  
Old 01-26-2013, 02:58 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?


Like this one:
http://www.youtube.com/watch?v=L7ird1HeEjw

Edit: Just to be clear, youtube-dl CAN download live-tv streams like my example just fine, except they start downloading from the very beginning of the stream from several days ago (in case you didnt see this in my earlier posts in this thread). The temporary link produced be svnpenn (and my protocol analyzer) produce a url that downloads the livetv stream at the CURRENT live broadcat time; which is the right starting point.


Quote:
Originally Posted by Elgero View Post
Can you give me an example of a livestream?

A live stream like this?

http://www.youtube.com/user/Aiekillu...E&feature=plcp

:edit:

Changed live stream. Previous one went offline.
Reply With Quote
  #23  
Old 01-26-2013, 04:03 PM
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?


Try this. I've only tested it on a few streams, but seems to work ok.

Code:
Usage: youtubedl L7ird1HeEjw
<deleted. new url below>

Code:
youtubedl L7ird1HeEjw
Downloading webpage. Please wait...
Finished downloading webpage.

Direct live url found.

http://r7---sn-5hn7sner.c.youtube.com/liveplay?itag=34&burst=40&cp=U0hUTlJRTl9HT
ENONF9KS1JHOm1fQ0xQMXI0NEpD&ip=94.214.98.54&newshard=yes&factor=1.25&key=yt1&mv=
m&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Cns%2Csourc
e%2Cupn%2Cexpire&source=youtube&upn=dLfnsgUlUvQ&sver=3&id=L7ird1HeEjw&ns=yt-live
&mt=1359237187&ipbits=8&ms=nxu&algorithm=throttle-factor&fexp=923114%2C914085%2C
916625%2C920704%2C912806%2C922403%2C922405%2C929901%2C913605%2C925710%2C929104%2
C906938%2C920201%2C913302%2C919009%2C911116%2C926403%2C910221%2C901451&expire=13
59260622&signature=6B3AFAA89A27F528D1164E4651D0408978DFAFBC.5DB9342DD465438CB8B5
357801AD67F7289C7E16

Saving as: HORIZON ARMENIAN TV LIVE.flv

Downloading Live Stream: 11.278 KB - 00:02:16

Last edited by Elgero : 01-26-2013 at 06:00 PM.
Reply With Quote
  #24  
Old 01-26-2013, 04:58 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?


@Elgero, thank you so much for doing this!! I can confirm that it works for live TV likes such as the ones here: http://www.youtube.com/live/all. That's a big step closer to get it to work like svnpenn's script; which supports livetv and non-livetv full URLs.

Example usage:

c:\>

c:\>YouTubeDL.exe http://youtube.com/watch?v=LHelEIJVxiE

Available formats for stream:
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:
YouTubeDL.exe [Format] [Filepath] [url]

c:\>
c:\>YouTubeDL.exe 46 "E:\TV Recordings\video.mp4" http://youtube.com/watch?v=LHelEIJVxiE


Saving as: E:\TV Recordings\video.mp4
Downloading Youtube Stream: 237 KB - 00:00:02

Thanks again for all your trouble. A tool like this can easily get very popular; since it would have more usefulness than even the popular opensource project for "youtube-dl"
Reply With Quote
  #25  
Old 01-26-2013, 06:00 PM
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?


Try this one.

https://rapidshare.com/files/3998189519/YouTubeDL.zip
Reply With Quote
  #26  
Old 01-26-2013, 07:23 PM
hasomaso hasomaso is offline
Senior Member
 
Join Date: Apr 2011
Posts: 943
hasomaso is on a distinguished road
Default

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


hi,

youtubedl downloaded youtube videos ok
youtubedl also plays videos with VLC..?

I tested the same way

Code:
youtubedl oFjoCVZvA0Q 46 | c:\progra~1\videolan\vlc\vlc -
but does not work???

can you help me please




thx
hasomaso
Reply With Quote
  #27  
Old 01-26-2013, 07:45 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?


This is almost perfect! There is a couple of very minor items I noticed:

Sorry, in advance that Issue 1 is so long. Its very hard for me to describe such a seemingly simple symptom:

Item 1: For example, while a media file is still downloading (20 seconds after starting the download), if I try to play it back in my media player, the video will playback up until 20 seconds, then get stuck.

It seems like there is a value/attribute saved in the media file which stores the media file's estimated length/size of the file. A couple of my media players seems to look at that value; and, stops at the file-length it reads when it first started playing the media file back.

I am hoping you might be able to remove this attribute in the media file so the player wont be able to read the length/size of the file, so it can continue playback back a growing media file.

Youtube-dl.exe already knows how to handle this issue and displays a NO-ETA for live TV streams:
[download] 0.1% of 2.00G at 66.15k/s ETA --:--
So, none of my players have a problem playback back liveTV streams.


Item 2: This is a very very minor issue, but if possible, could you make it so if the format is not specified by the user, it will automatically select the highest quality stream? This is also what Youtube-dl.exe does.


Issue 3: This is also a very minor issue, but if possible, could you also allow the full URL to be specified by the user? So, "http://www.youtube.com/watch?v=v_UyVmITiYQ" could be used instead of only "v_UyVmITiYQ". My applications use the full URL as their URL variable. No worries if this is too hard to do.


Thanks for all your time.. If possible, I would like to offer a donation via paypal for your time.
Reply With Quote
  #28  
Old 01-26-2013, 08:15 PM
hasomaso hasomaso is offline
Senior Member
 
Join Date: Apr 2011
Posts: 943
hasomaso is on a distinguished road
Default

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


I would also like the supportet youtubedl vlc
Reply With Quote
  #29  
Old 01-26-2013, 08:54 PM
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?


Quote:
Originally Posted by MKANET View Post
This is almost perfect! There is a couple of very minor items I noticed:

Sorry, in advance that Issue 1 is so long. Its very hard for me to describe such a seemingly simple symptom:

Item 1: For example, while a media file is still downloading (20 seconds after starting the download), if I try to play it back in my media player, the video will playback up until 20 seconds, then get stuck.

It seems like there is a value/attribute saved in the media file which stores the media file's estimated length/size of the file. A couple of my media players seems to look at that value; and, stops at the file-length it reads when it first started playing the media file back.

I am hoping you might be able to remove this attribute in the media file so the player wont be able to read the length/size of the file, so it can continue playback back a growing media file.

Youtube-dl.exe already knows how to handle this issue and displays a NO-ETA for live TV streams:
[download] 0.1% of 2.00G at 66.15k/s ETA --:--
So, none of my players have a problem playback back liveTV streams.


Item 2: This is a very very minor issue, but if possible, could you make it so if the format is not specified by the user, it will automatically select the highest quality stream? This is also what Youtube-dl.exe does.


Issue 3: This is also a very minor issue, but if possible, could you also allow the full URL to be specified by the user? So, "http://www.youtube.com/watch?v=v_UyVmITiYQ" could be used instead of only "v_UyVmITiYQ". My applications use the full URL as their URL variable. No worries if this is too hard to do.


Thanks for all your time.. If possible, I would like to offer a donation via paypal for your time.
Item 1:

FLV videos can contain metadata at the beginning with information about the video file, like the duration, but this is not the case with live streams from YouTube. Your video player probably reads the timestamp of the last audio/video frame and gets the duration that way.

I'm not sure what the problem is, but I can change the file permissions in the code (it's set to write only now) and maybe that will solve the issue. VLC doesn't have any problems with playing the video while downloading it and keeps on playing, so you might want to try that.

The 2.00G that youtube-dl shows is simply the content-length header returned from the youtube server. When downloading a normal file it returns the size of the file in bytes. With a live stream it returns 2147483648 (2GB).

Item 2:

Yes.

Item 3:

Yes.

I'll do it tomorrow.
Reply With Quote
  #30  
Old 01-26-2013, 08:55 PM
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?


Quote:
Originally Posted by hasomaso View Post
I would also like the supportet youtubedl vlc
I need to modify it to be able to write to stdout.

I'll do it tomorrow.
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 10:27 AM.


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