X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.h;h=5a3e203dc9dc0dd5f02c6eb2c100364313521291;hb=4a300e3cab7b1b1ef5a32e1f4a7ec319c48e95e5;hp=d8a9c8badf527e0e6dfcf2867156a10ad4677c9c;hpb=80a2892bbe07a4e065704830e9e7244d2b1139fa;p=nageru diff --git a/mixer.h b/mixer.h index d8a9c8b..5a3e203 100644 --- a/mixer.h +++ b/mixer.h @@ -322,6 +322,11 @@ public: return cards[card_index].output != nullptr; } + bool card_is_ffmpeg(unsigned card_index) const { + assert(card_index < num_cards + num_video_inputs); + return cards[card_index].type == CardType::FFMPEG_INPUT; + } + std::map get_available_video_modes(unsigned card_index) const { assert(card_index < num_cards); return cards[card_index].capture->get_available_video_modes(); @@ -369,6 +374,10 @@ public: cards[card_index].capture->set_audio_input(input); } + std::string get_ffmpeg_filename(unsigned card_index) const; + + void set_ffmpeg_filename(unsigned card_index, const std::string &filename); + void change_x264_bitrate(unsigned rate_kbit) { video_encoder->change_x264_bitrate(rate_kbit); }