4 // Wrapper around an AVFormat mux.
7 #include <libavcodec/avcodec.h>
8 #include <libavformat/avformat.h>
9 #include <libavformat/avio.h>
16 CODEC_NV12, // Uncompressed 4:2:0.
19 Mux(AVFormatContext *avctx, int width, int height, Codec video_codec, int time_base); // Takes ownership of avctx.
21 void add_packet(const AVPacket &pkt, int64_t pts, int64_t dts);
24 bool seen_keyframe = false;
25 AVFormatContext *avctx;
26 AVStream *avstream_video, *avstream_audio;
29 #endif // !defined(_MUX_H)