LoginSignup
5
5

More than 5 years have passed since last update.

youtube-dl を使ってTwitch(ライブ・アーカイブ)を録画する方法

Posted at

youtube-dl を使えばTwitchライブ(生配信)・アーカイブ動画をmp4ファイルに録画して保存することができる

  • この記事はmacOS想定
  • ffmpegさえ利用可能にすればWindowsやLinuxでも使えるのでは

Homebrew のインストール

必須ではないが便利

macOS
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

youtube-dl のインストール

macOS
brew install youtube-dl

インストールできたかの確認

macOS
youtube-dl --version
YYYY.MM.DD

録画したファイルを置く専用フォルダを用意して移動

macOS
$ cd Desktop
$ mkdir video
$ cd video

録画したいTwitch動画のURLを取得

https://go.twitch.tv/hogehoge
https://go.twitch.tv/videos/hogehoge
  • ライブ(生放送)、アーカイブ動画のいずれも可能

録画する

youtube-dl https://go.twitch.tv/hogehoge
  • ライブ(生放送)の場合、 ^C を押して終了する
  • アーカイブ動画の場合、自動的に終了する

確認する

フォルダ内を覗くと
hogehoge.mp4
ができているはず

高度な操作

youtube-dl/README.md at master · rg3/youtube-dl
にたくさんオプションが説明されている

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5