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 9 of 9
Thread
  1. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    For example, if I want to record/download a tv show or sporting event while I'm busy, at work or sleeping. It is possible?


    Edit: I mean, excecute a command right now but for the download to start after a few hours. That´s my doubt.
    Last edited by lfer94; 5th Jul 2021 at 14:45.
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Perhaps you can set up a command using
    the Windows Task scheduler
    Quote Quote  
  3. I have streamlink, ffmpeg, youtube-dl, yt-dlp and a few other apps installed on my ubuntu server and while I am at work, or out, I often initiate a sports event recording / capture via SSH with 'Termius' app on my old android phone. Or while I am in bed and can't be arsed to get up and go downstairs to the desktop.

    ffmpeg -i "http://iptv-URL-port/username/pwd/iptv-channel-number" -c:v libx264 -profile:v high -c:a copy output.ts
    streamlink --hls-live-restart "any-m3u8" best -o output.ts
    Get a 'shared' Fubo / Hulu / Sling account (PM for details) and use the Record DVR functionality ; )
    Last edited by codehound; 5th Jul 2021 at 17:14.
    Quote Quote  
  4. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Originally Posted by davexnet View Post
    Perhaps you can set up a command using
    the Windows Task scheduler
    Thank you, it's what I was looking for. But for some reason Task Scheduler just opens an empty command window and doesn't run what i wrote at the argument box. I also tried to do it with a .bat file but was unsuccessful.


    This is the code that I use often. Maybe someone can help me to create a .bat file correctly.

    Code:
    yt-dlp -f bestvideo --external-downloader aria2c --allow-unplayable-formats "https://edge4-hr.cvattv.com.ar/live/c2live/ESPN_HD/SA_Live_dash_enc_2A/ESPN_HD.mpd" --no-part -o video.mp4
    Last edited by lfer94; 6th Jul 2021 at 02:12.
    Quote Quote  
  5. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Originally Posted by codehound View Post
    I have streamlink, ffmpeg, youtube-dl, yt-dlp and a few other apps installed on my ubuntu server and while I am at work, or out, I often initiate a sports event recording / capture via SSH with 'Termius' app on my old android phone. Or while I am in bed and can't be arsed to get up and go downstairs to the desktop.

    ffmpeg -i "http://iptv-URL-port/username/pwd/iptv-channel-number" -c:v libx264 -profile:v high -c:a copy output.ts
    streamlink --hls-live-restart "any-m3u8" best -o output.ts
    Get a 'shared' Fubo / Hulu / Sling account (PM for details) and use the Record DVR functionality ; )
    Thank you. It's not what I'm looking for, but I will keep it in mind.
    Quote Quote  
  6. Member ccbradley's Avatar
    Join Date
    Jun 2021
    Location
    United States
    Search PM
    On linux, at “at” command is very useful: https://linuxize.com/post/at-command-in-linux/
    Quote Quote  
  7. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Originally Posted by ccbradley View Post
    On linux, at “at” command is very useful: https://linuxize.com/post/at-command-in-linux/
    Thank you!
    Quote Quote  
  8. Originally Posted by lfer94 View Post
    This is the code that I use often. Maybe someone can help me to create a .bat file correctly.

    Code:
    yt-dlp -f bestvideo --external-downloader aria2c --allow-unplayable-formats "https://edge4-hr.cvattv.com.ar/live/c2live/ESPN_HD/SA_Live_dash_enc_2A/ESPN_HD.mpd" --no-part -o video.mp4
    It worked for me with Win10 and t his batch file:

    Code:
    c:
    cd \youtube-dl
    yt-dlp -f bestvideo --external-downloader aria2c --allow-unplayable-formats "https://edge4-hr.cvattv.com.ar/live/c2live/ESPN_HD/SA_Live_dash_enc_2A/ESPN_HD.mpd" --no-part -o video.mp4
    The first line specifies the current drive is set to c:
    The second line makes sure the current directory is \youtube-dl where I have yt-dlp installed.
    The third line executes your yt-dlp command.

    Code:
    C:\WINDOWS\system32>c:
    
    C:\WINDOWS\system32>cd \youtube-dl
    
    C:\Youtube-dl>REM youtube-dl --no-part https://kpbs.streamguys1.com/kpbs-mp3 -o output.mp3
    
    C:\Youtube-dl>yt-dlp -f bestvideo --external-downloader aria2c --allow-unplayable-formats "https://edge4-hr.cvattv.com.ar/live/c2live/ESPN_HD/SA_Live_dash_enc_2A/ESPN_HD.mpd" --no-part -o video.mp4
    [generic] ESPN_HD: Requesting header
    WARNING: Falling back on generic information extractor.
    [generic] ESPN_HD: Downloading webpage
    [generic] ESPN_HD: Extracting information
    [info] Downloading format(s) video=2499968.track_id=10007
    [dashsegments] Total fragments: 3597
    [download] Destination: video.mp4
    WARNING: Inconsistent state of incomplete fragment download. Restarting from the beginning ...
    [download]   0.7% of ~1.99GiB at 78.02KiB/s ETA 08:23:22
    You probably don't need the first two lines if you specify the default folder in Task Scheduler.

    If I recall correctly, older versions of Windows wouldn't run a batch file from Task Scheduler like that. You had to run CMD.EXE with the correct switch to run a batch file. Something like: "cmd.exe /c filename.bat"
    Quote Quote  
  9. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Originally Posted by jagabo View Post
    It worked for me with Win10 and t his batch file:

    Code:
    c:
    cd \youtube-dl
    yt-dlp -f bestvideo --external-downloader aria2c --allow-unplayable-formats "https://edge4-hr.cvattv.com.ar/live/c2live/ESPN_HD/SA_Live_dash_enc_2A/ESPN_HD.mpd" --no-part -o video.mp4
    The first line specifies the current drive is set to c:
    The second line makes sure the current directory is \youtube-dl where I have yt-dlp installed.
    The third line executes your yt-dlp command.

    Code:
    C:\WINDOWS\system32>c:
    
    C:\WINDOWS\system32>cd \youtube-dl
    
    C:\Youtube-dl>REM youtube-dl --no-part https://kpbs.streamguys1.com/kpbs-mp3 -o output.mp3
    
    C:\Youtube-dl>yt-dlp -f bestvideo --external-downloader aria2c --allow-unplayable-formats "https://edge4-hr.cvattv.com.ar/live/c2live/ESPN_HD/SA_Live_dash_enc_2A/ESPN_HD.mpd" --no-part -o video.mp4
    [generic] ESPN_HD: Requesting header
    WARNING: Falling back on generic information extractor.
    [generic] ESPN_HD: Downloading webpage
    [generic] ESPN_HD: Extracting information
    [info] Downloading format(s) video=2499968.track_id=10007
    [dashsegments] Total fragments: 3597
    [download] Destination: video.mp4
    WARNING: Inconsistent state of incomplete fragment download. Restarting from the beginning ...
    [download]   0.7% of ~1.99GiB at 78.02KiB/s ETA 08:23:22
    You probably don't need the first two lines if you specify the default folder in Task Scheduler.

    If I recall correctly, older versions of Windows wouldn't run a batch file from Task Scheduler like that. You had to run CMD.EXE with the correct switch to run a batch file. Something like: "cmd.exe /c filename.bat"
    Brilliant! Thank you
    Quote Quote  



Similar Threads

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