From f5b8b6ac126d8cef3860db16d3db8e72507a2258 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 14 Sep 2012 17:51:26 +0200 Subject: encode: video encoding now supported using mencoder-like options --- encode.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 encode.h (limited to 'encode.h') diff --git a/encode.h b/encode.h new file mode 100644 index 0000000000..f0f65f14c5 --- /dev/null +++ b/encode.h @@ -0,0 +1,21 @@ +#ifndef MPLAYER_ENCODE_H +#define MPLAYER_ENCODE_H + +#include +#include + +struct MPOpts; +struct encode_lavc_context; +struct encode_output_conf; + +// interface for mplayer.c +struct encode_lavc_context *encode_lavc_init(struct encode_output_conf *options); +void encode_lavc_finish(struct encode_lavc_context *ctx); +void encode_lavc_free(struct encode_lavc_context *ctx); +void encode_lavc_discontinuity(struct encode_lavc_context *ctx); +bool encode_lavc_showhelp(struct MPOpts *opts); +int encode_lavc_getstatus(struct encode_lavc_context *ctx, char *buf, int bufsize, float relative_position, float playback_time); +void encode_lavc_expect_stream(struct encode_lavc_context *ctx, enum AVMediaType mt); +bool encode_lavc_didfail(struct encode_lavc_context *ctx); // check if encoding failed + +#endif -- cgit v1.2.3