最新版 youtube-dl 和 ffmpeg 搞定
youtube-dl -F <amp-youtube data-videoid="HoDhlrWAn_E" layout="responsive" width="480" height="270"></amp-youtube>[youtube] HoDhlrWAn_E: Downloading webpage
[youtube] HoDhlrWAn_E: Downloading video info webpage
[info] Available formats for HoDhlrWAn_E:
format code extension resolution note
249 webm audio only DASH audio 54k , opus @ 50k, 1.90MiB
250 webm audio only DASH audio 67k , opus @ 70k, 2.32MiB
171 webm audio only DASH audio 106k , vorbis@128k, 3.81MiB
251 webm audio only DASH audio 115k , opus @
160k, 4.13MiB
140 m4a audio only DASH audio 130k , m4a_dash container, mp4a.40.2@128k, 5.44MiB
278 webm 256x144 144p 97k , webm container, vp9, 28fps, video only, 3.91MiB
160 mp4 256x144 144p 113k , avc1.4d400c, 28fps, video only, 4.36MiB
242 webm 426x240 240p 225k , vp9, 28fps, video only, 9.14MiB
133 mp4 426x240 240p 301k , avc1.4d4015, 28fps, video only, 9.19MiB
243 webm 640x360 360p 410k , vp9, 28fps, video only, 16.69MiB
134 mp4 640x360 360p 657k , avc1.4d401e, 28fps, video only, 20.16MiB
244 webm 854x480 480p 754k , vp9, 28fps, video only, 28.30MiB
135 mp4 854x480 480p 1174k , avc1.4d401f, 28fps, video only, 37.20MiB
247 webm 1280x720 720p 1502k , vp9, 28fps, video only, 49.04MiB
136 mp4 1280x720 720p 1886k , avc1.4d401f, 28fps, video only, 62.34MiB
17 3gp 176x144 small , mp4v.20.3, mp4a.40.2@ 24k, 3.23MiB
36 3gp 320x180 small , mp4v.20.3, mp4a.40.2, 9.12MiB
18 mp4 640x360 medium , avc1.42001E, mp4a.40.2@ 96k, 30.93MiB (best)
youtube-dl -f bestvideo+bestaudio <amp-youtube data-videoid="HoDhlrWAn_E" layout="responsive" width="480" height="270"></amp-youtube> --merge-output-format mkv
[youtube] HoDhlrWAn_E: Downloading webpage
[youtube] HoDhlrWAn_E: Downloading video info webpage
[download] Destination: L.O.V.E. is L.I.V.E. [Teaser]-HoDhlrWAn_E.f136.mp4
[download] 100% of 62.34MiB in 02:04
[download] Destination: L.O.V.E. is L.I.V.E. [Teaser]-HoDhlrWAn_E.f140.m4a
[download] 100% of 5.44MiB in 00:06
[ffmpeg] Merging formats into "L.O.V.E. is L.I.V.E. [Teaser]-HoDhlrWAn_E.mkv"
Deleting original file L.O.V.E. is L.I.V.E. [Teaser]-HoDhlrWAn_E.f136.mp4 (pass -k to keep)
Deleting original file L.O.V.E. is L.I.V.E. [Teaser]-HoDhlrWAn_E.f140.m4a (pass -k to keep)