Repository navigation
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
Conversation
…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]>
|
|
||
| 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().""" |
There was a problem hiding this comment.
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.""" |
There was a problem hiding this comment.
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.""" |
There was a problem hiding this comment.
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.
dagil-nvidia
left a comment
There was a problem hiding this comment.
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.
Summary
release/1.5.1.container/deps/requirements.{vllm,sglang,trtllm}.txtconflicted, because main has aredisline from feat(multimodal): shared encoded-image cache with session scoping #14676 next to the PyNvVideoCodec line, andrelease/1.5.1does not have feat(multimodal): shared encoded-image cache with session scoping #14676. This pick keeps the new comment and the==2.2.3pin from build(container): pin PyNvVideoCodec at 2.2.3 and move the in-tree FFmpeg to 9.0.1 (DYN-4044) #14925, and does not addredis.container/templates/trtllm_runtime.Dockerfileconflicted, because chore: OPS-8654 bump trtllm to v1.3.0rc27 #15060 rewrote the pip resolver note on main for TensorRT-LLM1.3.0rc27. This pick keeps the note from build(container): pin PyNvVideoCodec at 2.2.3 and move the in-tree FFmpeg to 9.0.1 (DYN-4044) #14925 and quotes1.3.0rc25. The trtllm-runtime build of release: set version 1.5.1 #15370 prints that line:tensorrt-llm 1.3.0rc25 requires PyNvVideoCodec~=2.1.0, but you have pynvvideocodec 2.2.3 which is incompatible.rc25, notrc28. In vLLM 0.28.0, the PyNvVideoCodec consumer isvllm/multimodal/video.py, notvllm/multimodal/video_decoders/pynvvideocodec.py.release/1.5.1keeps TensorRT-LLM1.3.0rc25.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.Dockerfileandvllm_runtime.Dockerfilediffer only in the lines above.The tests ran with
--network nonein the5a28947ec6runtime-test images from the CI run of fix(release): backport IPv6 fixes to 1.5.1 #15430, which isrelease/1.5.1plus the changes of fix(release): backport IPv6 fixes to 1.5.1 #15430. The CI images ofrelease/1.5.1itself are no longer in the registry. Each tree ran the same test list in the same image:release/1.5.1test_nvdec_decoder.pyandtest_nvdec_decoder_gpu.py(GPU decode)container/compliance/tests/test_scan_codecs.pytests/dependencies/test_pynvvideocodec_spec.py,test_ffmpeg_version_consistency.pyCopied onto
release/1.5.1, the two new test files fail 8 of 13, and the newtest_scan_codecs.pyfails 3 of 23, as expected.In the same images, PyNvVideoCodec is 2.2.3, bundles
libavformat.so.63andlibavutil.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 --lockedpasses 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 8passes fordynamo-llmandlib/bindings/python, with and withoutmedia-ffmpeg.cargo test -p dynamo-llm --locked --no-default-features --features media-ffmpeg --lib -- preprocessor::mediapasses 65 of 65 against the suffixed FFmpeg 9.0.1, and the test binary linkslibavformat_dynamo.so.63. Theffmpeg-next8.1.0 ofrelease/1.5.1does 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:
--build-suffix=_dynamo./usr/local/libholds onlylib*_dynamonames.dynamo/_core.abi3.solinkslibavformat_dynamo.so.63and three other_dynamolibraries from/usr/local/lib.dynamo.llmfirst andPyNvVideoCodecfirst, NVDEC decodes both fixture clips to(8, 240, 320, 3)uint8. The process maps bothlibavformat_dynamo.so.63and thelibavformat.so.63of PyNvVideoCodec.scan_codecsstep of thelicensesstage reports 0 violations, 6 exceptions and 36 allowed in-tree files. Therelease/1.5.1build 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-filespasses.🤖 Generated with Claude Code