deh-cheesekake
deh-cheesekake

Reputation: 31

ffmpeg encode H.264 with Nvidia hardware encoder

I have a GTX 660 with nvidias fancy hardware H.264 encoder, I also have a bunch of video files I would like to encode into H.264. Is it possible to tell ffmpeg to use my hardware H.264 encoder instead of my CPU for encoding video?

Upvotes: 2

Views: 3147

Answers (3)

Ivan Kolesnikov
Ivan Kolesnikov

Reputation: 1811

You need to configure ffmpeg with -enable-nvenc key and use -vcodec nvenc
Please read this documentation for more information.

Upvotes: 1

Paul Melis
Paul Melis

Reputation: 41

Apparently, ffmpeg 2.6 now includes support (from http://git.videolan.org/?p=ffmpeg.git;a=blob;f=RELEASE_NOTES;hb=release/2.6):

A lot of people will probably be happy to hear that we now 
have support for NVENC — the Nvidia Video Encoder interface for 
H.264 encoding — thanks to Timo Rothenpieler, with some little 
help from NVIDIA and Philip Langdale.

Upvotes: 3

Wagner Patriota
Wagner Patriota

Reputation: 5684

There's no built-in solution with FFmpeg.

But it's possible if you code using the NVIDIA SDK. I did it by myself. But the quality of the NVIDIA H.264 HE is terrible compared to libx264. I didn't find anyone else that got satisfied with the results... :-(

Upvotes: 3

Related Questions