summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2012-12-01 17:15:44 +0100
committerRudolf Polzer <divverent@xonotic.org>2012-12-01 17:15:44 +0100
commit5bb51de800f85424dff0e069ddc2bfd9c757f909 (patch)
tree3064a5aef9a0c9b94b649b114ee0421471a62113 /core
parent402aee9f51d9e51bc177bbc931c88082fccf2fe0 (diff)
downloadmpv-5bb51de800f85424dff0e069ddc2bfd9c757f909.tar.bz2
mpv-5bb51de800f85424dff0e069ddc2bfd9c757f909.tar.xz
encode: print on log which muxers/codecs are in use
This is consistent with the demuxer/decoder info output mpv already has, and is also generally useful to know, especially if using --ao=codec1,codec2,... syntax.
Diffstat (limited to 'core')
-rw-r--r--core/encode_lavc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/encode_lavc.c b/core/encode_lavc.c
index d35db70b4f..d4ecb57bfc 100644
--- a/core/encode_lavc.c
+++ b/core/encode_lavc.c
@@ -253,6 +253,9 @@ int encode_lavc_start(struct encode_lavc_context *ctx)
ctx->header_written = -1;
if (!(ctx->avc->oformat->flags & AVFMT_NOFILE)) {
+ mp_msg(MSGT_ENCODE, MSGL_INFO, "Opening output file: %s\n",
+ ctx->avc->filename);
+
if (avio_open(&ctx->avc->pb, ctx->avc->filename,
AVIO_FLAG_WRITE) < 0) {
encode_lavc_fail(ctx, "encode-lavc: could not open '%s'\n",
@@ -263,6 +266,9 @@ int encode_lavc_start(struct encode_lavc_context *ctx)
ctx->t0 = GetTimerMS();
+ mp_msg(MSGT_ENCODE, MSGL_INFO, "Opening muxer: %s [%s]\n",
+ ctx->avc->oformat->long_name, ctx->avc->oformat->name);
+
if (avformat_write_header(ctx->avc, &ctx->foptions) < 0) {
encode_lavc_fail(ctx, "encode-lavc: could not write header\n");
return 0;
@@ -579,6 +585,9 @@ int encode_lavc_open_codec(struct encode_lavc_context *ctx, AVStream *stream)
switch (stream->codec->codec_type) {
case AVMEDIA_TYPE_VIDEO:
+ mp_msg(MSGT_ENCODE, MSGL_INFO, "Opening video encoder: %s [%s]\n",
+ ctx->vc->long_name, ctx->vc->name);
+
if (ctx->vc->capabilities & CODEC_CAP_EXPERIMENTAL) {
stream->codec->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
mp_msg(MSGT_ENCODE, MSGL_WARN, _(
@@ -612,6 +621,9 @@ int encode_lavc_open_codec(struct encode_lavc_context *ctx, AVStream *stream)
break;
case AVMEDIA_TYPE_AUDIO:
+ mp_msg(MSGT_ENCODE, MSGL_INFO, "Opening audio encoder: %s [%s]\n",
+ ctx->ac->long_name, ctx->ac->name);
+
if (ctx->ac->capabilities & CODEC_CAP_EXPERIMENTAL) {
stream->codec->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
mp_msg(MSGT_ENCODE, MSGL_WARN, _(