Skip to content

LunarCreative/setup-yt-dlp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup yt-dlp for GitHub Actions

Setup yt-dlp (a youtube-dl fork) on GitHub Actions to use yt-dlp.

This action installs yt-dlp for use in actions by installing it using pipx.

Usage

To use yt-dlp, run this action before yt-dlp.

steps:
  - name: Setup yt-dlp
    uses: AnimMouse/setup-yt-dlp@v1
    
  - run: yt-dlp https://www.youtube.com/watch?v=BaW_jenozKc

FFmpeg

To improve yt-dlp's handling of formats, like merging bestvideo+bestaudio instead of just using best, it is recommended to install FFmpeg by setting with-ffmpeg to true.

steps:
  - name: Setup yt-dlp
    uses: AnimMouse/setup-yt-dlp@v1
    with:
      with-ffmpeg: true
      
  - run: yt-dlp https://www.youtube.com/watch?v=BaW_jenozKc

For Linux & Windows, this will install yt-dlp/FFmpeg-Builds with some patches necessary for smooth integration with yt-dlp using AnimMouse/tool-cache.
For macOS, you need to run FedericoCarboni/setup-ffmpeg as the built-in FFmpeg installer for macOS has been removed.

If you already installed FFmpeg in GitHub Runners, no need to set with-ffmpeg to true.

aria2

It is recommended to use aria2 as the downloader for yt-dlp, this will improve the downloading process and aria2 is already preinstalled in GitHub actions.

steps:
  - name: Setup yt-dlp
    uses: AnimMouse/setup-yt-dlp@v1
    with:
      with-ffmpeg: true
      
  - run: yt-dlp --downloader aria2c https://www.youtube.com/watch?v=BaW_jenozKc

About

Setup/Install yt-dlp (a youtube-dl fork) for GitHub Actions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 52.5%
  • PowerShell 47.5%