Skip to main content

Intel extension for torchcodec

Project description

Intel Plugin for TorchCodec

Overview

TorchCodec is a high-performance Python library designed for media processing (decoding and encoding) using PyTorch* tensors. Intel® XPU plugin for TorchCodec enables hardware acceleration for video operations (only decoding at the moment) on Linux. Both TorchCodec and Intel® plugin rely on the FFmpeg libraries for their operations which must be pre-installed on the system. Intel® plugin further assumes that FFmpeg is built with the VAAPI support.

To use Intel® XPU plugin for TorchCodec, load it in the Python script and pass XPU device to initialize TorchCodec decoder or encoder:

import torchcodec
import torchcodec_xpu

decoder = torchcodec.decoders.VideoDecoder(
    "input.mp4", device="xpu:0")

Supported hardware

All the Intel GPU hardware enabled for XPU PyTorch backend with hardware media decoding capabilities is supported.

Environment variables

The following environment variables can be used to customize the behavior of Intel Plugin for TorchCodec:

  • USE_SYCL_KERNELS = on|off (default: off) - use SYCL kernels for augmentation such as color space conversion instead of VAAPI interface. If SYCL kernels are requested but can not be used due to hardware limitations, then fallback to VAAPI will be attempted.

  • FORCE_CPU_FALLBACL=on|off (default: off) - force CPU fallback.

Known limitations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

torchcodec_xpu-0.13.0-cp314-cp314-manylinux_2_24_x86_64.whl (265.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64

torchcodec_xpu-0.13.0-cp313-cp313-manylinux_2_24_x86_64.whl (265.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64

torchcodec_xpu-0.13.0-cp312-cp312-manylinux_2_24_x86_64.whl (265.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64

torchcodec_xpu-0.13.0-cp311-cp311-manylinux_2_24_x86_64.whl (265.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64

torchcodec_xpu-0.13.0-cp310-cp310-manylinux_2_24_x86_64.whl (265.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64

File details

Details for the file torchcodec_xpu-0.13.0-cp314-cp314-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: torchcodec_xpu-0.13.0-cp314-cp314-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 265.7 kB
  • Tags: CPython 3.14, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.18 CPython/3.10.12

File hashes

Hashes for torchcodec_xpu-0.13.0-cp314-cp314-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 7703a6f29b5ac12231f0a1b00c120feb02a34a1bea8d4754da4e8ea82067b527
MD5 4657dece6bfe9b64ed8ee43c8279a1a6
BLAKE2b-256 f90595ab418e449caac943efcb78341808d515704ccd9bf132f654ebf6f3c914

See more details on using hashes here.

File details

Details for the file torchcodec_xpu-0.13.0-cp313-cp313-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: torchcodec_xpu-0.13.0-cp313-cp313-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 265.7 kB
  • Tags: CPython 3.13, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.18 CPython/3.10.12

File hashes

Hashes for torchcodec_xpu-0.13.0-cp313-cp313-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 3f76f1de399ec44ba3a2d2fe705dc049f4d377d60045db0b85a10182e3579fb5
MD5 b6f6e1f284a0e6d28ee2558ffe4d9f21
BLAKE2b-256 ddf504b9e4794f097874870d1b124267f2896a6165ac781d9ce100aedcad2a1b

See more details on using hashes here.

File details

Details for the file torchcodec_xpu-0.13.0-cp312-cp312-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: torchcodec_xpu-0.13.0-cp312-cp312-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 265.7 kB
  • Tags: CPython 3.12, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.18 CPython/3.10.12

File hashes

Hashes for torchcodec_xpu-0.13.0-cp312-cp312-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 ee4c972198f8a5dbfdca56e4c75f32af89677c72b9fa01b7757ffe912f99cc8a
MD5 c73ec897a520752d15a43d925a64a63c
BLAKE2b-256 7d47a09aeb9212726a019b97c941b8325e84e753d124f93ad6c792e80226cd3e

See more details on using hashes here.

File details

Details for the file torchcodec_xpu-0.13.0-cp311-cp311-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: torchcodec_xpu-0.13.0-cp311-cp311-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 265.7 kB
  • Tags: CPython 3.11, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.18 CPython/3.10.12

File hashes

Hashes for torchcodec_xpu-0.13.0-cp311-cp311-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 9293c20506142d1784a733a2886fb754636e269527bce781b27aea0f42f00ae0
MD5 89896a0062a3eb346b8871df03a85465
BLAKE2b-256 f564d5c0379022e561e067c3a73dc033625525208516ea3e2a2f4ce351d3e091

See more details on using hashes here.

File details

Details for the file torchcodec_xpu-0.13.0-cp310-cp310-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: torchcodec_xpu-0.13.0-cp310-cp310-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 265.7 kB
  • Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.18 CPython/3.10.12

File hashes

Hashes for torchcodec_xpu-0.13.0-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 3fde31ab1c6dfc60be22ca25882bb1d696cff551b959a91288331ba6a19df1c5
MD5 ae040f7d2d66d8610753d6030088ca99
BLAKE2b-256 af8c558a39ab7dfbe4eebbcaf619c3cf937627ebb2d199315e40df2117ba6e3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page