X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=video_encoder.h;h=21595a380c992b7df76c0d3531e0cee72b5b2cfe;hp=d51399e17a82c71bcbf31fbe7ba28115fc768b85;hb=refs%2Fheads%2Fffmpeg-audio-only;hpb=2abf57fbc06f52c04fb2ca1f765459908e688890 diff --git a/video_encoder.h b/video_encoder.h index d51399e..21595a3 100644 --- a/video_encoder.h +++ b/video_encoder.h @@ -20,6 +20,7 @@ extern "C" { #include } +#include "mux.h" #include "ref_counted_gl_sync.h" class AudioEncoder; @@ -78,8 +79,8 @@ private: int write_packet2(uint8_t *buf, int buf_size, AVIODataMarkerType type, int64_t time); AVOutputFormat *oformat; - mutable std::mutex qs_mu; - std::unique_ptr quicksync_encoder; // Under . + mutable std::mutex qs_mu, qs_audio_mu; + std::unique_ptr quicksync_encoder; // Under _and_ . movit::ResourcePool *resource_pool; QSurface *surface; std::string va_display; @@ -94,6 +95,7 @@ private: std::unique_ptr x264_encoder; // nullptr if not using x264. std::string stream_mux_header; + MuxMetrics stream_mux_metrics; std::atomic quicksync_encoders_in_shutdown{0}; std::atomic overriding_bitrate{0};