We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e32fe7 commit d909297Copy full SHA for d909297
docs/index.rst
@@ -54,8 +54,8 @@ Basic Demo
54
55
container = av.open(path_to_video)
56
57
- for frame in container.decode(video=0):
58
- frame.to_image().save('frame-%04d.jpg' % frame.index)
+ for index, frame in enumerate(container.decode(video=0)):
+ frame.to_image().save(f"frame-{index:04d}.jpg")
59
60
61
Overview
0 commit comments