File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ class MovieWriter(object):
67
67
This class is set up to provide for writing movie frame data to a pipe.
68
68
saving() is provided as a context manager to facilitate this process as::
69
69
70
- `` with moviewriter.saving('myfile.mp4'):
71
- # Iterate over frames
72
- moviewriter.grab_frame()``
70
+ with moviewriter.saving('myfile.mp4'):
71
+ # Iterate over frames
72
+ moviewriter.grab_frame()
73
73
74
74
The use of the context manager ensures that setup and cleanup are
75
75
performed as necessary.
@@ -341,7 +341,7 @@ def output_args(self):
341
341
# The %dk adds 'k' as a suffix so that ffmpeg treats our bitrate as in
342
342
# kbps
343
343
args = ['-vcodec' , self .codec ]
344
- if self .bitrate > 0 :
344
+ if self .bitrate > 0 :
345
345
args .extend (['-b' , '%dk' % self .bitrate ])
346
346
if self .extra_args :
347
347
args .extend (self .extra_args )
@@ -394,7 +394,7 @@ def _remap_metadata(self):
394
394
def output_args (self ):
395
395
self ._remap_metadata ()
396
396
args = ['-o' , self .outfile , '-ovc' , 'lavc' , 'vcodec=%s' % self .codec ]
397
- if self .bitrate > 0 :
397
+ if self .bitrate > 0 :
398
398
args .append ('vbitrate=%d' % self .bitrate )
399
399
if self .extra_args :
400
400
args .extend (self .extra_args )
You can’t perform that action at this time.
0 commit comments