mic-rud / RABBIT-Transcoding

RABBIT: Live Transcoding of V-PCC Point Cloud Streams
Other
1 stars 2 forks source link

Multiple GPU Support? #3

Open WaterHyacinthInNANHU opened 9 months ago

WaterHyacinthInNANHU commented 9 months ago

Hi again! I am transcoding on a machine with 3 GPUs, so I tried to pass an additional parameter to specify the GPU to use, following hevc_nvenc options:

//PCCTranscoder.cpp
av_opt_set(encoder->avCdcCtx->priv_data, "gpu", std::to_string(params_.gpu_).c_str(), 0);

However, it still runs on the first GPU only even when I set params.gpu to 1 or 2. I wonder is it even possible for hevc_nvenc to work with multiple gpus?

mic-rud commented 8 months ago

This extension is likely more related to libav. However I couldn't find open discussion about how to properly select the GPU in avCodecContext.

If you solve it, I would appreciate a pull request! :)