---
title: "torchcodec 1.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each torchcodec release removed, renamed or changed: 39 breaking changes in 10 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/torchcodec
last_updated: 2026-12-04
---

# torchcodec breaking changes

torchcodec 1.0.0 (December 2, 2026) is its newest release with breaking changes, 12 of them. The first: torchcodec 1.0.0 requires Python 3.11 or later. Every breaking API change we have recorded in torchcodec on PyPI: 39 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.0.0`, released December 2, 2026. [Source repository](https://github.com/pytorch/torchcodec)

Its 1.0.0 release requires [Python 3.11](https://since.dev/calendar/python/3.11.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.17.0](#v-0-17-0) to [1.0.0](#v-1-0-0): 12 breaking changes in 1 version.
- From [0.9.0](#v-0-9-0) to [1.0.0](#v-1-0-0): 35 breaking changes in 9 versions.

## torchcodec 1.0.0 breaking changes

torchcodec 1.0.0, released December 2, 2026: 12 breaking changes.

- **Removed**  

The package now requires Python 3.11 or later and torch 2.11 or later. Users on older Python versions must upgrade Python. [github.com](https://github.com/meta-pytorch/torchcodec/releases/tag/v1.0.0)
- **Behavior changed**  

Exceptions from a user's file-like object's read, write or seek methods now surface as RuntimeError with the original error in the message. Code catching the original exception type must catch RuntimeError instead. [github.com](https://github.com/meta-pytorch/torchcodec/releases/tag/v1.0.0)
- **Behavior changed**  

Passing bit_rate=None to audio encoding now keeps the codec's default bit rate instead of setting it to 0. Code relying on the old zero bit rate will get different output. [github.com](https://github.com/meta-pytorch/torchcodec/releases/tag/v1.0.0)
- **Signature changed** `torchcodec.decoders.AudioPacketDecoder.__init__`  

Was def \_\_init\_\_(self, \*args, \*\*kwargs) -> None; now def \_\_init\_\_(self, codec_parameters: AudioCodecParameters). [pypi.org](https://pypi.org/project/torchcodec/1.0.0/)
- **Signature changed** `torchcodec.decoders.AudioStreamHeaderMetadata.__init__`  

Was def \_\_init\_\_(self, duration_seconds_from_header: float | None, begin_stream_seconds_from_header: float | None, bit_rate: float | None, codec: str | None, stream_index: int, media_type: str, sample_rate: int | None, num_channels: int |... [pypi.org](https://pypi.org/project/torchcodec/1.0.0/)
- **Signature changed** `torchcodec.decoders.AudioStreamMetadata.__init__`  

Was def \_\_init\_\_(self, duration_seconds_from_header: float | None, begin_stream_seconds_from_header: float | None, bit_rate: float | None, codec: str | None, stream_index: int, media_type: str, sample_rate: int | None, num_channels: int |... [pypi.org](https://pypi.org/project/torchcodec/1.0.0/)
- **Signature changed** `torchcodec.decoders.FrameIndex.__init__`  

Was def \_\_init\_\_(self, is_key_frame: Tensor, \_pts: Tensor, \_duration: Tensor, \_time_base_num: int, \_time_base_den: int) -> None; now def \_\_init\_\_(self, \_is_key_frame: Tensor, \_pts: Tensor, \_duration: Tensor, \_time_base_num: int... [pypi.org](https://pypi.org/project/torchcodec/1.0.0/)
- **Signature changed** `torchcodec.decoders.RawAudioSamples.__init__`  

Was def \_\_init\_\_(self, data: torch.Tensor, sample_rate: int, pts_seconds: float, duration_seconds: float, \_generation: int = 0) -> None; now def \_\_init\_\_(self, data: torch.Tensor, sample_rate: int, pts: int | None, pts_seconds: float... [pypi.org](https://pypi.org/project/torchcodec/1.0.0/)
- **Signature changed** `torchcodec.decoders.RawFrame.__init__`  

Was def \_\_init\_\_(self, handle: torch.Tensor, pts_seconds: float, duration_seconds: float, storage: torch.Tensor | None = None); now def \_\_init\_\_(self, handle: torch.Tensor, pts: int | None, pts_seconds: float, duration_seconds: float... [pypi.org](https://pypi.org/project/torchcodec/1.0.0/)
- **Signature changed** `torchcodec.decoders.StreamMetadata.__init__`  

Was def \_\_init\_\_(self, duration_seconds_from_header: float | None, begin_stream_seconds_from_header: float | None, bit_rate: float | None, codec: str | None, stream_index: int, media_type: str) -> None; now def \_\_init\_\_(self... [pypi.org](https://pypi.org/project/torchcodec/1.0.0/)
- **Signature changed** `torchcodec.decoders.VideoStreamHeaderMetadata.__init__`  

Was def \_\_init\_\_(self, duration_seconds_from_header: float | None, begin_stream_seconds_from_header: float | None, bit_rate: float | None, codec: str | None, stream_index: int, media_type: str, width: int | None, height: int | None... [pypi.org](https://pypi.org/project/torchcodec/1.0.0/)
- **Signature changed** `torchcodec.decoders.VideoStreamMetadata.__init__`  

Was def \_\_init\_\_(self, duration_seconds_from_header: float | None, begin_stream_seconds_from_header: float | None, bit_rate: float | None, codec: str | None, stream_index: int, media_type: str, width: int | None, height: int | None... [pypi.org](https://pypi.org/project/torchcodec/1.0.0/)

## torchcodec 0.17.0 breaking changes

torchcodec 0.17.0, released September 30, 2026: 5 breaking changes.

- **Behavior changed**  

The FFmpeg protocol allow-list for file-like objects now matches local files, so nested protocols are forbidden for file-like inputs. Code that relied on nested protocols with file-like inputs will now fail. [github.com](https://github.com/meta-pytorch/torchcodec/releases/tag/v0.17.0)
- **Signature changed** `torchcodec.decoders.AudioStreamMetadata`  

Was class AudioStreamMetadata(StreamMetadata); now class AudioStreamMetadata(AudioStreamHeaderMetadata). [pypi.org](https://pypi.org/project/torchcodec/0.17.0/)
- **Signature changed** `torchcodec.decoders.AudioStreamMetadata.__init__`  

Was def \_\_init\_\_(self, duration_seconds_from_header: float | None, begin_stream_seconds_from_header: float | None, bit_rate: float | None, codec: str | None, stream_index: int, duration_seconds: float | None, begin_stream_seconds: float |... [pypi.org](https://pypi.org/project/torchcodec/0.17.0/)
- **Signature changed** `torchcodec.decoders.VideoStreamMetadata`  

Was class VideoStreamMetadata(StreamMetadata); now class VideoStreamMetadata(VideoStreamHeaderMetadata). [pypi.org](https://pypi.org/project/torchcodec/0.17.0/)
- **Signature changed** `torchcodec.decoders.VideoStreamMetadata.__init__`  

Was def \_\_init\_\_(self, duration_seconds_from_header: float | None, begin_stream_seconds_from_header: float | None, bit_rate: float | None, codec: str | None, stream_index: int, duration_seconds: float | None, begin_stream_seconds: float |... [pypi.org](https://pypi.org/project/torchcodec/0.17.0/)

## torchcodec 0.16.0 breaking changes

torchcodec 0.16.0, released August 13, 2026: 5 breaking changes.

- **Removed** `decode_image.apply_exif_orientation`  

The apply_exif_orientation parameter was removed because EXIF orientation is now always applied. Remove this argument from calls. [meta-pytorch.org](https://meta-pytorch.org/torchcodec/0.16/generated%5Fexamples/migration/torchvision%5Fmigration.html)
- **Behavior changed** `decode_image`  

decode_image always applies EXIF orientation, so returned images may be rotated or flipped compared with before. [meta-pytorch.org](https://meta-pytorch.org/torchcodec/0.16/generated%5Fexamples/migration/torchvision%5Fmigration.html)
- **Default changed** `decode_image`  

Calls to decode_image without a mode now return RGB channels. Pass mode="UNCHANGED" to keep the source's own channel layout. [meta-pytorch.org](https://meta-pytorch.org/torchcodec/0.16/generated%5Fexamples/migration/torchvision%5Fmigration.html)
- **Signature changed** `torchcodec.core_library_path`  

Was from torchcodec.\_core import core_library_path; now core_library_path. [pypi.org](https://pypi.org/project/torchcodec/0.16.0/)
- **Signature changed** `torchcodec.ffmpeg_major_version`  

Was from torchcodec.\_core import ffmpeg_major_version; now ffmpeg_major_version. [pypi.org](https://pypi.org/project/torchcodec/0.16.0/)

## torchcodec 0.15.0 breaking changes

torchcodec 0.15.0, released July 15, 2026: 2 breaking changes.

- **Signature changed** `torchcodec.encoders.AudioStream.__init__`  

Was def \_\_init\_\_(self, encoder_tensor: Tensor, stream_index: int); now def \_\_init\_\_(self, encoder_tensor: Tensor, stream_identifier: int). [pypi.org](https://pypi.org/project/torchcodec/0.15.0/)
- **Signature changed** `torchcodec.encoders.VideoStream.__init__`  

Was def \_\_init\_\_(self, encoder_tensor: Tensor, stream_index: int); now def \_\_init\_\_(self, encoder_tensor: Tensor, stream_identifier: int). [pypi.org](https://pypi.org/project/torchcodec/0.15.0/)

## torchcodec 0.14.0 breaking changes

torchcodec 0.14.0, released June 3, 2026: 1 breaking change.

- **Signature changed** `torchcodec.decoders.VideoDecoder.__init__`  

Was def \_\_init\_\_(self, source: str | Path | io.RawIOBase | io.BufferedReader | bytes | Tensor, \*, stream_index: int | None = None, dimension_order: Literal\['NCHW', 'NHWC'\] = 'NCHW', num_ffmpeg_threads: int = 1, device: str | torch_device |... [pypi.org](https://pypi.org/project/torchcodec/0.14.0/)

## torchcodec 0.13.0 breaking changes

torchcodec 0.13.0, released May 21, 2026: 1 breaking change.

- **Default changed**  

Installing torchcodec from PyPI now gives the CUDA build by default on Linux x86 and aarch64. Users who want CPU-only wheels must follow the installation instructions for the CPU-only install. [github.com](https://github.com/meta-pytorch/torchcodec/releases/tag/v0.13.0)

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### torchcodec 0.12.0 breaking changes

torchcodec 0.12.0, released May 14, 2026: 2 breaking changes.

- **Removed**  

CUDA 12.8 is no longer supported in this release; CUDA 13.2 is added. Users on CUDA 12.8 must upgrade their CUDA version. [github.com](https://github.com/meta-pytorch/torchcodec/releases/tag/v0.12.0)
- **Default changed** `VideoDecoder`  

With device="cuda", VideoDecoder now uses the faster CUDA backend by default instead of FFmpeg. Code that needs the FFmpeg backend must wrap decoder creation in set_cuda_backend("ffmpeg"). [github.com](https://github.com/meta-pytorch/torchcodec/releases/tag/v0.12.0)

### torchcodec 0.11.0 breaking changes

torchcodec 0.11.0, released March 24, 2026: 6 breaking changes.

- **Removed** `torchcodec.decoders.AudioDecoder.metadata`  

AudioDecoder.metadata was removed in torchcodec 0.11.0 [pypi.org](https://pypi.org/project/torchcodec/0.11.0/)
- **Removed** `torchcodec.decoders.AudioDecoder.stream_index`  

AudioDecoder.stream_index was removed in torchcodec 0.11.0 [pypi.org](https://pypi.org/project/torchcodec/0.11.0/)

And 4 more in this version.

### torchcodec 0.10.0 breaking changes

torchcodec 0.10.0, released January 22, 2026: 1 breaking change.

- **Signature changed** `torchcodec.decoders.VideoDecoder.__init__`  

Was def \_\_init\_\_(self, source: Union\[str, Path, io.RawIOBase, io.BufferedReader, bytes, Tensor\], \*, stream_index: Optional\[int\] = None, dimension_order: Literal\['NCHW', 'NHWC'\] = 'NCHW', num_ffmpeg_threads: int = 1, device... [pypi.org](https://pypi.org/project/torchcodec/0.10.0/)

### torchcodec 0.9.0 breaking changes

torchcodec 0.9.0, released December 4, 2025: 4 breaking changes.

- **Signature changed** `torchcodec.decoders.AudioStreamMetadata.__init__`  

Was def \_\_init\_\_(self, duration_seconds_from_header: Optional\[float\], begin_stream_seconds_from_header: Optional\[float\], bit_rate: Optional\[float\], codec: Optional\[str\], stream_index: int, sample_rate: Optional\[int\], num_channels... [pypi.org](https://pypi.org/project/torchcodec/0.9.0/)
- **Signature changed** `torchcodec.decoders.VideoDecoder.__init__`  

Was def \_\_init\_\_(self, source: Union\[str, Path, io.RawIOBase, io.BufferedReader, bytes, Tensor\], \*, stream_index: Optional\[int\] = None, dimension_order: Literal\['NCHW', 'NHWC'\] = 'NCHW', num_ffmpeg_threads: int = 1, device... [pypi.org](https://pypi.org/project/torchcodec/0.9.0/)

And 2 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
