Skip to content

build(container): [cherry-pick 1.5.1] pin PyNvVideoCodec at 2.2.3 and move the in-tree FFmpeg to 9.0.1 (DYN-4044) (#14925) - #15669

Merged
nv-nmailhot merged 1 commit into
release/1.5.1from
dtokarev/cp-14925-151
Oct 5, 2026
Merged

nv-nmailhot merged 1 commit into
release/1.5.1from
dtokarev/cp-14925-151

Conversation

@dmitry-tokarev-nv

Copy link
Copy Markdown
Contributor

Summary

Validation

  • Diff against build(container): pin PyNvVideoCodec at 2.2.3 and move the in-tree FFmpeg to 9.0.1 (DYN-4044) #14925: 17 of the 19 files have the same added and removed lines as 895d78c526. trtllm_runtime.Dockerfile and vllm_runtime.Dockerfile differ only in the lines above.

  • The tests ran with --network none in the 5a28947ec6 runtime-test images from the CI run of fix(release): backport IPv6 fixes to 1.5.1 #15430, which is release/1.5.1 plus the changes of fix(release): backport IPv6 fixes to 1.5.1 #15430. The CI images of release/1.5.1 itself are no longer in the registry. Each tree ran the same test list in the same image:

    Tests Image release/1.5.1 This branch
    test_nvdec_decoder.py and test_nvdec_decoder_gpu.py (GPU decode) vLLM, SGLang, TensorRT-LLM 37 passed in each 37 passed in each
    container/compliance/tests/test_scan_codecs.py dynamo-runtime 22 passed 23 passed
    tests/dependencies/test_pynvvideocodec_spec.py, test_ffmpeg_version_consistency.py vLLM, SGLang, TensorRT-LLM, dynamo-runtime not present 13 passed in each

    Copied onto release/1.5.1, the two new test files fail 8 of 13, and the new test_scan_codecs.py fails 3 of 23, as expected.

  • In the same images, PyNvVideoCodec is 2.2.3, bundles libavformat.so.63 and libavutil.so.61, and reports FFmpeg 9.0.1. The vLLM and SGLang install checks from this branch pass there. If the pin in them is 2.2.2 instead, they fail.

  • cargo metadata --locked passes in all four lockfile directories. It also passes on a merge with fix(release): backport IPv6 fixes to 1.5.1 #15430. cargo check --locked -j 8 passes for dynamo-llm and lib/bindings/python, with and without media-ffmpeg. cargo test -p dynamo-llm --locked --no-default-features --features media-ffmpeg --lib -- preprocessor::media passes 65 of 65 against the suffixed FFmpeg 9.0.1, and the test binary links libavformat_dynamo.so.63. The ffmpeg-next 8.1.0 of release/1.5.1 does not compile against FFmpeg 9.0.1, so the crate bump is required.

  • A local build of the vLLM runtime image (CUDA 13.0, amd64) from this branch passes. In that image:

    • The in-tree FFmpeg is 9.0.1, configured with --build-suffix=_dynamo. /usr/local/lib holds only lib*_dynamo names.
    • dynamo/_core.abi3.so links libavformat_dynamo.so.63 and three other _dynamo libraries from /usr/local/lib.
    • The install removes the PyNvVideoCodec 2.0.4 of the base image and installs 2.2.3. The install check passes.
    • In both import orders, dynamo.llm first and PyNvVideoCodec first, NVDEC decodes both fixture clips to (8, 240, 320, 3) uint8. The process maps both libavformat_dynamo.so.63 and the libavformat.so.63 of PyNvVideoCodec.
    • The scan_codecs step of the licenses stage reports 0 violations, 6 exceptions and 36 allowed in-tree files. The release/1.5.1 build of release: set version 1.5.1 #15370 reports the same counts.

    The SGLang and TensorRT-LLM images are left to CI.

  • pre-commit run --all-files passes.

🤖 Generated with Claude Code

…mpeg to 9.0.1 (DYN-4044) (#14925)

Signed-off-by: Dmitry Tokarev <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
(cherry picked from commit 895d78c)

Conflict resolutions for release/1.5.1:

- container/deps/requirements.{sglang,trtllm,vllm}.txt: on main, #14676
  added a redis requirement after the PyNvVideoCodec line. release/1.5.1
  does not have #14676. Kept the comment and the ==2.2.3 pin from #14925,
  and did not add redis.
- container/templates/trtllm_runtime.Dockerfile: on main, #15060 rewrote
  the pip resolver note for TensorRT-LLM 1.3.0rc27. release/1.5.1 does
  not have #15060 and stays on 1.3.0rc25. Kept the note from #14925 and
  quoted 1.3.0rc25. The trtllm-runtime build of #15370 (job 109316218206)
  prints this line: "tensorrt-llm 1.3.0rc25 requires
  PyNvVideoCodec~=2.1.0, but you have pynvvideocodec 2.2.3 which is
  incompatible."

Comments changed to match release/1.5.1, outside the conflicts:

- container/templates/trtllm_runtime.Dockerfile: "the currently pinned
  rc28" is now "rc25", the pin in container/context.yaml. The same build
  log prints "PyNvVideoCodec in base image: 2.1.0" for 1.3.0rc25.
- container/templates/vllm_runtime.Dockerfile: the PyNvVideoCodec
  consumer in vLLM 0.28.0 is vllm/multimodal/video.py. The path on main,
  vllm/multimodal/video_decoders/pynvvideocodec.py, exists in vLLM 0.30.0
  and not in 0.28.0.

Signed-off-by: Dmitry Tokarev <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dmitry-tokarev-nv
dmitry-tokarev-nv requested review from a team as code owners October 5, 2026 20:38
@dmitry-tokarev-nv dmitry-tokarev-nv self-assigned this Oct 5, 2026
@dmitry-tokarev-nv
dmitry-tokarev-nv requested a review from a team as a code owner October 5, 2026 20:38

def test_source_fps_prefers_stream_metadata():
"""PyNvVideoCodec 2.2.0 reports the rate via get_stream_metadata()."""
"""PyNvVideoCodec reports the rate via get_stream_metadata()."""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test docstring only repeats that the test uses get_stream_metadata() to obtain the rate; the test name, setup, and assertion already show that behavior, and it does not record a lasting constraint.

🤖 AI Fix

Remove the redundant test docstring.



def main() -> int:
"""Script entry point for the pre-commit hook."""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This main() docstring only labels the function as the pre-commit hook entry point, which is already established by the module-level explanation, the if __name__ == "__main__" call, and the hook configuration.

🤖 AI Fix

Remove the redundant main() docstring.



def _template_install_specs(path: str) -> list[str]:
"""Requirement specifiers a template installs PyNvVideoCodec with."""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This helper docstring just expands _template_install_specs into a sentence; the function name and return type already state that it collects PyNvVideoCodec requirement specifiers from a template.

🤖 AI Fix

Remove the redundant helper docstring.

@github-actions github-actions Bot added backend::vllm Relates to the vllm backend backend::trtllm Relates to the trtllm backend multimodal container build labels Oct 5, 2026

@dagil-nvidia dagil-nvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for 1.5.1 RC1. Remaining CI failures are the pre-existing aggregated_lmcache_mp vllm test on release/1.5.1 and an SGLang tool-call token-cap flake, not these changes.

@nv-nmailhot
nv-nmailhot merged commit 71d679f into release/1.5.1 Oct 5, 2026
112 of 116 checks passed
@nv-nmailhot
nv-nmailhot deleted the dtokarev/cp-14925-151 branch October 5, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend::trtllm Relates to the trtllm backend backend::vllm Relates to the vllm backend build container multimodal size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants