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
On this page
Latest version 1.0.0, released December 2, 2026. Source repository
Its 1.0.0 release requires Python 3.11 or later. Python end of life dates.
- From 0.17.0 to 1.0.0: 12 breaking changes in 1 version.
- From 0.9.0 to 1.0.0: 35 breaking changes in 9 versions.
torchcodec 1.0.0 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 - 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 - 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 - Signature changed
torchcodec.decoders.AudioPacketDecoder.__init__
Was def __init__(self, *args, **kwargs) -> None; now def __init__(self, codec_parameters: AudioCodecParameters). pypi.org - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
torchcodec 0.17.0 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 - Signature changed
torchcodec.decoders.AudioStreamMetadata
Was class AudioStreamMetadata(StreamMetadata); now class AudioStreamMetadata(AudioStreamHeaderMetadata). pypi.org - 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 - Signature changed
torchcodec.decoders.VideoStreamMetadata
Was class VideoStreamMetadata(StreamMetadata); now class VideoStreamMetadata(VideoStreamHeaderMetadata). pypi.org - 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
torchcodec 0.16.0 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 - Behavior changed
decode_image
decode_image always applies EXIF orientation, so returned images may be rotated or flipped compared with before. meta-pytorch.org - 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 - Signature changed
torchcodec.core_library_path
Was from torchcodec._core import core_library_path; now core_library_path. pypi.org - Signature changed
torchcodec.ffmpeg_major_version
Was from torchcodec._core import ffmpeg_major_version; now ffmpeg_major_version. pypi.org
torchcodec 0.15.0 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 - 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
torchcodec 0.14.0 breaking changes
- 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
torchcodec 0.13.0 breaking changes
- 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
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
torchcodec 0.12.0 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 - 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
torchcodec 0.11.0 breaking changes
- Removed
torchcodec.decoders.AudioDecoder.metadata
AudioDecoder.metadata was removed in torchcodec 0.11.0 pypi.org - Removed
torchcodec.decoders.AudioDecoder.stream_index
AudioDecoder.stream_index was removed in torchcodec 0.11.0 pypi.org
And 4 more in this version.
torchcodec 0.10.0 breaking changes
- 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
torchcodec 0.9.0 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 - 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
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, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.