VideoHelp Forum




+ Reply to Thread
Results 1 to 1 of 1
  1. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    To watch and record the Daytona 24 Hour last weekend I used this.
    https://github.com/Kethsar/ytarchive

    I wrote this batch file to do that.
    Basically it nominates the output folder\file (no .extension!)
    The current time is appended to the file name.
    It recorded 5 minutes, waited 25 minutes, recorded 5 minutes, waited 25.....
    until the streaming finished. The url changed twice during the 24 hours.
    The Daytona 24 hour race was broken into 3 parts.
    https://www.youtube.com/watch?v=58CZxDrMniI
    https://www.youtube.com/watch?v=PLI1hI63zpA
    https://www.youtube.com/watch?v=nnhQG3i3Jm8

    Of course you can now download the lot from YouTube.
    Code:
    @echo off
    :loop
    echo|time > ticktock1
    findstr "current" ticktock1 > ticktock2
    for /F "tokens=1-8 delims=^:. " %%a in (ticktock2) do set TimeNow=%%e.%%f.%%g
    del ticktock?
    echo. &set TimeNow
    :: If the live stream has already started, go back and download from the beginning.
    ::ytarchive.exe -o "D:/Movies/Daytona-%TimeNow%" --live-from 0h00m00s --capture-duration 00:05:00 --threads 2 "https://www.youtube.com/watch?v=nnhQG3i3Jm8" 720p
    :: Download, starting right now.
    ::ytarchive.exe -o "D:/Movies/Daytona-%TimeNow%" --live-from now --capture-duration 00:05:00--threads 2 "https://www.youtube.com/watch?v=nnhQG3i3Jm8"720p
    start "" /b /wait timeout /T 1500
    goto :loop
     pause
    After the live-streaming had finished I got a message on the screen telling me the url was not available for downloading, and was advised to try using yt-dlp.exe. I already have a number of batch files that use yt-dlp.exe.

    I did this as an exercise, and found the software easy to use.
    p.s. I've commented out the two lines that actually do the download.
    Last edited by pcspeak; 27th Jan 2025 at 02:50.
    Quote Quote  



Similar Threads

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