X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=flags.h;h=c3ea0fc5e40d23db712553be8947ca8269c70506;hb=5c6163ad5daa01b486e44c394dd7cc9878ec5df5;hp=7dc03c546fdce57079aa3d2203175bbdbd70edc9;hpb=95ad88db99ba896fb5bfcfd5c221f735a3e34b7e;p=nageru diff --git a/flags.h b/flags.h index 7dc03c5..c3ea0fc 100644 --- a/flags.h +++ b/flags.h @@ -1,6 +1,7 @@ #ifndef _FLAGS_H #define _FLAGS_H +#include #include #include "defs.h" @@ -9,6 +10,7 @@ struct Flags { int num_cards = 2; 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; @@ -16,6 +18,13 @@ struct Flags { 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 = X264_DEFAULT_PRESET; + std::string x264_tune = X264_DEFAULT_TUNE; + 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). + bool enable_alsa_output = true; + std::map default_stream_mapping; }; extern Flags global_flags;