How to do a two-pass x264 video encoding?

In Export > Codec, change:

  • Rate control = Average Bitrate
  • Bitrate = 7500k
  • GOP = 300

In Export > Other:

  • change preset=faster to preset=slower
  • add the following lines:
    keyint_min=30
    deblock=-2:-2
  • If you need full control over x264 options, you can add a line with x264-params=
  • Other supports most FFmpeg options by converting -option value syntax to option=value. However, Shotcut is not a ffmpeg command line front-end; so it does not support everything especially things related to file/stream mappings, codec:copy, sync, libavfilter options, etc. Basically, things listed under AVOptions when you run ffmpeg -h full. See also MLT avformat consumer documentation.
1 Like