Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
![]() ![]() |
|
Thread Tools | Display Modes |
#21
|
|||
|
|||
![]() 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. |
#22
|
|||
|
|||
![]() 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:
|
#23
|
|||
|
|||
![]() 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 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. |
#24
|
|||
|
|||
![]() 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" |
#25
|
|||
|
|||
![]() Re: How to dump youtube live TV stream to file using commandline? |
#26
|
|||
|
|||
![]() 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 - can you help me please thx hasomaso |
#27
|
|||
|
|||
![]() 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. |
#28
|
|||
|
|||
![]() Re: How to dump youtube live TV stream to file using commandline?I would also like the supportet youtubedl vlc
|
#29
|
|||
|
|||
![]() Re: How to dump youtube live TV stream to file using commandline?Quote:
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. |
#30
|
|||
|
|||
![]() Re: How to dump youtube live TV stream to file using commandline?I need to modify it to be able to write to stdout.
I'll do it tomorrow. |
![]() ![]() |
Tags: livetv, youtube |
Thread Tools | |
Display Modes | |
|
|