def EncodeCommandLine(self, parameters, bitrate, videofile, encodedfile):
    # The use-vbv-maxrate flag controls whether vbv-maxrate/vbv-bufsize
    # are used. They may be unneeded.
    # Still no opinion: '--no-scenecut --keyint infinite '
    if parameters.HasValue('use-vbv-maxrate'):
      parameters = parameters.RemoveValue('use-vbv-maxrate')
      parameters = parameters.ChangeValue('vbv-maxrate', str(bitrate))
      parameters = parameters.ChangeValue('vbv-bufsize', str(bitrate))
    commandline = ('%(x264)s '
      '--bitrate %(bitrate)d --fps %(framerate)d '
      '--input-res %(width)dx%(height)d '
      '--quiet '
      '%(parameters)s '
      '-o %(outputfile)s %(inputfile)s') / {
        'x264': encoder.Tool('x264'),
        'bitrate': bitrate,
        'framerate': videofile.framerate,
        'width': videofile.width,
        'height': videofile.height,
        'outputfile': encodedfile,
        'inputfile': videofile.filename,
        'parameters': parameters.ToString()}
    return commandline
dataset/ETHPy150Open google/compare-codecs/lib/x264.py/X264Codec.EncodeCommandLine/operator `%` -> `/`