1. Windows10 の PC で、youtube-dl.exe を使った。
2. 映像は以下。
youtube-dl.exe [動画のURL] -f "bestvideo"
3.音声は以下。(ffmpeg は導入済) aac に変換する。
youtube-dl.exe [動画のURL] -x -f "bestaudio" --audio-format aac
動画ファイルは .webm 音声ファイルは .aac になる。別ファイル。
ffmpeg で mp4 に変換するときに、映像と音声を合成。