GithubHelp home page GithubHelp logo

bb33bb / ytdlp-gui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bksalman/ytdlp-gui

0.0 0.0 0.0 37.48 MB

a GUI for ytdlp written in Rust

License: GNU General Public License v3.0

Shell 1.75% Rust 93.16% Nix 5.09%

ytdlp-gui's Introduction

ytdlp-gui

a GUI for yt-dlp written in Rust

Preview

2023-07-29_16-52_1 2023-07-29_16-49 2023-07-29_16-52

Installation

Linux

NixOS (Flake)

you can use the flake.nix in the repo

in your flake.nix:

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";

    ytdlp-gui = {
      url = "github:bksalman/ytdlp-gui";
    };
  };

    outputs = { nixpkgs, ytdlp-gui, ...}:
    let
      system = "x86_64-linux";

      pkgs = import nixpkgs {
        inherit system;
        overlays = [
          ytdlp-gui.overlay
        ];
      };
    in
    {
      ...snip

then you can add it as a normal package, either to your home-manager or nixosConfiguration

Fedora

download the rpm package from the releases page then install it with sudo dnf localinstall <rpm_package_name>

Ubuntu

download the deb package from the releases page then install it with sudo apt install ./<deb_package_name>

Arch

Available in the AUR ytdlp-gui

other distributions

1- download yt-dlp

either

      a- from your distribution repo

      b- or download the binary, then move it to your bin directory, and make it an executable by running chmod +x <bin_file>

2- download ffmpeg or ffmpeg-free from your distribution repos

3- download the ytdlp-gui binary from the realeases page

Windows

just download the zip file from the releases page, extract it in a subfolder and start the ytdlp-gui.exe

Build from source

to build from source you need to have cargo and rustc, you can install them through rustup (rust toolchain manager), or from your distribution repos, whatever you like

after that run the following commands:

# clone the repository to "ytdlp-gui" folder
git clone https://github.com/BKSalman/ytdlp-gui
# enter the folder
cd ytdlp-gui
# you can either build the project using this
cargo build
# or build it in release mode for better performance
cargo build -r

then the binary will be either in <project-root>/target/debug/ytdlp-gui or <project-root>/target/release/ytdlp-gui

and you can either run it directly:

# from project root
./target/release/ytdlp-gui

or using cargo:

cargo r
# or for release mode
cargo r -r

Configuration

For v0.2.2+ the application saves configuration in the default config directory for the respective platform/OS in <config_dir>/ytdlp-gui/config.toml

the default file looks like this:

# Optional
# This is the directory of the bin, not the bin itself
# bin_path = "<some_cool_path>" # (0.2.4)

bin_dir = "<some_cool_path>" # (0.2.5+) if not set the command will be `yt-dlp <app_args>`

# Optional
download_folder = "<some_cool_path>" # default = "~/Videos"

[options]
video_resolution = "FullHD" # options: "Sd" "Hd" "FullHD" "TwoK" "FourK"
video_format = "Mp4" # options: "Mp4" "Mkv" "Webm"
audio_quality = "Good" # options: "Best" "Good" "Medium" "Low"
audio_format = "Mp3" #  options: "Mp3" "Wav" "Vorbis" "M4a" "Opus"

Note: the quality/format options get automatically saved when pressing the download button

Contribution

All contribution forms are welcomed, whether it's Pull requests, Issues (bug reports/enhancement requests)

However, I might not be quick to reply to them, or implement the requested stuff, since I'm focusing on other things

But I will do my best 👍

ytdlp-gui's People

Contributors

bksalman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.