From dcd36c79c7ff124dacbe01b6c28f68585fd66a2b Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 16 Jun 2013 17:14:20 +0200 Subject: encode_lavc strings: use new option syntax --- core/encode_lavc.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'core') diff --git a/core/encode_lavc.c b/core/encode_lavc.c index db8149e02b..e7c52be221 100644 --- a/core/encode_lavc.c +++ b/core/encode_lavc.c @@ -479,8 +479,8 @@ AVStream *encode_lavc_alloc_stream(struct encode_lavc_context *ctx, else if (ctx->options->autofps && ctx->vo_fps > 0) { r = av_d2q(ctx->vo_fps, ctx->vo_fps * 1001 + 2); mp_msg( - MSGT_ENCODE, MSGL_INFO, "vo-lavc: option -ofps not specified " - "but -oautofps is active, using guess of %u/%u\n", + MSGT_ENCODE, MSGL_INFO, "vo-lavc: option --ofps not specified " + "but --oautofps is active, using guess of %u/%u\n", (unsigned)r.num, (unsigned)r.den); } else { // we want to handle: @@ -493,7 +493,7 @@ AVStream *encode_lavc_alloc_stream(struct encode_lavc_context *ctx, r.num = 24000; r.den = 1; mp_msg( - MSGT_ENCODE, MSGL_INFO, "vo-lavc: option -ofps not specified " + MSGT_ENCODE, MSGL_INFO, "vo-lavc: option --ofps not specified " "and fps could not be inferred, using guess of %u/%u\n", (unsigned)r.num, (unsigned)r.den); } @@ -618,7 +618,7 @@ int encode_lavc_open_codec(struct encode_lavc_context *ctx, AVStream *stream) "- Codec implementation in ffmpeg/libav is not finished yet.\n" " Try updating ffmpeg or libav.\n" "- Bad picture quality, blocks, blurriness.\n" - " Experiment with codec settings (-ovcopts) to maybe still get the\n" + " Experiment with codec settings (--ovcopts) to maybe still get the\n" " desired quality output at the expense of bitrate.\n" "- Slow compression.\n" " Bear with it.\n" @@ -654,7 +654,7 @@ int encode_lavc_open_codec(struct encode_lavc_context *ctx, AVStream *stream) "- Codec implementation in ffmpeg/libav is not finished yet.\n" " Try updating ffmpeg or libav.\n" "- Bad sound quality, noise, clicking, whistles, choppiness.\n" - " Experiment with codec settings (-oacopts) to maybe still get the\n" + " Experiment with codec settings (--oacopts) to maybe still get the\n" " desired quality output at the expense of bitrate.\n" "- Slow compression.\n" " Bear with it.\n" @@ -867,7 +867,7 @@ bool encode_lavc_showhelp(struct MPOpts *opts) AVOutputFormat *c = NULL; mp_msg(MSGT_ENCODE, MSGL_INFO, "Available output formats:\n"); while ((c = av_oformat_next(c))) - mp_msg(MSGT_ENCODE, MSGL_INFO, " -of %-13s %s\n", c->name, + mp_msg(MSGT_ENCODE, MSGL_INFO, " --of=%-13s %s\n", c->name, c->long_name ? c->long_name : ""); av_free(c); } @@ -876,16 +876,16 @@ bool encode_lavc_showhelp(struct MPOpts *opts) AVOutputFormat *format = NULL; mp_msg(MSGT_ENCODE, MSGL_INFO, "Available output format ctx->options:\n"); - encode_lavc_printoptions(c, " -ofopts ", " ", NULL, + encode_lavc_printoptions(c, " --ofopts=", " ", NULL, AV_OPT_FLAG_ENCODING_PARAM, AV_OPT_FLAG_ENCODING_PARAM); av_free(c); while ((format = av_oformat_next(format))) { if (format->priv_class) { - mp_msg(MSGT_ENCODE, MSGL_INFO, "Additionally, for -of %s:\n", + mp_msg(MSGT_ENCODE, MSGL_INFO, "Additionally, for --of=%s:\n", format->name); - encode_lavc_printoptions(&format->priv_class, " -ofopts ", - " ", NULL, + encode_lavc_printoptions(&format->priv_class, " --ofopts=", + " ", NULL, AV_OPT_FLAG_ENCODING_PARAM, AV_OPT_FLAG_ENCODING_PARAM); } @@ -897,7 +897,7 @@ bool encode_lavc_showhelp(struct MPOpts *opts) mp_msg(MSGT_ENCODE, MSGL_INFO, "Available output video codec ctx->options:\n"); encode_lavc_printoptions( - c, " -ovcopts ", " ", NULL, + c, " --ovcopts=", " ", NULL, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_ENCODING_PARAM | @@ -912,11 +912,11 @@ bool encode_lavc_showhelp(struct MPOpts *opts) strcmp(opts->encode_output.vcodec, codec->name) != 0) continue; if (codec->priv_class) { - mp_msg(MSGT_ENCODE, MSGL_INFO, "Additionally, for -ovc %s:\n", + mp_msg(MSGT_ENCODE, MSGL_INFO, "Additionally, for --ovc=%s:\n", codec->name); encode_lavc_printoptions( - &codec->priv_class, " -ovcopts ", - " ", NULL, + &codec->priv_class, " --ovcopts=", + " ", NULL, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_ENCODING_PARAM | @@ -930,7 +930,7 @@ bool encode_lavc_showhelp(struct MPOpts *opts) mp_msg(MSGT_ENCODE, MSGL_INFO, "Available output audio codec ctx->options:\n"); encode_lavc_printoptions( - c, " -oacopts ", " ", NULL, + c, " --oacopts=", " ", NULL, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM, AV_OPT_FLAG_ENCODING_PARAM | @@ -945,10 +945,10 @@ bool encode_lavc_showhelp(struct MPOpts *opts) strcmp(opts->encode_output.acodec, codec->name) != 0) continue; if (codec->priv_class) { - mp_msg(MSGT_ENCODE, MSGL_INFO, "Additionally, for -oac %s:\n", + mp_msg(MSGT_ENCODE, MSGL_INFO, "Additionally, for --oac=%s:\n", codec->name); encode_lavc_printoptions( - &codec->priv_class, " -oacopts ", + &codec->priv_class, " --oacopts=", " ", NULL, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM, @@ -965,7 +965,7 @@ bool encode_lavc_showhelp(struct MPOpts *opts) continue; if (c->type != AVMEDIA_TYPE_VIDEO) continue; - mp_msg(MSGT_ENCODE, MSGL_INFO, " -ovc %-12s %s\n", c->name, + mp_msg(MSGT_ENCODE, MSGL_INFO, " --ovc=%-12s %s\n", c->name, c->long_name ? c->long_name : ""); } av_free(c); @@ -978,7 +978,7 @@ bool encode_lavc_showhelp(struct MPOpts *opts) continue; if (c->type != AVMEDIA_TYPE_AUDIO) continue; - mp_msg(MSGT_ENCODE, MSGL_INFO, " -oac %-12s %s\n", c->name, + mp_msg(MSGT_ENCODE, MSGL_INFO, " --oac=%-12s %s\n", c->name, c->long_name ? c->long_name : ""); } av_free(c); -- cgit v1.2.3