从命令行获取视频信息, 输出如下
[Log] -> 执行命令'youtube-dl https://youtu.be/sbz3fOe7rog -F'结果:
[youtube] sbz3fOe7rog: Downloading webpage
[youtube] sbz3fOe7rog: Downloading video info webpage
[info] Available formats for sbz3fOe7rog:
format code extension resolution note
249 webm audio only tiny 59k , opus @ 50k (48000Hz), 1.50MiB
250 webm audio only tiny 78k , opus @ 70k (48000Hz), 2.00MiB
140 m4a audio only tiny 129k , m4a_dash container, mp4a.40.2@128k (44100Hz), 3.47MiB
251 webm audio only tiny 150k , opus @160k (48000Hz), 3.85MiB
278 webm 256x144 144p 95k , webm container, vp9, 15fps, video only, 2.36MiB
160 mp4 256x144 144p 111k , avc1.4d400c, 15fps, video only, 2.95MiB
242 webm 426x240 240p 162k , vp9, 15fps, video only, 2.62MiB
133 mp4 426x240 240p 247k , avc1.4d4015, 15fps, video only, 6.58MiB
18 mp4 512x288 240p 355k , avc1.42001E, mp4a.40.2@ 96k (44100Hz), 9.58MiB (best)
此时 echo -n $?
返回 0