10 #ifndef FfmpegWriter_INC
11 #define FfmpegWriter_INC
16 #include <libavcodec/avcodec.h>
17 #include <libavformat/avformat.h>
50 video_outbuf(nullptr),
56 system_resource = NULL;
61 bool close()
override;
74 void *system_resource;
78 AVStream *audio_st, *video_st;
79 double audio_pts, video_pts;
82 AVFrame *picture, *tmp_picture;
83 uint8_t *video_outbuf;
84 int frame_count, video_outbuf_size;
93 ready = delayedOpen(savedConfig);
94 if (delayed) { ready =
false; }
99 void open_video(AVFormatContext *oc, AVStream *st);
101 void write_video_frame(AVFormatContext *oc, AVStream *st,
104 void close_video(AVFormatContext *oc, AVStream *st);