Utility to compress NvidiaGameHighlight videos with the option to upload videos to discord channel via webhook
Install using the install.sh script
sh install.shor
chmod +x install.sh
./install.shUse cli to operate in cli mode
python main.py cli --webhook_url WEBHOOK_URL [--input_dir INPUT_DIR] [--output_dir OUTPUT_DIR] [--interval INTERVAL] [--delete_flag DELETE_FLAG]--webhook_urloption:- Shorthand:
-w - Type:
String - Required:
True - Description: The URL of your discord channel.
- Shorthand:
--input_diroption:- Shorthand:
-i - Type:
String - Default:
~\Users\<USER_NAME>\Videos\NvidiaHighlights\ - Required:
False - Description: Input Directory for videos to be compressed.
- Shorthand:
--output_diroption:- Shorthand:
-o - Type:
String - Default:
~\Users\<USER_NAME>\Videos\Compressed\ - Required:
False - Description: Output Directory where compressed videos will be placed.
- Shorthand:
--intervaloption:- Shorthand:
-in - Type:
int - Default:
3 - Required:
False - Description: Time Interval which vidoes will be compressed on.
- Shorthand:
--delete_flagoption:- Shorthand:
-d - Type:
boolean - Default:
False - Required:
False - Description: Flag that indicates whether or not to delete files in
input_dirafter compressing.
- Shorthand:
Use env to operate in env mode.
python main.py envSame as cli mode, but the options will be pulled from a .env file.
must have .env file present
Example .env file
WEBHOOK_URL=https://discord.com/api/webhooks/dummy_webhook
INTERVAL=5
INPUT_DIRECTORY=C:\Users\Test User\Videos\NvidiaHighlights
OUTPUT_DIRECTORY=C:\Users\Test User\Videos\Compressed
DELETE_FLAG=TrueWEBHOOK_URLoption:- Type:
String - Required:
True - Description: The URL of your discord channel.
- Type:
INPUT_DIRECTORYoption:- Type:
String - Default:
~\Users\<USER_NAME>\Videos\NvidiaHighlights\ - Required:
False - Description: Input Directory for videos to be compressed.
- Type:
OUTPUT_DIRECTORYoption:- Type:
String - Default:
~\Users\<USER_NAME>\Videos\Compressed\ - Required:
False - Description: Output Directory where compressed videos will be placed.
- Type:
INTERVALoption:- Type:
int - Default:
3 - Required:
False - Description: Time Interval which vidoes will be compressed on.
- Type:
DELETE_FLAGoption:- Type:
boolean - Default:
False - Required:
False - Description: Flag that indicates whether or not to delete files in
input_dirafter compressing.
- Type: