当前位置: 欣欣网 > 码农

4K star! 又一款免费好用的视频下载工具

2024-05-06码农

* 戳上方蓝字「 开源先锋 」关注我

推荐阅读:


大家好,我是开源君!

之前分享过不少视频下载的开源项目,今天开源君又发现一款不错的项目 - Cobalt ,分享给大家。

项目简介

Cobalt 是一个免费、无广告且易于使用的媒体下载工具。它支持多种流媒体服务,包括 B站、油管、tiktok 等。

当然,作者也说明,这个列表还会一直维护和更新,以应对网站的各种反扒策略。

目前项目在Github上面收获了4K star,还是挺受欢迎的。

性能特色

  • 支持多种流媒体服务:支持 YouTube、Bilibili、Netflix 等众多流媒体服务,用户可以轻松下载这些平台上的视频和音频内容。

  • 高效稳定的下载速度:采用了先进的下载技术和算法,确保用户能够获得高效稳定的下载速度,节省用户的时间。

  • 简单易用的操作界面:提供了直观的操作界面和简洁的操作流程,让用户可以轻松上手,无需复杂的设置和配置。

  • 灵活多样的下载选项:允许用户自定义下载选项,包括选择下载的视频质量、音频格式等,满足用户的不同需求。

  • 安装部署

    作者强烈建议使用docker来进行安装部署,新建一个文件夹和yml文件

    mkdir cobalt
    cd cobalt && nano docker-compose.yml

    然后粘贴下面的内容,按照我们自身的需求进行项目的修改。

    version: '3.5'
    services:
    cobalt-api:
    image: ghcr.io/wukko/cobalt:7
    restart: unless-stopped
    container_name: cobalt-api
    init: true
    # if container doesn't run detached on your machine, uncomment the next line
    #tty: true
    ports:
    - 9000:9000/tcp
    # if you're using a reverse proxy, uncomment the next line and remove the one above (9000:9000/tcp):
    #- 127.0.0.1:9000:9000
    environment:
    # replace https://co.wuk.sh/ with your instance's target url in same format
    API_URL: "https://co.wuk.sh/"
    # replace eu-nl with your instance's distinctive name
    API_NAME: "eu-nl"
    # if you want to use cookies when fetching data from services, uncomment the next line and the lines under volume
    # COOKIE_PATH: "/cookies.json"
    # see docs/run-an-instance.md for more information
    labels:
    - com.centurylinklabs.watchtower.scope=cobalt
    # if you want to use cookies when fetching data from services, uncomment volumes and next line
    #volumes:
    #- ./cookies.json:/cookies.json
    cobalt-web:
    image: ghcr.io/wukko/cobalt:7
    restart: unless-stopped
    container_name: cobalt-web
    init: true
    # if container doesn't run detached on your machine, uncomment the next line
    #tty: true
    ports:
    - 9001:9001/tcp
    # if you're using a reverse proxy, uncomment the next line and remove the one above (9001:9001/tcp):
    #- 127.0.0.1:9001:9001
    environment:
    # replace https://cobalt.tools/ with your instance's target url in same format
    WEB_URL: "https://cobalt.tools/"
    # replace https://co.wuk.sh/ with preferred api instance url
    API_URL: "https://co.wuk.sh/"
    labels:
    - com.centurylinklabs.watchtower.scope=cobalt
    # update the cobalt image automatically with watchtower
    watchtower:
    image: ghcr.io/containrrr/watchtower
    restart: unless-stopped
    command: --cleanup --scope cobalt --interval 900
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock











    最后启动容器即可。

    docker compose up -d

    当然也是可以使用 node.js 的方式

    git clone https://github.com/wukko/cobalt
    npm run setup
    npm start

    另外,项目还支持api的方式下载视频,具体参数、使用范例可以去查看专门的api文档。

    项目使用展示

    为了方便展示效果,作者也提供了一个工具演示链接。

    使用方法很简单,只需要把视频URL粘贴进去,点击右边的箭头即可快速进行下载。

    在下方的设置里面,可以自行设置下载的视频、音频的一些参数,如视频的质量、大小,音频的格式

    还有主题设置、文件名设置等。

    甚至还提供了一些快捷键

    作者在项目最后也做了一定的说明提醒,Cobalt 不是盗版工具,只是一个下载工具,用户应谨慎使用并遵守相关法律法规,对于所下载内容的使用、分发以及后果负责。

    总的来说,Cobalt 是一个非常方便易用的视频下载器项目,支持多种流媒体服务,提供高效稳定的下载速度和灵活多样的下载选项,让我们又可以有多一个下载的选择。

    更多项目细节,感兴趣的可以到项目地址进行查看:

    项目地址:
    https://github.com/wukko/cobalt