def get_arguments(self, video, output):
     args = ["-i", utils.convert_path_for_subprocess(video.filename), "-strict", "experimental"]
     args.extend(settings.customize_ffmpeg_parameters(self.get_parameters(video)))
     if not (self.audio_only or video.audio_only):
         width, height = self.get_target_size(video)
         args.append("-s")
         args.append("%ix%i" % (width, height))
     args.extend(self.get_extra_arguments(video, output))
     args.append(self.convert_output_path(output))
     return args
示例#2
0
 def get_arguments(self, video, output):
     args = []
     args.extend(settings.customize_ffmpeg_parameters(
         self.get_parameters(video)))
     if not (self.audio_only or video.audio_only):
         width, height = self.get_target_size(video)
         args.extend(['--width', '%s' % width])
         args.extend(['--height', '%s' % height])
     args.extend(self.get_extra_arguments(video, output))
     args.extend(['--output', self.convert_output_path(output)])
     args.append(utils.convert_path_for_subprocess(video.filename))
     return args
示例#3
0
 def get_arguments(self, video, output):
     args = []
     args.extend(
         settings.customize_ffmpeg_parameters(self.get_parameters(video)))
     if not (self.audio_only or video.audio_only):
         width, height = self.get_target_size(video)
         args.extend(['--width', '%s' % width])
         args.extend(['--height', '%s' % height])
     args.extend(self.get_extra_arguments(video, output))
     args.extend(['--output', self.convert_output_path(output)])
     args.append(utils.convert_path_for_subprocess(video.filename))
     return args
示例#4
0
 def get_arguments(self, video, output, method):
     args = ['-i', utils.convert_path_for_subprocess(video.filename)]
     args.extend(settings.customize_ffmpeg_parameters(
         self.get_parameters(video)))
     if not (self.audio_only or video.audio_only):
         width, height = self.get_target_size(video)
         args.append("-s")
         args.append('%ix%i' % (width, height))
     args.extend(self.get_extra_arguments(video, output, method))
     if method is not None and method == 'pass1':
         args.append("/dev/null")
     else:
         args.append(self.convert_output_path(output))
     return args
示例#5
0
 def get_arguments(self, video, output, method):
     args = ['-i', utils.convert_path_for_subprocess(video.filename)]
     args.extend(
         settings.customize_ffmpeg_parameters(self.get_parameters(video)))
     if not (self.audio_only or video.audio_only):
         width, height = self.get_target_size(video)
         args.append("-s")
         args.append('%ix%i' % (width, height))
     args.extend(self.get_extra_arguments(video, output, method))
     if method is not None and method == 'pass1':
         args.append("/dev/null")
     else:
         args.append(self.convert_output_path(output))
     return args
示例#6
0
 def get_arguments(self, video, output):
     args = [
         '-i',
         utils.convert_path_for_subprocess(video.filename), '-strict',
         'experimental'
     ]
     args.extend(
         settings.customize_ffmpeg_parameters(self.get_parameters(video)))
     if not (self.audio_only or video.audio_only):
         width, height = self.get_target_size(video)
         args.append("-s")
         args.append('%ix%i' % (width, height))
     args.extend(self.get_extra_arguments(video, output))
     args.append(self.convert_output_path(output))
     return args
示例#7
0
 def get_arguments(self, video, output):
     extra_args = settings.customize_ffmpeg_parameters(
         self.get_extra_arguments(video, output))
     return (['-i', video.filename, '-strict', 'experimental'] +
             extra_args + [output])
示例#8
0
 def get_arguments(self, video, output):
     extra_args = settings.customize_ffmpeg_parameters(
       self.get_extra_arguments(video, output))
     return (['-i', video.filename, '-strict', 'experimental'] +
             extra_args + [output])