okshouiti / YTDL.jl

個人的に使っているYouTubeダウンローダ。煮るなり焼くなり好きに使ってください。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YTDL

youtube-dlannieのようなダウンローダをjuliaで書いてみたかったマン

Installation

(@v1.5) pkg> add https://github.com/okshouiti/YTDL.jl

Usage

いつもの

julia> using YTDL

Print available codecs

julia> available_codecs(url)
  Audio Codecs
┌─────┬───────┬─────────┐
│  ID │ Codec │ Bitrate │
│     │       │  [Kbps] │
├─────┼───────┼─────────┤
│ 251 │  opus │     160 │
│ 140 │   aac │     128 │
└─────┴───────┴─────────┘
  Video Codecs
┌─────┬────────────┬───────────┬───────┐
│  ID │ Resolution │ Framerate │ Codec │
│     │   [pixels] │     [fps] │       │
├─────┼────────────┼───────────┼───────┤
│ 24772030 │   vp9 │
│ 13672030 │   avc │
│ 24448030 │   vp9 │
│ 13548030 │   avc │
│ 24336030 │   vp9 │
│ 13436030 │   avc │
│ 24224030 │   vp9 │
│ 13324030 │   avc │
│ 27814430 │   vp9 │
│ 16014430 │   avc │
└─────┴────────────┴───────────┴───────┘

Download video

julia> ytdl(url, preset="best")
Download start...

Dependencies

ffmpegと任意でyoutube-dlが必要なので入れておきましょう。

# Windows
sudo scoop install ffmpeg

# Ubuntu or Debian
sudo apt install ffmpeg

# Arch
yay -S ffmpeg

# etc...

About

個人的に使っているYouTubeダウンローダ。煮るなり焼くなり好きに使ってください。

License:MIT License


Languages

Language:Julia 100.0%