You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add h264_nvenc support to static FFmpeg build
Install nv-codec-headers (SDK 11.1.5.3) before FFmpeg so that
h264_nvenc is compiled into the static libavcodec. FFmpeg uses
dlopen to load libnvidia-encode.so.1 at runtime, so no GPU or
CUDA toolkit is needed in the build container. On hosts without
an NVIDIA driver tenboxd falls back to libx264 automatically.
Pin to nv-codec-headers 11.1.x (not 12.x) because FFmpeg 6.1.1's
nvenc.c still references _PL buffer format names that were removed
in SDK 12.0; upgrading to 12.x headers causes compile errors.
Co-authored-by: Cursor <cursoragent@cursor.com>
# before FFmpeg so ./configure detects ffnvcodec and enables h264_nvenc.
166
+
# FFmpeg dlopen()s libnvidia-encode.so.1 at runtime; no GPU or CUDA
167
+
# toolkit is required here in the build container.
168
+
RUN curl -fsSL "https://github.com/FFmpeg/nv-codec-headers/releases/download/n${NV_CODEC_HEADERS_VERSION}/nv-codec-headers-${NV_CODEC_HEADERS_VERSION}.tar.gz" \
169
+
| tar xz \
170
+
&& cd nv-codec-headers-${NV_CODEC_HEADERS_VERSION} \
171
+
&& make install PREFIX=$DEPS_PREFIX \
172
+
&& cd .. && rm -rf nv-codec-headers-${NV_CODEC_HEADERS_VERSION}
173
+
155
174
# FFmpeg: only the codecs tenbox actually uses (libx264 encode, h264
0 commit comments