Overview of TorchCodec
mainTorchCodec is a Python library designed to decode video and audio data directly into PyTorch tensors on both CPU and CUDA GPU. It also provides encoding capabilities for audio, video, and images.
Key features include:
- PyTorch Integration: Returns data as PyTorch tensors, making it ready for use in PyTorch transforms or ML model training.
- FFmpeg Backend: Leverages the FFmpeg version installed on your system to handle complex decoding/encoding tasks while providing a simplified, Pythonic API.
- Hardware Acceleration: Supports decoding and encoding on both CPU and CUDA GPUs.