-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4600a77
commit bb73d10
Showing
1 changed file
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
# Shitrate!!! | ||
Reduces the bitrate of a video / stream as audio increases. | ||
## Shitrate!! - Decreases the bitrate of an OBS recording / stream as audio increases. | ||
Releases | ||
### Requirements: | ||
- OBS Studio | ||
- Python 3.6 | ||
- The script!! | ||
|
||
Two versions are included in this repo, | ||
###About | ||
There are two scripts included in this repo, `shitrate.py` and `shitrate-peaks.py`. | ||
- **shitrate.py** will decrease the bitrate directly according to volume levels. | ||
- **shitrate-peaks.py** will decrease the bitrate according to jumps in average volume. | ||
|
||
Whichever one you choose is based on personal preference and the effect you are going for. Peaks allows for a more watchable experience while decreasing the bitrate during loud moments for comedic effect while shitrate tends to be more purely chaotic but more accurate to what this project is intended to be. | ||
|
||
###Setup | ||
1. Open OBS, go to Tools > Scripting | ||
2. Make sure you have the install path to Python 3.6 correctly listed under *Python Settings* | ||
3. Add the script using the "+" icon. | ||
4. Add all audio sources you want the script to pull volume levels from. | ||
5. Begin recording / streaming! The script automatically enables. | ||
|
||
###Tips | ||
- Make sure all sources added are **audio** sources. The script lists all sources at a time, however only audio sources (the ones listed under the *Audio Mixer* tab in OBS) will correctly give volume data. | ||
- Set the maximum bitrate higher than you normally would (~1000+ kbps). | ||
- To minimize how much background noise or generally low noises effect the output bitrate, try increasing the dampening. The minimum dampening value gives a straight linear relationship between volume levels and the bitrate while higher dampening causes volume to follow a concave down quadratic relationship to the bitrate. | ||
- The default dampening and bitrate values are what I personally found working following [OBS's audio mixer guide](https://obsproject.com/kb/audio-mixer-guide "OBS' audio mixer guide"). | ||
[](https://obsproject.com/kb/audio-mixer-guide "OBS' general guide for where sound levels should be placed in the audio mixer.") | ||
- Have fun 🙂 |