BSD Ports

multimedia/py-torchcodec 0.13.0 MidnightBSD

PyTorch media decoding and encoding

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
dee1e47e52
License
bsd3
Categories
multimedia, python

Description

Hardware-accelerated video and audio decoding for PyTorch.

TorchCodec is a library that provides fast and easy-to-use tools for decoding video and audio directly into PyTorch tensors. It uses FFmpeg as a backend and is optimized for performance, with support for hardware acceleration. This makes it ideal for machine learning pipelines that process large amounts of video and audio data.

In the other systems

SystemPortVersion
MidnightBSDmultimedia/py-torchcodec0.13.0
FreeBSDmultimedia/py-torchcodec0.17.0
HardenedBSDmultimedia/py-torchcodec0.16.0
GhostBSDmultimedia/py-torchcodec0.16.0

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}torchcodec

From mports:

cd /usr/mports/multimedia/py-torchcodec && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}torchcodec>0:multimedia/py-torchcodec

Dependencies

As this port's Makefile names them.

Build 3

Library 3

Runtime 2

Test 2

Build dependencies 6
Run dependencies 5

Configuration

No options to configure.

USES
cmake:indirect compiler:c++17-lang python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
meta-pytorch-torchcodec-v0.13.0_GH0.tar.gz1.4295989e+07acc955dbd7b80dcb6268fd3ff728477af0ba7fd79b4251c1ef685fdd5e2229e4

Commit history 2

DateCommitCreditsLog message
dee1e47e52 Lucas Holt ai: add new category and move AI/ML ports from misc
Create the ai category (Artificial intelligence and machine learning) and relocate 42 AI/ML ports from misc into it. - Register ai in Mk/bsd.mport.mk VALID_CATEGORIES and the top-level Makefile - Add ai/Makefile; drop the moved entries from misc/Makefile (also removes the stale linux-claude SUBDIR left over from the claude-code rename) - git mv 42 ports and set their primary CATEGORIES to ai - Rewrite misc/<port> dependency origins to ai/<port> in external dependents (devel/py-beartype, math/py-faiss, multimedia/py-torchcodec, textproc/py-tokenizers) and among the moved ports themselves - Record the origin migrations in MOVED Ports moved: chatgpt-shell-cli, claude-code, claude-code-legacy, clawhub, codex, gemini-cli, github-copilot-cli, grok-cli, lean-ctx, llama-cpp, ollama, …
8af06753b2 Lucas Holt databases/rubygem-flipper-active_record-rails70: update to 1.3.6
Match the flipper-gitlab provider series so fake-qa can satisfy the gemspec flipper dependency. AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>