| Crates.io | res2br |
| lib.rs | res2br |
| version | 2.0.3 |
| created_at | 2023-06-02 14:18:37.475055+00 |
| updated_at | 2023-09-14 20:28:07.539106+00 |
| description | A tool to convert between resolutions and bitrates |
| homepage | https://github.com/benraz123/res2br |
| repository | https://github.com/benraz123/res2br |
| max_upload_size | |
| id | 880879 |
| size | 16,780 |
res2br is a tool that converts a resolution (like 480p) to a bitrate (like 300) and offers a switch between Mbps and Kbps.
To install, run
% cargo install res2br
With configuration, you can store a custom table as well you preference for using kbps with a config file. By default, res2br will search ~/.config/res2br/config.json for config. However, you can change this by changing the $RES2BR_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
}