cobalt

command module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 12 Imported by: 0

README

cobalt-cli

GitHub Release Static Badge Static Badge GitHub License

Unofficial cobalt command line client made in go. cobalt-cli uses gobalt library for communication between your machine <-> cobalt servers.

Features

  • Get directly link from the service cdn (if possible);
  • More than 15 services supported;
  • JSON output using the flag -j or --json;
  • Option to check status of cobalt servers;
  • Use custom cobalt instances (see https://instances.hyper.lol);
  • Get dubbed youtube audio.

Download

Platform/OS Download link
Windows x64 / x86 / arm
Linux x64 / x86 / arm64
MacOS Intel / M1, M2, M3

You can also check the releases page to download the latest version according to your platform.

Usage

usage: cobalt [-h|--help] [-u|--url "<value>"] [-c|--video-codec
              (av1|vp9|h264)] [-q|--video-quality
              (144|240|360|480|720|1080|1440|2160)] [-f|--audio-format
              (opus|ogg|wav|mp3|best)] [-p|--filename-pattern
              (basic|pretty|nerdy|classic)] [-a|--no-video] [-w|--no-watermark]
              [-t|--full-tiktok-audio] [-v|--no-audio] [-d|--dubbed-audio]
              [-m|--metadata] [-g|--gif] [-j|--json] [-s|--status] [-i|--api
              "<value>"] [-l|--language "<value>"] [-b|--browser]

              save what you love directly from command-line, no bullshit
              involved.

Arguments:

  -h  --help               Print help information
  -u  --url                The url to download using cobalt
  -c  --video-codec        Video codec to be used. Applies only to youtube
                           downloads. AV1: 8K/HDR, lower support | VP9: 4K/HDR,
                           best quality | H264: 1080p, works everywhere.
                           Default: h264
  -q  --video-quality      Quality of the video. Default: 1080
  -f  --audio-format       Audio format/codec to be used. Using the default the
                           audio won't be re-encoded. Default: best
  -p  --filename-pattern   File name pattern. Classic:
                           youtube_yPYZpwSpKmA_1920x1080_h264.mp4 | audio:
                           youtube_yPYZpwSpKmA_audio.mp3 // Basic: Video Title
                           (1080p, h264).mp4 | audio: Audio Title - Audio
                           Author.mp3 // Pretty: Video Title (1080p, h264,
                           youtube).mp4 | audio: Audio Title - Audio Author
                           (soundcloud).mp3 // Nerdy: Video Title (1080p, h264,
                           youtube, yPYZpwSpKmA).mp4 | audio: Audio Title -
                           Audio Author (soundcloud, 1242868615).mp3. Default:
                           pretty
  -a  --no-video           Extract audio only. Default: false
  -w  --no-watermark       Remove TikTok watermark from TikTok videos. Default:
                           false
  -t  --full-tiktok-audio  Enables download of original sound used in a tiktok
                           video. Default: false
  -v  --no-audio           Downloads only the video, without audio, when
                           possible. Default: false
  -d  --dubbed-audio       Downloads youtube audio dubbed, if present. Change
                           the language using -l <ISO 639-1 format>. Default:
                           false
  -m  --metadata           Disables file metadata. Default: false
  -g  --gif                Disables conversion of twitter gifs to a .gif file.
                           Default: true
  -j  --json               Output to stdin as json. Default: false
  -s  --status             Will only check status of the select cobalt server,
                           print and exit. All other options will be ignored,
                           except -j. Default: false
  -i  --api                Change the cobalt api endpoint to be used. See
                           others instances in https://instances.hyper.lol.
                           Default: https://co.wuk.sh
  -l  --language           Downloads dubbed youtube audio according to the
                           language set following the ISO 639-1 format. Only
                           takes effect if -d was passed as an argument.
                           Default: en
  -b  --browser            Opens the response link in default browser, if
                           successful. Default: false

Compiling

Make sure you have the lastest go compiler. Download it here.

Easy as:

  1. Clone this repository.
  2. On the root of this repository, run go mod tidy. This will download this project dependencies.
  3. To run the application, use go run .. To compile, run go build.

To add additional Windows metadata, you'll need:

  • go-winres, follow the install instructions there

Then run go-winres make on the root of this repository, it will create two .syso files.

After that, building with go build will automatically embed these files on the Windows executable.

About & Thanks

  • cobalt made by wukko, super cool guy;
  • argparse, for handling args
  • Icon made by me;
  • You, for using my application!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL