Skip to content

Commit 28f9e86

Browse files
committed
stream options
1 parent 7f558d6 commit 28f9e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/daio/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def __init__(self, filename, codec='libx264', fps=25, frame_shape=None, pix_fmt=
184184
kwargs = {**dict(crf=23, preset='superfast'), **kwargs}
185185
#add video stream, if frame_shape is provided (otherwise create when the first frame is written)
186186
if frame_shape is not None:
187-
self.stream = self.container.add_stream(codec, rate=fps, height=frame_shape[0], width=frame_shape[1], pix_fmt=pix_fmt, **kwargs)
187+
self.stream = self.container.add_stream(codec, rate=fps, height=frame_shape[0], width=frame_shape[1], pix_fmt=pix_fmt, options=kwargs)
188188
else:
189189
self.stream = None
190190
self.codec = codec

0 commit comments

Comments
 (0)