ffmpeg-static icon indicating copy to clipboard operation
ffmpeg-static copied to clipboard

NVENC

Open Zalewa opened this issue 7 years ago • 5 comments

NVENC is NVidia's hardware encoder that supports H264 and HEVC. It would be neat if ffmpeg was built with --enable-nvenc option so that this encoder can be used in the resulting build.

I already made attempts to enable this and in its current status ffmpeg does compile with --enable-nvenc, the nvenc_hevc and nvenc_h264 encoders are available, but if you try to use them in the static build it results in a segmentation fault. The encoders work fine when the --static ldexeflag is removed, but then the build is dynamic.

Zalewa avatar Jun 26 '18 09:06 Zalewa

not sure, i think it is impossible to statically link stuff that is available as a blob only.

Could be mistaken, and if i am, i'd greatly want a static nvenc binary as well :-)

turbomettwurst avatar Jul 02 '18 12:07 turbomettwurst

not sure, i think it is impossible to statically link stuff that is available as a blob only.

Could be mistaken, and if i am, i'd greatly want a static nvenc binary as well :-)

In case if nvenc can't work in static build, configure should at least make an attempt to detect that we're doing a static build and deny with appropriate error message.

Either way, this will have to be fixed upstream. If no one picks this up I'll eventually get around to doing it, I just have lots of other stuff going on right now.

Zalewa avatar Jul 02 '18 21:07 Zalewa

Was this ever revisited? I find myself in the same situation of battling my way to get a static ffmpeg build with nvenc.

ransagy avatar Jan 20 '20 16:01 ransagy

I have no idea. I have this static build that includes all the nvidia stuff from here but I have no idea how it was made image

itsTyrion avatar Feb 28 '22 13:02 itsTyrion

Did someone reslove the issue

ivo95v avatar Apr 19 '23 09:04 ivo95v