add amd support
This commit is contained in:
parent
e1aad3fb1e
commit
74b5be4e3b
2 changed files with 25 additions and 9 deletions
|
@ -20,15 +20,18 @@ Tool for sharing video to Discord.
|
||||||
You can add thoses flags in the `Target` field of your Windows shortcut.
|
You can add thoses flags in the `Target` field of your Windows shortcut.
|
||||||
|
|
||||||
| | |
|
| | |
|
||||||
| ------------- | ----------------------------------------------------- |
|
| ------------- | ------------------------------------------------------ |
|
||||||
| `/nitro` | Increase the file limit to 500Mo |
|
| `/nitro` | Increase the file limit to 500Mo |
|
||||||
| `/nitrobasic` | Increase the file limit to 50Mo |
|
| `/nitrobasic` | Increase the file limit to 50Mo |
|
||||||
| | |
|
| | |
|
||||||
| `/nvenc_h264` | Enable NVenc with H.264 encoder (NVidia GPU required) |
|
| `/nvenc_h264` | Enable NVenc with H.264 encoder (NVidia GPU required) |
|
||||||
| `/nvenc_h265` | Enable NVenc with H.265 encoder (NVidia GPU required) |
|
| `/nvenc_h265` | Enable NVenc with H.265 encoder (NVidia GPU required) |
|
||||||
|
| `/amd_h264` | Enable AMF using DX11 with H.264 encoder (for AMD GPU) |
|
||||||
|
| `/amd_h265` | Enable AMF using DX11 with H.265 encoder (for AMD GPU) |
|
||||||
| `/h265` | Enable the H.265 CPU encoder (slow compression) |
|
| `/h265` | Enable the H.265 CPU encoder (slow compression) |
|
||||||
|
|
||||||
> NVenc support is experimental, but faster than CPU counterparts.
|
> NVidia and AMD hardware accelerators support is experimental, but faster
|
||||||
|
> than CPU counterparts.
|
||||||
|
|
||||||
## More info
|
## More info
|
||||||
|
|
||||||
|
@ -38,6 +41,7 @@ You can add thoses flags in the `Target` field of your Windows shortcut.
|
||||||
- [x] Defaults to H.264 CPU encoder
|
- [x] Defaults to H.264 CPU encoder
|
||||||
- [x] If already under the limit, the file won't be compressed
|
- [x] If already under the limit, the file won't be compressed
|
||||||
- [x] NVenc support
|
- [x] NVenc support
|
||||||
|
- [x] AMD cards acceleration support
|
||||||
- [x] Nitro suppport
|
- [x] Nitro suppport
|
||||||
- [x] Merge 2 audio files into one track when recorded with system audio and microphone
|
- [x] Merge 2 audio files into one track when recorded with system audio and microphone
|
||||||
split up, while keeping the original ones (with conveniant metadata)
|
split up, while keeping the original ones (with conveniant metadata)
|
||||||
|
|
12
src/main.ts
12
src/main.ts
|
@ -182,12 +182,24 @@ app.whenReady().then(() => {
|
||||||
hwAcc = "-hwaccel cuda";
|
hwAcc = "-hwaccel cuda";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argv.includes("/amd_h264")) {
|
||||||
|
// Use AMF H.264
|
||||||
|
codec = "h264_amf";
|
||||||
|
hwAcc = "-hwaccel d3d11va";
|
||||||
|
}
|
||||||
|
|
||||||
if (argv.includes("/nvenc_h265")) {
|
if (argv.includes("/nvenc_h265")) {
|
||||||
// Use NVenc H.265
|
// Use NVenc H.265
|
||||||
codec = "hevc_nvenc";
|
codec = "hevc_nvenc";
|
||||||
hwAcc = "-hwaccel cuda";
|
hwAcc = "-hwaccel cuda";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argv.includes("/amd_h265")) {
|
||||||
|
// Use AMF H.265
|
||||||
|
codec = "hevc_amf";
|
||||||
|
hwAcc = "-hwaccel d3d11va";
|
||||||
|
}
|
||||||
|
|
||||||
if (argv.includes("/h265")) {
|
if (argv.includes("/h265")) {
|
||||||
// Use H.265 encoder
|
// Use H.265 encoder
|
||||||
codec = "libx265";
|
codec = "libx265";
|
||||||
|
|
Loading…
Reference in a new issue