Skip to content

Commit c12ef95

Browse files
committed
I can't math
1 parent 6c6f564 commit c12ef95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/approximate_mode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# %%
2121
# First, a bit of boilerplate: we'll download a short video from the web, and
2222
# use the ffmpeg CLI to repeat it 100 times. We'll end up with two videos: a
23-
# short video of approximately 13s and a long one of about 1380s (~40 mins).
23+
# short video of approximately 13s and a long one of about 20 mins.
2424
# You can ignore that part and jump right below to :ref:`perf_creation`.
2525

2626

@@ -58,7 +58,7 @@
5858

5959
from torchcodec.decoders import VideoDecoder
6060
print(f"Short video duration: {VideoDecoder(short_video_path).metadata.duration_seconds} seconds")
61-
print(f"Long video duration: {VideoDecoder(long_video_path).metadata.duration_seconds} seconds")
61+
print(f"Long video duration: {VideoDecoder(long_video_path).metadata.duration_seconds / 60} minutes")
6262

6363
# %%
6464
# .. _perf_creation:

0 commit comments

Comments
 (0)