0

I generally use ffmpeg for encode in h264 and also resize media

My common command is something like:

ffmpeg -i in.mov -c:v libx264 -preset ultrafast -b:v 5000k -s:v 1280x720 out.mov

I have an Nvidia GeForce 1060 card.

I also use the Zeranoe Builds or various generated with the crosscompile scripts (but i'm not very pro with it)

What i would like to know is:

1) It is possible to SCALE for example from 4k or FHD (1080p) to HD (720p) by taking advantage of GPU acceleration instead of using the normal SCALE ? It is possible also to specify if use bicubic, bilinear and so on?

2) It is possible to encode in h264 faster by taking advantage of GPU acceleration ?

And what syntax/options to specify in ffmpeg to do so.

Thanks in advance.

1 Answer 1

2

The answer to your second question is yes. Change -c:v libx264 to -c:v h264_nvenc. I use those builds as well. If you use the option -encoders you can see a list of included video and audio codecs. This is a good resource for encoding with FFMPEG.

See the warning on this question if you try this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.