ShayBox / Mon2Cam

Workaround for multi-monitor Discord screensharing
MIT License
338 stars 33 forks source link

Use dedicated GPU #65

Closed CDaut closed 3 years ago

CDaut commented 3 years ago

I have an eGPU, that I would like to use to encode mon2cams video stream. Is that possible? I guessed the -d flag might do it, but I havn't found out yet, what that does. Any help would be appreciated"

botiapa commented 3 years ago

Encoding is done on the cpu only. We decided that gpu encoding would need too much effort to implement. PR's are welcome though!

ShayBox commented 3 years ago

If you want gpu encoding the best option would be to recompile ffmpeg with the required flags and libraries for your gpu, that would enable it for your system, but the easiest solution yet is to use obs.

On Mon, Feb 15, 2021, 4:59 AM killswitch notifications@github.com wrote:

Encoding is done on the cpu only. We decided that gpu encoding would need too much effort to implement. PR's are welcome though!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ShayBox/Mon2Cam/issues/65#issuecomment-779106725, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIQTLAPC5CPTWZSAI3CYATS7DWADANCNFSM4XUMKAMQ .

botiapa commented 3 years ago

If you want gpu encoding the best option would be to recompile ffmpeg with the required flags and libraries for your gpu, that would enable it for your system, but the easiest solution yet is to use obs. On Mon, Feb 15, 2021, 4:59 AM killswitch @.***> wrote: Encoding is done on the cpu only. We decided that gpu encoding would need too much effort to implement. PR's are welcome though! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#65 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIQTLAPC5CPTWZSAI3CYATS7DWADANCNFSM4XUMKAMQ .

Even if he would recompile ffmpeg with support for gpu encoding, he would still have to mess around in the code to specify some flags.

CDaut commented 3 years ago

Doesn't it work if one would just add the -hwaccel flag to ffmpeg?

ShayBox commented 3 years ago

This was added in #66