Ffmpeg Nvenc GPU decode still use much more cpu resource

classic Classic list List threaded Threaded
4 messages Options
dd
Reply | Threaded
Open this post in threaded view
|

Ffmpeg Nvenc GPU decode still use much more cpu resource

dd


Dear my friend,

We replace cpu with gpu to ffmpeg recently, met a performance problem.
As the following problem Code:
ffmpeg -hwaccel_device 2 -hwaccel cuvid -i a.mp4 -vf “scale=1080:720,overlay=()” -gpu 2  -c:v h264_nvenc out.mp4

it use much more cpu resource, but a little gpu, it is not we want. see the attachment picture.

Also if with the “scale_npp” parameter not scale, it’s ok, but can not support video of 10 bit.
How to support 10bit video, or how can I do to use more gpu resource?

Hope your help, thanks a lot!




 
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

DEE02A7C-5E78-4471-A685-21BB72390249.jpeg (237K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ffmpeg Nvenc GPU decode still use much more cpu resource

Carl Zwanzig
Hello,

On 12/25/2018 8:09 AM, dd wrote:
> We replace cpu with gpu to ffmpeg recently, met a performance problem.
> As the following problem Code:
> ffmpeg -hwaccel_device 2 -hwaccel cuvid -i a.mp4 -vf “scale=1080:720,overlay=()” -gpu 2  -c:v h264_nvenc out.mp4
>
> it use much more cpu resource, but a little gpu, it is not we want. see the attachment picture.

You need to make sure you're using a current, or at least recent, version of
ffmpeg and also to post the entire command output from the command you use.

Later,

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
dd
Reply | Threaded
Open this post in threaded view
|

Re: Ffmpeg Nvenc GPU decode still use much more cpu resource

dd

The command is:
ffmpeg -hwaccel_device 1 -hwaccel cuvid -c:v h264_cuvid -y -i a.mkv -b:v 768k -r 25 -acodec libfdk_acc -ac 2 -b:a 96k -ar 44100 -vf ‘scale_npp=854:480,hwdownload,format=nv12’ -c:v h264_nvenc b.mp4
 
The error is:
Bit depth 10 is not supported.
The video probe information:
bits_per_raw_sample=10

> 在 2018年12月26日,00:36,Carl Zwanzig <[hidden email]> 写道:
>
> Hello,
>
>> On 12/25/2018 8:09 AM, dd wrote:
>> We replace cpu with gpu to ffmpeg recently, met a performance problem.
>> As the following problem Code:
>> ffmpeg -hwaccel_device 2 -hwaccel cuvid -i a.mp4 -vf “scale=1080:720,overlay=()” -gpu 2  -c:v h264_nvenc out.mp4
>> it use much more cpu resource, but a little gpu, it is not we want. see the attachment picture.
>
> You need to make sure you're using a current, or at least recent, version of ffmpeg and also to post the entire command output from the command you use.
>
> Later,
>
> z!
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
dd
Reply | Threaded
Open this post in threaded view
|

Re: Ffmpeg Nvenc GPU decode still use much more cpu resource

dd

The command use a little gpu resource which show in my last picture as following:

ffmpeg -hwaccel_device 1 -hwaccel cuvid -y -i a.mkv -b:v 768k -r 25 -acodec libfdk_acc -ac 2 -b:a 96k -ar 44100 -vf ‘format=nv12,scale=854:480:force_original_aspect_ratio=decrease,pad=w=854:h=480’ -c:v h264_nvenc -gpu 1 b.mp4

Thanks a lot for your reply.

> 在 2018年12月26日,01:21,unicor <[hidden email]> 写道:
>
>
> The command is:
> ffmpeg -hwaccel_device 1 -hwaccel cuvid -c:v h264_cuvid -y -i a.mkv -b:v 768k -r 25 -acodec libfdk_acc -ac 2 -b:a 96k -ar 44100 -vf ‘scale_npp=854:480,hwdownload,format=nv12’ -c:v h264_nvenc b.mp4
>
> The error is:
> Bit depth 10 is not supported.
> The video probe information:
> bits_per_raw_sample=10
>
>> 在 2018年12月26日,00:36,Carl Zwanzig <[hidden email]> 写道:
>>
>> Hello,
>>
>>> On 12/25/2018 8:09 AM, dd wrote:
>>> We replace cpu with gpu to ffmpeg recently, met a performance problem.
>>> As the following problem Code:
>>> ffmpeg -hwaccel_device 2 -hwaccel cuvid -i a.mp4 -vf “scale=1080:720,overlay=()” -gpu 2  -c:v h264_nvenc out.mp4
>>> it use much more cpu resource, but a little gpu, it is not we want. see the attachment picture.
>>
>> You need to make sure you're using a current, or at least recent, version of ffmpeg and also to post the entire command output from the command you use.
>>
>> Later,
>>
>> z!
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".