29 int add_frame(std::span<ossia::float_vector>);
30 int add_frame(
const unsigned char* data, AVPixelFormat fmt,
int width,
int height);
33 int add_frame_converted(
34 const unsigned char*
const planes[],
const int strides[],
int planeCount,
35 int width,
int height);
39 bool available()
const noexcept {
return m_formatContext; }
42 AVFormatContext* m_formatContext{};
44 std::vector<OutputStream> streams;
45 std::mutex m_muxMutex;
47 int audio_stream_index = -1;
48 int video_stream_index = -1;