zoukankan      html  css  js  c++  java
  • youtube-dl下载youtube视频时查看分辨率以及选择分辨率下载

    1、查看分辨率:

    youtube-dl -F https://www.youtube.com/watch?v=_NMf1TpiFwY

    2、根据分辨率下载,比如下载1280*720的mp4,前面的数字是136

    则可以:youtube-dl -f 136 https://www.youtube.com/watch?v=_NMf1TpiFwY

    另:youtube-dl -f best https://www.youtube.com/watch?v=_NMf1TpiFwY,这个命令一般也可以下载分辨率最好的视频,而是下载的有声音的视频中分辨率最好的。

    3、其他一些命令行:

    Download best mp4 format available or any other best if no mp4 available

    $ youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'
    

    Download best format available but not better that 480p

    $ youtube-dl -f 'bestvideo[height<=480]+bestaudio/best[height<=480]'
    

    Download best video only format but no bigger than 50 MB

    $ youtube-dl -f 'best[filesize<50M]'
    

    Download best format available via direct link over HTTP/HTTPS protocol

    $ youtube-dl -f '(bestvideo+bestaudio/best)[protocol^=http]'
  • 相关阅读:
    linux集群实施与部署-----Nginx
    以太网链路聚合简单配置
    配置基于源地址的策略路由
    shell --Day 6
    ps初学--Day 1部分工具使用
    shell --Day 5
    shell ——Day 4
    shell——Day3
    shell——Day 2
    初学shell——Day1
  • 原文地址:https://www.cnblogs.com/dayang12525/p/10286316.html
Copyright © 2011-2022 走看看