bitfire

Crates.iobitfire
lib.rsbitfire
version2.0.1
sourcesrc
created_at2023-06-25 01:33:24.431359
updated_at2023-06-25 01:33:24.431359
descriptionA tool to convert between resolutions and bitrates
homepagehttps://github.com/benraz123/res2br
repositoryhttps://github.com/benraz123/res2br
max_upload_size
id899236
size16,809
Ben Raz (BenRaz123)

documentation

README

bit🔥 - res2br clone

Description

bitfire is a tool that converts a resolution (like 480p) to a bitrate (like 300) and offers a switch between Mbps and Kbps.

Installation

To install, run

% cargo install bitfire

✨ new in 2.0.0! ✨ Configuration

With configuration, you can store a custom table as well you preference for using kbps with a config file. By default, bitfire will search ~/.config/bitfire/config.json for config. However, you can change this by changing the $BITFIRE_CONFIG environment variable or by passing in -c <PATH> or --config-path <PATH>. The json file recognizes 2 fields: "table" (a 'dictionary' or 'hashmap' consisting of strings and floats) as well as "use_kbps_by_default" (a boolean). The default configuration looks like this:

{
    "table": {
        "1080p": 3.000,
        "720p": 1.500,
        "540p": 0.989,
        "360p": 0.460,
        "270p": 0.327,
        "180p": 0.193
    },
    "use_kbps_by_default": false
}

Status

  • Started
  • Create core function
  • Allow switching
  • Stable release
  • Renamed
Commit count: 18

cargo fmt