VideoHelp Forum


Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!


Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.


+ Reply to Thread
Results 1 to 28 of 28
Thread
  1. Hello,

    Who can recommend me the best way to download live streaming video from youtube in highest quality?


    Thank you for the help
    Quote Quote  
  2. but I want it in one file not in seperated files or .ts files...etc
    Quote Quote  
  3. Member
    Join Date
    Apr 2020
    Location
    Malaysia
    Search Comp PM
    I would say its youtube-dl just run a simple command
    youtube-dl youtube.com/watch?v=xxx
    with no other options then it will downloading the highest quality possible

    but what I dont know is how to download the live stream from the beginning, maybe someone below me knows
    Quote Quote  
  4. Thank you for your answer! the software asked me to add ffmpeg to download the video because it doesn't detected it. how to do that?
    Last edited by aaajan; 7th May 2020 at 09:37.
    Quote Quote  
  5. Member
    Join Date
    Apr 2020
    Location
    Malaysia
    Search Comp PM
    Originally Posted by aaajan View Post
    Thank you for your answer! the software asked me to add ffmpeg to download the video because it doesn't detected it. how to do that?
    just follow this instructions from youtube-dl faq and read carefully
    Quote Quote  
  6. Thank you again for your answer!

    It will be great If it is possible to download from the biginning
    Quote Quote  
  7. I recommend you use streamlink:

    Code:
    streamlink "https://www.youtube.com/watch?v=tdjyvRfJeJM" best -o output.ts
    That will download to output.ts -- which you can even play while it's downloading. Press Ctrl+C to terminate the download.
    Quote Quote  
  8. Originally Posted by jagabo View Post
    I recommend you use streamlink:

    Code:
    streamlink "https://www.youtube.com/watch?v=tdjyvRfJeJM" best -o output.ts
    That will download to output.ts -- which you can even play while it's downloading. Press Ctrl+C to terminate the download.
    I will try this software. Thank you for your answer.
    Quote Quote  
  9. Originally Posted by JFK View Post
    Originally Posted by aaajan View Post
    Thank you for your answer! the software asked me to add ffmpeg to download the video because it doesn't detected it. how to do that?
    just follow this instructions from youtube-dl faq and read carefully
    I have other question, is there a way to stop the live streaming download properly on youtube-dl?
    Quote Quote  
  10. Press Ctrl+C to stop downloading. But with youtube-dl that sometimes leaves a file that doesn't play. That's why i recommended Streamlink instead. It creates a transport stream file that will always play (unless it's very short, like 1 or 2 seconds). You can always remux to mp4 or mkv later.
    Quote Quote  
  11. Originally Posted by jagabo View Post
    Press Ctrl+C to stop downloading. But with youtube-dl that sometimes leaves a file that doesn't play. That's why i recommended Streamlink instead. It creates a transport stream file that will always play (unless it's very short, like 1 or 2 seconds). You can always remux to mp4 or mkv later.
    Thank you for your advice and that is true with youtube-dl the downloaded video leaves some parts not playing. But the question how to download youtube with streamlink? I didn't find the command for it.
    Quote Quote  
  12. I gave you a sample streamlink command line in post #7.
    Quote Quote  
  13. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    @jagabo

    Thank you for recommending streamlink! Kistmet! I needed to record a Youtube stream earlier this morning and it worked great!
    Quote Quote  
  14. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    FYI, streamlink will automatically stop once the stream ends.
    Quote Quote  
  15. Live streams don't end.
    Quote Quote  
  16. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    When I use streamlink for YouTube (recording right now), it automatically stops at the end of the stream, at least on the channel I'm using it on.

    I learned a couple of things while setting it up.

    You can create a batch file and add the Timeout command (timeout <time to wait) for unattended recording. You have to add the both the streamlink and timeout commands multiple times so it repeats until the stream is live. Be careful not to set the timeout too short as you may be called out for hammering the site. Also note that it takes a few seconds for the streamlink command to execute and test if the URL is active.

    Example: test.bat

    @echo off
    streamlink "<url>" best -o "h:/video.ts"
    timeout 30

    streamlink "<url>" best -o "h:/video.ts"
    timeout 30

    streamlink "<url>" best -o "h:/video.ts"
    timeout 30

    streamlink "<url>" best -o "h:/video.ts"
    timeout 30


    Be sure to repeat the lines enough times to ensure you catch the start of the stream.

    I've also figured out how to use Windows Task Scheduler to execute the batch automatically. Beware that the different versions of Windows may have different setup requirements especially if you're the Admin or only User. After lots of trial and error, I found that the simplest method works for me on Win 10 X64. I have it set as One Time Only because the URL changes every day.

    Image
    [Attachment 53308 - Click to enlarge]


    Image
    [Attachment 53307 - Click to enlarge]
    Quote Quote  
  17. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Ohhh...I tried it a live Facebook stream yesterday and it didn't work. Wasn't sure if the stream would be retained after the stream, so used OBS to record it live.
    Quote Quote  
  18. Originally Posted by lingyi View Post
    When I use streamlink for YouTube (recording right now), it automatically stops at the end of the stream, at least on the channel I'm using it on.
    I was thinking of the live streams like the one I linked to, the Mr. Bean channel, which is a continuous broadcast, like a TV channel. "Event" type streams, do end, of course.
    Quote Quote  
  19. Tried some converters not so long ago and found convenient youtube converter. May be it will be helpful for you.
    Quote Quote  
  20. Originally Posted by jagabo View Post
    I recommend you use streamlink:

    Code:
    streamlink "https://www.youtube.com/watch?v=tdjyvRfJeJM" best -o output.ts
    That will download to output.ts -- which you can even play while it's downloading. Press Ctrl+C to terminate the download.
    Best option, agree.

    If you miss the start of a 'Live' stream you can make it jump back to the start - or as far as possible. I have had Y/T sports streams jump back 2 hrs+ but similarly, others only 10mins or so:

    Code:
    streamlink --hls-live-restart "https://www.youtube.com/watch?v=tdjyvRfJeJM" best -o output.ts
    Originally Posted by jagabo View Post
    Press Ctrl+C to stop downloading. But with youtube-dl that sometimes leaves a file that doesn't play. That's why i recommended Streamlink instead. It creates a transport stream file that will always play (unless it's very short, like 1 or 2 seconds). You can always remux to mp4 or mkv later.
    Solution in most (not all) cases to the Mp4 that won't play after halting with Ctrl+C via youtube-dl:

    Code:
    youtube-dl --no-part "https://www.youtube.com/watch?v=tdjyvRfJeJM"
    Also with youtube-dl you can 'force' a TS download:

    Code:
    youtube-dl --hls-use-mpegts "https://www.youtube.com/watch?v=tdjyvRfJeJM" -o output.ts
    Last edited by codehound; 1st Jun 2020 at 17:06.
    Quote Quote  
  21. Originally Posted by codehound View Post
    with youtube-dl you can 'force' a TS download:

    Code:
    youtube-dl --hls-use-mpegts "https://www.youtube.com/watch?v=tdjyvRfJeJM" -o output.ts
    I didn't know that. Thanks.

    Also, if you use both --hls-use-mpegts and --no-part the video won't have a .part extension and you can play the .ts file while it is still being downloaded.
    Last edited by jagabo; 3rd Jun 2020 at 12:41.
    Quote Quote  
  22. Thank you for all your answers!
    Quote Quote  
  23. Member
    Join Date
    Jul 2020
    Location
    Europe
    Search PM
    Try ee.ylss utility
    You can find it on https://github.com
    I haven't tested much, but at the moment it can download needed time interval of any Youtube livestream

    Image
    [Attachment 54216 - Click to enlarge]
    Quote Quote  
  24. Member
    Join Date
    Jul 2020
    Location
    Europe
    Search PM
    Other version ready, with command line support and with choice of resolution - page on GitHub
    It also can download the specified past portion of YouTube livestream, even if it was streamed many hours ago
    Quote Quote  
  25. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Doing a test run on a current streaming video on YT with this command line:

    streamlink "https://www.youtube.com/watch?v=MiVG0cdqg78" best -o output.ts

    and Streamlink returned this:

    C:\Users\bb19>streamlink "https://www.youtube.com/watch?v=MiVG0cdqg78" best -o output.ts
    [cli][info] Found matching plugin youtube for URL https://www.youtube.com/watch?v=MiVG0cdqg78
    error: Unable to open URL: https://youtube.com/get_video_info (HTTPSConnectionPool(host='youtube.com', port=443): Max retries exceeded with url: /get_video_info?video_id=MiVG0cdqg78&el=detailpage (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))))

    Any thoughts?
    Quote Quote  
  26. It works for me:
    Code:
    C:\>"g:\program files\streamlink\streamlink" "https://www.youtube.com/watch?v=MiVG0cdqg78" best -o output.ts
    [Streamlink for Windows v1.4.1 - Git W/5f8f0]
    [cli][info] Found matching plugin youtube for URL https://www.youtube.com/watch?v=MiVG0cdqg78
    [cli][info] Available streams: 144p (worst), 240p, 360p, 480p, 720p, 1080p (best)
    [cli][info] Opening stream: 1080p (hls)
    [download][output.ts] Written 47.2 MB (1m52s @ 576.6 KB/s)
    The error you got seems to indicate you are using a system wide proxy, but the proxy isn't working. I tried the command again using a VPN in Australia -- no problems.
    Quote Quote  
  27. Originally Posted by Alwyn View Post
    Doing a test run on a current streaming video on YT with this command line:

    streamlink "https://www.youtube.com/watch?v=MiVG0cdqg78" best -o output.ts

    and Streamlink returned this:

    Caused by ProxyError('Cannot connect to proxy.'

    Any thoughts?
    Not many
    Quote Quote  
  28. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Goooogle's my friend. I disabled the Windows 10 Proxy thingee and I got it working. Thanks to all!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!