Skip to content

Commit 9ab2ee6

Browse files
committed
stream options
1 parent 28f9e86 commit 9ab2ee6

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
@@ -206,7 +206,7 @@ def write(self, im, pts=None):
206206
else:
207207
raise ValueError(f"Unsupported frame shape: {im.shape}")
208208
if self.stream is None:
209-
self.stream = self.container.add_stream(self.codec, rate=self.fps, height=im.shape[0], width=im.shape[1], pix_fmt=self.pix_fmt, **self.kwargs)
209+
self.stream = self.container.add_stream(self.codec, rate=self.fps, height=im.shape[0], width=im.shape[1], pix_fmt=self.pix_fmt, options=self.kwargs)
210210
out_frame = av.VideoFrame.from_ndarray(im, format=format)
211211
if pts is not None:
212212
out_frame.pts = pts

0 commit comments

Comments
 (0)