{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/2"}],"enrichment":{"capability":"TorchCodec decodes and encodes videos, audio, and images to and from tensors on CPU and CUDA GPUs, wrapping FFmpeg for video/audio and providing native image codecs.","skillfed_tags":["media-processing","gpu-accelerated"],"use_cases":["Extract video frames as tensors for training models on video datasets","Decode audio to tensors for speech or music processing in pipelines","Batch-load images in multiple formats (JPEG, PNG, WebP) directly to GPU","Encode outputs back to video or audio files with precise frame/sample timing","Build data loaders that stream video frames with accurate presentation timestamps"],"what_it_does":"TorchCodec is a library that converts video, audio, and image files into tensors and back. It wraps FFmpeg for video and audio decoding/encoding, providing Pythonic APIs that abstract FFmpeg's complexity while supporting both CPU and CUDA GPU acceleration. The library returns data as tensors ready for transforms or model training, with metadata like frame counts, timestamps, and codec information.\n\nThe package handles video frame indexing by frame number or playback time, batch frame extraction with timing metadata, and image decoding/encoding in multiple formats (JPEG, PNG, WebP, GIF, AVIF, HEIC). FFmpeg is optional\u2014image codecs work without it\u2014but video and audio work requires FFmpeg 4\u20139 installed on your system. CUDA support depends on GPU hardware with NVDEC/NVENC capabilities.","worth_installing":"Yes, if you need to work with video, audio, or images in a media pipeline. TorchCodec is actively maintained (release 1 day old), has no known vulnerabilities, and integrates cleanly into workflows. Install friction is moderate due to compiled wheels and optional FFmpeg dependency, but both are straightforward. License status is unclear, so verify licensing terms before use in proprietary projects."},"id":"torchcodec","links":{"html":"https://skillfed.io/packages/torchcodec","md":"https://skillfed.io/packages/torchcodec.md","pypi":"https://pypi.org/project/torchcodec/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-13","license_spdx":null,"license_treatment":"unclear","name":"torchcodec","python_support":"supports_current","summary":"A video decoder for PyTorch"},"popularity":{"monthly_downloads":4207756,"position":2362,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.16.0"}
