https://github.com/danielah05/hevc2h264
A Discord Bot that automatically converts HEVC videos to H264 for better compatibility.
https://github.com/danielah05/hevc2h264
discord-bot ffmpeg h264 hevc
Last synced: 5 months ago
JSON representation
A Discord Bot that automatically converts HEVC videos to H264 for better compatibility.
- Host: GitHub
- URL: https://github.com/danielah05/hevc2h264
- Owner: danielah05
- License: gpl-3.0
- Created: 2025-02-19T12:04:58.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-18T00:08:28.000Z (7 months ago)
- Last Synced: 2025-03-30T00:11:19.151Z (6 months ago)
- Topics: discord-bot, ffmpeg, h264, hevc
- Language: JavaScript
- Homepage:
- Size: 993 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hevc2h264
A Discord Bot that automatically converts HEVC videos to H264 for better compatibility.
## What's the point?
Yes, I know, the bot instantly sounds pointless and useless, but there is a really good reason why I ended up making this however.To keep it short, HEVC is a fine codec, but however does not have the best compatibility, especially on Discord.
On Windows, it is a completely mixed bag, with some instances requiring you to purchase a HEVC media extension from the Microsoft Store.
On Linux, it is even worse, with the official Discord Client having absolutely no support for HEVC, making every video posted completely unwatchable, forcing you to download it and watch it in a video player.
If you are also not using a Chromium Browser (aka Firefox or any fork) you are completely out of luck as that does not have any HEVC support either.
Development on this bot started because in a few friend servers I am in, HEVC is becoming a more commonly used format for videos, either because of the smaller file size, or because of whatever video recording software they are using defaulting to it.
This started annoying me and other people in there, as we actively have problems watching the videos posted to the chat, so this bot is basically my bandage solution, and hopefully other people will find it useful as well.
## Self Hosting
This will not go over how to create a bot in the Discord Developer Portal.Requirements:
- [FFmpeg](https://www.ffmpeg.org/)
- [Node.js](https://nodejs.org/en)
- [discord.js](https://discord.js.org/)Create a `config.json` file in the root folder that is structured like this (with "TOKEN-GOES-HERE" being replaced by your bots token):
```
{
"token": "TOKEN-GOES-HERE"
}
```Run `node .` in the root folder with your terminal to start running the bot.
## Credits
- [famfamfam-silk](https://github.com/legacy-icons/famfamfam-silk) - Icons## Big thanks to my Ko-fi supporters!
spaceashes
Dionicio3
scotty!
LeaPhant
InvoxiPlayGames