break;
case OPTION_RECORD_X264_VIDEO:
global_flags.x264_video_to_disk = true;
- global_flags.x264_video_to_http = true;
break;
case OPTION_SEPARATE_X264_DISK_ENCODE:
global_flags.x264_video_to_disk = true;
global_flags.x264_video_to_http = true;
}
}
+ if (global_flags.x264_video_to_disk && !global_flags.uncompressed_video_to_http && !global_flags.av1_video_to_http) {
+ global_flags.x264_video_to_http = true; // Quick Sync to HTTP but x264 to disk doesn't make sense.
+ }
if (global_flags.min_num_cards <= 0) {
fprintf(stderr, "ERROR: --num-cards must be at least 1\n");
exit(1);
avctx->flags = AVFMT_FLAG_CUSTOM_IO;
string video_extradata;
- if (global_flags.x264_video_to_http || global_flags.x264_video_to_disk) {
+ if (global_flags.x264_video_to_http) {
video_extradata = x264_encoder->get_global_headers();
#ifdef HAVE_AV1
} else if (global_flags.av1_video_to_http) {