X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=flags.h;h=a73a48e94a4807a6f085b85e96cb371c0177d442;hb=b85c1986b7ea63534899e2eb589f9e0888d5ccda;hp=308e3103bfd6be6c068406f166971bc24cc17994;hpb=77cc363c7e4db05eb8c1b7fef1a56e2ee308e0d4;p=nageru diff --git a/flags.h b/flags.h index 308e310..a73a48e 100644 --- a/flags.h +++ b/flags.h @@ -1,18 +1,35 @@ #ifndef _FLAGS_H #define _FLAGS_H +#include #include +#include #include "defs.h" struct Flags { int num_cards = 2; + int num_fake_cards = 0; std::string va_display; bool uncompressed_video_to_http = false; + bool x264_video_to_http = false; std::string theme_filename = "theme.lua"; bool flat_audio = false; bool flush_pbos = true; std::string stream_mux_name = DEFAULT_STREAM_MUX_NAME; + bool stream_coarse_timebase = false; + std::string stream_audio_codec_name; // Blank = use the same as for the recording. + int stream_audio_codec_bitrate = DEFAULT_AUDIO_OUTPUT_BIT_RATE; // Ignored if stream_audio_codec_name is blank. + std::string x264_preset; // Empty will be overridden by X264_DEFAULT_PRESET, unless speedcontrol is set. + std::string x264_tune = X264_DEFAULT_TUNE; + bool x264_speedcontrol = false; + bool x264_speedcontrol_verbose = false; + int x264_bitrate = DEFAULT_X264_OUTPUT_BIT_RATE; // In kilobit/sec. + int x264_vbv_max_bitrate = -1; // In kilobits. 0 = no limit, -1 = same as (CBR). + int x264_vbv_buffer_size = -1; // In kilobits. 0 = one-frame VBV, -1 = same as (one-second VBV). + std::vector x264_extra_param; // In “key[,value]” format. + bool enable_alsa_output = true; + std::map default_stream_mapping; }; extern Flags global_flags;