Skip to content

Expose Demuxer, PacketDecoder and ColorConverter#1501

Merged
NicolasHug merged 5 commits into
meta-pytorch:mainfrom
NicolasHug:api-breakdown
Jul 9, 2026
Merged

Expose Demuxer, PacketDecoder and ColorConverter#1501
NicolasHug merged 5 commits into
meta-pytorch:mainfrom
NicolasHug:api-breakdown

Conversation

@NicolasHug

@NicolasHug NicolasHug commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

First of many PRs to expose lower-level video decoding blocks to let users overlap stages. For example:

Method                             Time (ms)     CPU %   vs VideoDecoder
------------------------------------------------------------------------
VideoDecoder                  864.4 +/- 12.0       100             1.00x
sequential                     748.8 +/- 2.2       100             1.15x
demux+decode || cc             537.1 +/- 5.6       121             1.61x
demux || decode+cc             754.4 +/- 2.0       102             1.15x
demux || decode || cc          533.9 +/- 8.3       126             1.62x

CPU-only for now. Lots of TODOs and tons of internals / public stuff will change. This is a big PR, but it barely changes any existing code, so it's safe to merge.

@pytorch-bot

pytorch-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/meta-pytorch/torchcodec/1501

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 1 Pending

As of commit 50a0def with merge base d1f36b0 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 8, 2026
@NicolasHug NicolasHug force-pushed the api-breakdown branch 4 times, most recently from 40f1463 to c1b1245 Compare July 8, 2026 15:27
@NicolasHug NicolasHug marked this pull request as ready for review July 9, 2026 16:12
@NicolasHug NicolasHug merged commit ae41fd5 into meta-pytorch:main Jul 9, 2026
100 of 101 checks passed
@NicolasHug NicolasHug deleted the api-breakdown branch July 9, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant