VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 22 of 22
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  



Similar Threads