覚書、youtube-dl でよく使う(よく指定する)フォーマット
最近はちょいと面倒です。
もっとも高画質のモノを自動で判断する -b オプションが廃止されてしまったので。
詳細は YouTube - Wikipedia に載っていますが、よく使うものを抽出。
360p | 34 | flv |
---|---|---|
480p | 35 | flv |
720p | 22 | mp4 |
1080p | 37 | mp4 |
こんな感じで使ってます
使っているバージョンは 2010.07.24
% youtube-dl -t -f 35 動画ID [youtube] Setting language [youtube] 動画ID: Downloading video webpage [youtube] 動画ID: Downloading video info webpage [youtube] 動画ID: Extracting video information [download] Destination: 保存名 [download] 100.0% of ??M at ??k/s ETA 00:00
無いと怒られる
% youtube-dl -t -f 37 動画ID
[youtube] Setting language
[youtube] 動画ID: Downloading video webpage
[youtube] 動画ID: Downloading video info webpage
[youtube] 動画ID: Extracting video information
ERROR: unable to download video (format may not be available)
オプションのメモ
- -t, --title
- 動画タイトルをファイルの保存名に使う
- -f FORMAT, --format=FORMAT
- 動画フォーマットの指定
- -c, --continue
- レジューム機能
あとは man youtube-dl で