discord video uploader written in golang. A simple way to host your video on Discord via the HLS method.
- A application in the Discord Developer Portal
- FFmpeg installed to your
PATH
- Download binaries from Release page.
- Open terminal in the folder have
discord-vugo
binary then type./discord-vugo.exe
(orchmod +x ./discord-vugo
then./discord-vugo
in Linux) - On the first run, it will create the configuration file
discord-vugo-config.yaml
. - Open the
discord-vugo-config.yaml
file with Notepad (or your favorite IDE likeVisual Studio Code
,Vim
,nano
,...). - You may check out the Configuration section below.
Use those options in discord-vugo-config.yaml
Type: string
Description: Bot token, claim it from Discord Developer Portal. How to get bot token
Type: string
Description: Channel ID to upload file into it, right click to a channel you need to get ID, click Copy Channel ID
. Make sure you add your bot to the server and give your bot permission to send attachments to that channel in your server.
Type: string
Description: Input file path to upload. Optional if you pass it via -i
argument.
Type: string
Default: ./output.m3u8
Description: Output playlist file path. Can pass it via -o
argument.
Type: boolean
Default: false
Description: Enable proxy URL.
Type: boolean
Description: Required if use_proxy
is enabled. Endpoint proxy will write to playlist file. Example with https://example.com/proxy?url=
, output in the playlist file will be https://example.com/proxy?url=https%3A%2F%2Fcdn.discordapp.com%2Fattachments%2F1145752139927388313%2F1146790582899978340%2FSuisei_is_Talalala.mp4%3Fex%3D65ce09f5%26is%3D65bb94f5%26hm%3D3ab28624177860467514e24543d7cd34a6a87ed278e06003f679b58052860cde%26
Type: string
Default: 5
Description: Set the target segment length. See more: https://ffmpeg.org/ffmpeg-all.html#toc-Options-67 hls_time
Usage: discord-vugo <arg> <value>
-i <input file path>
: Required. Input file path to upload. Optional if you pass it via input_file
option in configuration file.
-o <output file path>
: Optional. Default ./output.m3u8
. Output playlist file path. Can pass it via output_file
option in configuration file.
-
Go to Discord Developer Portal
-
Click
New Application
-
Enter a name you want (of course bruh), remember to agree Discord TOS :)
-
Go to
Bot
at sidebar -
Click
Reset Token
-
Enter 2FA code if you have
-
Copy the new token
Windows
Via Chocolatey
choco install ffmpeg
Linux
# Ubuntu, Debian,...
sudo apt install ffmpeg
# CentOS
yum install ffmpeg
# Arch Linux
pacman -S ffmpeg