[FFmpeg-user] The option of -hwaccel device doesn't works well(FFmpeg n3.4)

Baek Seung Hoon seung51hoon at gmail.com
Mon Nov 6 04:12:09 EET 2017


Hello,

Sorry to my mistake for your reply ^^;

'device' option for hwupload_cuda is working well.

*1. Device option is 0 for hwupload_cuda*
 > ffmpeg -y -i ./input.mp4 -filter_complex
"[0:v]hwupload_cuda=device=0,scale_npp=w=960:h=540[map0]" -map "[map0]"
-c:v h264_nvenc -c:a copy ./output.mp4
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU
Memory |
|  GPU       PID   Type   Process name                             Usage
  |
|=============================================================================|
|    0    101825      C   ffmpeg
 147MiB |
+-----------------------------------------------------------------------------+

*2. Device option is 1 for hwupload_cuda*
 > ffmpeg -y -i ./input.mp4 -filter_complex
"[0:v]hwupload_cuda=device=1,scale_npp=w=960:h=540[map0]" -map "[map0]"
-c:v h264_nvenc -c:a copy ./output.mp4

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU
Memory |
|  GPU       PID   Type   Process name                             Usage
  |
|=============================================================================|
|    1    102185      C   ffmpeg
 147MiB |
+-----------------------------------------------------------------------------+

Thanks you for your detailed explanation.
Could I ask one things about "-hwaccel cuvid" option for related above
commands?


2017-11-06 1:41 GMT+09:00 James Girotti <james.girotti at gmail.com>:

> I wonder if Gpu devices can not be selected if hwupload_cuda filter is
> present.
>
> >
> > I think it's uploading to GPU 0 by default. There is an option 'device'
> for
> > hwupload_cuda. Could you try specifying the device for hwupload_cuda?
>
>
> Could you try the 'device' option for hwupload_cuda?
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list