Utility to compress NvidiaGameHighlight videos with the option to upload videos to discord channel via webhook
Install using the install.sh
script
sh install.sh
or
chmod +x install.sh
./install.sh
Use 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_url
option:- Shorthand:
-w
- Type:
String
- Required:
True
- Description: The URL of your discord channel.
- Shorthand:
--input_dir
option:- Shorthand:
-i
- Type:
String
- Default:
~\Users\<USER_NAME>\Videos\NvidiaHighlights\
- Required:
False
- Description: Input Directory for videos to be compressed.
- Shorthand:
--output_dir
option:- Shorthand:
-o
- Type:
String
- Default:
~\Users\<USER_NAME>\Videos\Compressed\
- Required:
False
- Description: Output Directory where compressed videos will be placed.
- Shorthand:
--interval
option:- Shorthand:
-in
- Type:
int
- Default:
3
- Required:
False
- Description: Time Interval which vidoes will be compressed on.
- Shorthand:
--delete_flag
option:- Shorthand:
-d
- Type:
boolean
- Default:
False
- Required:
False
- Description: Flag that indicates whether or not to delete files in
input_dir
after compressing.
- Shorthand:
Use env
to operate in env mode.
python main.py env
Same 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=True
WEBHOOK_URL
option:- Type:
String
- Required:
True
- Description: The URL of your discord channel.
- Type:
INPUT_DIRECTORY
option:- Type:
String
- Default:
~\Users\<USER_NAME>\Videos\NvidiaHighlights\
- Required:
False
- Description: Input Directory for videos to be compressed.
- Type:
OUTPUT_DIRECTORY
option:- Type:
String
- Default:
~\Users\<USER_NAME>\Videos\Compressed\
- Required:
False
- Description: Output Directory where compressed videos will be placed.
- Type:
INTERVAL
option:- Type:
int
- Default:
3
- Required:
False
- Description: Time Interval which vidoes will be compressed on.
- Type:
DELETE_FLAG
option:- Type:
boolean
- Default:
False
- Required:
False
- Description: Flag that indicates whether or not to delete files in
input_dir
after compressing.
- Type: