zimbatm / ffmpeg-static

Scripts to build ffmpeg with all the deps statically (webm + h264 included)
ISC License
494 stars 245 forks source link

NVENC #81

Open Zalewa opened 6 years ago

Zalewa commented 6 years ago

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.

turbomettwurst commented 6 years ago

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

Zalewa commented 6 years ago

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.

ransagy commented 4 years ago

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

itsTyrion commented 2 years ago

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 1 year ago

Did someone reslove the issue