@@ -276,9 +276,10 @@ def __init__(self, fps=5, codec=None, bitrate=None, extra_args=None,
276
276
means higher quality movies, but increase the file size. A value
277
277
of -1 lets the underlying movie encoder select the bitrate.
278
278
extra_args : list of str or None, optional
279
- Extra command-line arguments passed to the underlying movie
280
- encoder. The default, None, means to use
281
- :rc:`animation.[name-of-encoder]_args` for the builtin writers.
279
+ Extra command-line arguments passed to the underlying movie encoder. These
280
+ arguments are passed last to the encoder, just before the filename. The
281
+ default, None, means to use :rc:`animation.[name-of-encoder]_args` for the
282
+ builtin writers.
282
283
metadata : dict[str, str], default: {}
283
284
A dictionary of keys and values for metadata to include in the
284
285
output file. Some keys that may be of use include:
@@ -538,9 +539,9 @@ def output_args(self):
538
539
'split [a][b];[a] palettegen [p];[b][p] paletteuse' ])
539
540
if self .bitrate > 0 :
540
541
args .extend (['-b' , '%dk' % self .bitrate ]) # %dk: bitrate in kbps.
541
- args .extend (extra_args )
542
542
for k , v in self .metadata .items ():
543
543
args .extend (['-metadata' , f'{ k } ={ v } ' ])
544
+ args .extend (extra_args )
544
545
545
546
return args + ['-y' , self .outfile ]
546
547
@@ -937,9 +938,10 @@ class to use, such as 'ffmpeg'.
937
938
of -1 lets the underlying movie encoder select the bitrate.
938
939
939
940
extra_args : list of str or None, optional
940
- Extra command-line arguments passed to the underlying movie
941
- encoder. The default, None, means to use
942
- :rc:`animation.[name-of-encoder]_args` for the builtin writers.
941
+ Extra command-line arguments passed to the underlying movie encoder. These
942
+ arguments are passed last to the encoder, just before the output filename.
943
+ The default, None, means to use :rc:`animation.[name-of-encoder]_args` for
944
+ the builtin writers.
943
945
944
946
metadata : dict[str, str], default: {}
945
947
Dictionary of keys and values for metadata to include in
0 commit comments