File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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
5858
5959from torchcodec .decoders import VideoDecoder
6060print (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:
You can’t perform that action at this time.
0 commit comments