2023-07-28 02:32:18 +02:00
|
|
|
# Discord Video Sharing
|
|
|
|
|
2024-01-16 19:46:21 +01:00
|
|
|
Tool for sharing video to Discord.
|
|
|
|
|
|
|
|
> This tool was primarily made for video captured by NVidia Shadowplay.
|
2023-08-24 16:07:55 +02:00
|
|
|
|
2023-11-11 14:39:49 +01:00
|
|
|
## Download/Install
|
|
|
|
|
|
|
|
2 choices :
|
|
|
|
|
|
|
|
- Manually head to [the release page](https://git.mylloon.fr/Anri/dsr/releases/latest).
|
|
|
|
- <details>
|
|
|
|
<summary>Download it via command lines</summary>
|
|
|
|
|
|
|
|
Copy and paste this snippet into the windows command prompt:
|
|
|
|
|
2023-11-11 17:25:29 +01:00
|
|
|
```batch
|
2023-11-11 14:39:49 +01:00
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$releases = 'https://git.mylloon.fr/api/v1/repos/Anri/dsr/releases/latest';" ^
|
|
|
|
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^
|
2023-11-11 17:25:29 +01:00
|
|
|
"$archive = '%TEMP%\dsr.zip';" ^
|
|
|
|
"Invoke-WebRequest -Uri $link -OutFile $archive;" ^
|
|
|
|
"Remove-Item '%LOCALAPPDATA%\DSR' -Recurse -ErrorAction SilentlyContinue;" ^
|
2023-11-11 14:39:49 +01:00
|
|
|
"Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\DSR' -Force;" ^
|
|
|
|
"Move-Item -Path '%LOCALAPPDATA%\DSR\dsr-win32-x64\*' -Destination '%LOCALAPPDATA%\DSR' -Force;" ^
|
2023-11-11 14:56:25 +01:00
|
|
|
"Remove-Item '%LOCALAPPDATA%\DSR\dsr-win32-x64';" ^
|
2023-11-11 14:39:49 +01:00
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^
|
|
|
|
"$Shortcut.TargetPath = '%LOCALAPPDATA%\DSR\dsr.exe';" ^
|
|
|
|
"$Shortcut.Save();" ^
|
|
|
|
"REG ADD 'HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr' /f /v DisplayName /t REG_SZ /d 'DSR';" ^
|
|
|
|
"REG ADD 'HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr' /f /v InstallLocation /t REG_SZ /d '%LOCALAPPDATA%\DSR'"
|
|
|
|
```
|
|
|
|
|
|
|
|
</details>
|
2023-08-24 16:07:55 +02:00
|
|
|
|
2023-12-02 23:56:32 +01:00
|
|
|
> - If you have Discord Nitro: add `/nitro` flag when running DSR.
|
|
|
|
> - If you have an NVidia GPU with NVenc: add `/nvenc` flag when running DSR.
|
|
|
|
|
2023-08-24 16:07:55 +02:00
|
|
|
## More info
|
|
|
|
|
|
|
|
- [x] KISS interface
|
|
|
|
- [x] Support drag&drop
|
|
|
|
- [x] Keep the video under 25mb (discord limitation)
|
2023-12-02 23:56:32 +01:00
|
|
|
- [x] NVenc support
|
2023-07-30 13:45:01 +02:00
|
|
|
- [x] If already under the limit, the file won't be compressed
|
2023-11-11 14:03:53 +01:00
|
|
|
- [x] Nitro suppport via `/nitro` flag
|
2023-08-24 16:07:55 +02:00
|
|
|
- [x] Merge all audio files into one track, while keeping the original ones (keeping track's title too)
|
2023-11-19 21:43:35 +01:00
|
|
|
- [x] Works with one-audio file too
|
2023-08-24 16:07:55 +02:00
|
|
|
- [x] Support multiples files
|
2024-01-16 19:46:21 +01:00
|
|
|
- [x] Optimize for video streaming
|
2023-07-29 14:29:14 +02:00
|
|
|
|
2023-07-29 15:38:03 +02:00
|
|
|
## Package the app for Windows
|
2023-07-29 14:29:14 +02:00
|
|
|
|
|
|
|
```bash
|
2023-07-31 13:27:57 +02:00
|
|
|
npm i --platform=win32
|
|
|
|
npm run make -- --platform=win32
|
2023-07-29 14:29:14 +02:00
|
|
|
```
|
2023-07-31 13:27:57 +02:00
|
|
|
|
|
|
|
It will create a ZIP folder in `./out/make`.
|