From 000c8c0bdbbb180bf5aa2f2cf0b0f93f4956ade4 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 6 Oct 2023 10:25:33 +0200 Subject: [PATCH] lavc video help: cmdline print updates * shorten lines * print usage where can be seen that there is also fullhelp --- src/video_compress/libavcodec.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/video_compress/libavcodec.cpp b/src/video_compress/libavcodec.cpp index a13ed21ea..f13655c9e 100644 --- a/src/video_compress/libavcodec.cpp +++ b/src/video_compress/libavcodec.cpp @@ -376,9 +376,15 @@ static void get_codec_details(AVCodecID id, char *buf, size_t buflen) void usage(bool full) { printf("Libavcodec encoder usage:\n"); - col() << "\t" SBOLD(SRED("-c libavcodec") << "[:codec=|:encoder=][:bitrate=|:bpp=|:crf=|:cqp=]\n" - "\t\t[:subsampling=][:depth=][:rgb|:yuv][:gop=]" - "[:[disable_]intra_refresh][:threads=][:slices=][:=]*") << "\n"; + col() << "\t" SBOLD(SRED("-c libavcodec") + << "[:codec=|:encoder=]\n\t\t[" + ":bitrate=|:bpp=|:" + "crf=|:cqp=]\n\t\t[:subsampling=<" + "subsampling>][:depth=" + "][:rgb|:yuv][:gop=]\n\t\t" + "[:[disable_]intra_refresh][:threads=][" + ":slices=]\n\t\t[:=]*") + << "\n\t" << SBOLD(SRED("-c libavcodec") << ":[full]help") << "\n"; col() << "\nwhere\n"; col() << "\t" << SBOLD("") << " specifies encoder (eg. nvenc or libx264 for H.264)\n"; col() << "\t" << SBOLD("") << " - codec name (default MJPEG) if encoder name is not specified\n";