Skip to content

Commit 3c76b23

Browse files
committed
Provide PyAv export options to add_stream
1 parent f6770ff commit 3c76b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pims/display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ def export_pyav(sequence, filename, rate=30, bitrate=None,
118118
else:
119119
raise NotImplemented
120120

121-
output = av.open(str(filename), str('w'), format=format, options=options)
121+
output = av.open(str(filename), str('w'), format=format)
122122
# Maximum allowed timebase is 66535 (at least for mpeg4)
123123
# see https://github.com/mikeboers/PyAV/issues/242
124124
export_rate_frac = Fraction(export_rate).limit_denominator(65535)
125-
stream = output.add_stream(codec, rate=export_rate_frac)
125+
stream = output.add_stream(codec, rate=export_rate_frac, options=options)
126126
stream.pix_fmt = str(pixel_format)
127127

128128
for frame_no in itertools.count():

0 commit comments

Comments
 (0)