Hello, I'm using a machone of FFmpeg n3.4 verison and 2 Nvidia P4 devices. As a wiki page of HwAcceleration(https://trac.ffmpeg.org/wiki/HWAccelIntro), I known that I could be select hw device using "-hwaccel device" option. However It seems hwaccel_device options doesn't work me when I use filter_complex what included hwupload_cuda.
In case of below example, first deivce(index is 0) is always busy for encoding job while second device is always free. I think it would be a problem because I couldn't load balancing the encoding request to the Gpu devices. Could you tell me how can I select gpu device with FFmpeg CLI in this problem? Thanks BRs PS. Sorry to low english skills *====================================================* *Below is the information what needed to test.* 1. "nvidia-smi -a -q -d utilization" command gave me what number of device are working now. 2. Nvidia driver : 384.81, Cuda : 9.0 3. OS : CentOS 6.9 CPU : Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz * 32 RAM : 128GB, 4. Input media is like this Duration: 00:01:37.58, start: 0.000000, bitrate: 1642 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1507 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) *====================================================* *Below is test command* 1. The first gpu device(index is 0) is always working although input option is hwaccel_device 1. $) ffmpeg -hwaccel_device 1 -y -i ./input.mp4 -filter_complex "[0:v]hwupload_cuda,scale_npp=w=960:h=540:format=yuv420p:interp_algo=lanczos,setsar=1[map0]" -map [map0] -c:v h264_nvenc -vprofile high -map 0:a -c:a copy ./output.mp4 2. If I remove "hwupload_cuda" options in filter_complex, hwaccel_device option works well. $) ffmpeg -hwaccel_device 1 -hwaccel cuvid -y -c:v h264_cuvid -i ./input.mp4 -filter_complex "[0:v]scale_npp=w=960:h=540:format=yuv420p:interp_algo=lanczos,setsar=1[map0]" -map [map0] -c:v h264_nvenc -vprofile high -map 0:a -c:a copy ./output.mp4 _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".