Skip to content

Commit 923eb03

Browse files
authored
Deprecate video decoding and encoding (#8997)
1 parent db831ba commit 923eb03

File tree

6 files changed

+60
-384
lines changed

6 files changed

+60
-384
lines changed

docs/source/io.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,16 @@ IO operations
8686
read_file
8787
write_file
8888

89-
Video
90-
-----
89+
Video - DEPREACTED
90+
------------------
9191

9292
.. warning::
9393

94-
Torchvision supports video decoding through different APIs listed below,
95-
some of which are still in BETA stage. In the near future, we intend to
96-
centralize PyTorch's video decoding capabilities within the `torchcodec
97-
<https://github.com/pytorch/torchcodec>`_ project. We encourage you to try
98-
it out and share your feedback, as the torchvision video decoders will
99-
eventually be deprecated.
94+
DEPRECATED: All the video decoding and encoding capabilities of torchvision
95+
are deprecated from version 0.22 and will be removed in version 0.24. We
96+
recommend that you migrate to
97+
`TorchCodec <https://github.com/pytorch/torchcodec>`__, where we'll
98+
consolidate the future decoding/encoding capabilities of PyTorch
10099

101100
.. autosummary::
102101
:toctree: generated/

gallery/others/plot_video_api.py

Lines changed: 0 additions & 346 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import warnings
2+
3+
4+
def _raise_video_deprecation_warning():
5+
warnings.warn(
6+
"The video decoding and encoding capabilities of torchvision "
7+
"are deprecated from version 0.22 and will be removed in version 0.24. "
8+
"We recommend that you migrate to TorchCodec, where we'll consolidate "
9+
"the future decoding/encoding capabilities of PyTorch: "
10+
"https://github.com/pytorch/torchcodec",
11+
UserWarning,
12+
)

0 commit comments

Comments
 (0)