zimbatm/ffmpeg-static

NVENC

Zalewa opened this issue · 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.

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 :-)

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.

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

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

ivo95v commented

Did someone reslove the issue