{"library":"torchcodec","type":"library","category":null,"description":"TorchCodec is a Python library developed by PyTorch that provides efficient video and audio decoding and encoding capabilities, tightly integrated with PyTorch tensors. It aims to simplify video and audio processing for machine learning workflows, supporting both CPU and GPU operations. The current version is 0.11.0, with new releases occurring approximately every 1-2 months.","language":"python","status":"active","version":"0.11.0","tags":["video","audio","pytorch","ffmpeg","decoding","encoding","multimedia","machine-learning"],"last_verified":"Thu May 21","install":[{"cmd":"pip install torchcodec","imports":["from torchcodec.decoders import VideoDecoder","from torchcodec.decoders import AudioDecoder","from torchcodec.encoders import VideoEncoder","from torchcodec.encoders import AudioEncoder","from torchcodec.transforms import Resize, RandomCrop","from torchcodec.decoders import set_cuda_backend"]},{"cmd":"conda install torchcodec -c conda-forge","imports":[]}],"homepage":null,"github":"https://github.com/pytorch/torchcodec","docs":"https://pytorch.org/torchcodec/stable/index.html","changelog":null,"pypi":"https://pypi.org/project/torchcodec/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":50,"avg_install_s":1.7,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/torchcodec/compatibility"}}