+ x264_encoder.reset(new X264Encoder(oformat, /*use_separate_disk_params=*/false));
+ }
+ VideoCodecInterface *http_encoder = x264_encoder.get();
+ VideoCodecInterface *disk_encoder = x264_encoder.get();
+#ifdef HAVE_AV1
+ if (global_flags.av1_video_to_http) {
+ av1_encoder.reset(new AV1Encoder(oformat));
+ http_encoder = av1_encoder.get();
+ }
+#endif
+ if (global_flags.x264_separate_disk_encode) {
+ x264_disk_encoder.reset(new X264Encoder(oformat, /*use_separate_disk_params=*/true));
+ disk_encoder = x264_disk_encoder.get();