File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -420,15 +420,15 @@ class FFMpegBase(object):
420420
421421 @property
422422 def output_args (self ):
423- # The %dk adds 'k' as a suffix so that ffmpeg treats our bitrate as in
424- # kbps
425423 args = ['-vcodec' , self .codec ]
426424 # For h264, the default format is yuv444p, which is not compatible
427425 # with quicktime (and others). Specifying yuv420p fixes playback on
428426 # iOS,as well as HTML5 video in firefox and safari (on both Win and
429427 # OSX). Also fixes internet explorer. This is as of 2015/10/29.
430428 if self .codec == 'h264' and '-pix_fmt' not in self .extra_args :
431429 args .extend (['-pix_fmt' , 'yuv420p' ])
430+ # The %dk adds 'k' as a suffix so that ffmpeg treats our bitrate as in
431+ # kbps
432432 if self .bitrate > 0 :
433433 args .extend (['-b' , '%dk' % self .bitrate ])
434434 if self .extra_args :
You can’t perform that action at this time.
0 commit comments