27 #include "libavutil/ffversion.h"
61 # ifdef pthread_mutex_lock
62 # undef pthread_mutex_lock
64 # define pthread_mutex_lock(a) do{}while(0)
65 # ifdef pthread_mutex_unlock
66 # undef pthread_mutex_unlock
68 # define pthread_mutex_unlock(a) do{}while(0)
121 #define SHOW_OPTIONAL_FIELDS_AUTO -1
122 #define SHOW_OPTIONAL_FIELDS_NEVER 0
123 #define SHOW_OPTIONAL_FIELDS_ALWAYS 1
145 #define SECTION_MAX_NB_CHILDREN 10
151 #define SECTION_FLAG_IS_WRAPPER 1
152 #define SECTION_FLAG_IS_ARRAY 2
153 #define SECTION_FLAG_HAS_VARIABLE_FIELDS 4
278 static const struct {
284 { 1.0, 1.0,
"",
"" },
285 { 1.024e3, 1e3,
"Ki",
"K" },
286 { 1.048576e6, 1e6,
"Mi",
"M" },
287 { 1.073741824e9, 1e9,
"Gi",
"G" },
288 { 1.099511627776e12, 1e12,
"Ti",
"T" },
289 { 1.125899906842624e15, 1e15,
"Pi",
"P" },
322 static int print_prefix = 1;
323 void *new_log_buffer;
334 if (new_log_buffer) {
347 for (
i=strlen(msg) - 1;
i>=0 && msg[
i] ==
'\n';
i--) {
353 if (parent && *parent) {
356 (*parent)->get_category ? (*parent)->get_category(parent) :(*parent)->category;
378 union {
double d;
long long int i; }
val;
392 vald = vali = uv.
val.
i;
399 mins = (
int)secs / 60;
400 secs = secs - mins * 60;
403 snprintf(buf, buf_size,
"%d:%02d:%09.6f", hours, mins, secs);
405 const char *prefix_string =
"";
416 index = (
long long int) (log10(vald)) / 3;
425 snprintf(buf, buf_size,
"%f", vald);
427 snprintf(buf, buf_size,
"%lld", vali);
439 #define WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS 1
440 #define WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER 2
465 #define SECTION_MAX_NB_LEVELS 10
501 #define OFFSET(x) offsetof(WriterContext, x)
504 {
"string_validation",
"set string validation mode",
506 {
"sv",
"set string validation mode",
511 {
"string_validation_replacement",
"set string validation replacement string",
OFFSET(string_validation_replacement),
AV_OPT_TYPE_STRING, {.str=
""}},
512 {
"svr",
"set string validation replacement string",
OFFSET(string_validation_replacement),
AV_OPT_TYPE_STRING, {.str=
"\xEF\xBF\xBD"}},
519 if (!prev &&
ctx->writer &&
ctx->writer->priv_class &&
ctx->priv)
539 if ((*wctx)->writer->uninit)
540 (*wctx)->writer->uninit(*wctx);
543 if ((*wctx)->writer->priv_class)
550 static void bprint_bytes(AVBPrint *bp,
const uint8_t *ubuf,
size_t ubuf_size)
554 for (
i = 0;
i < ubuf_size;
i++)
575 (*wctx)->writer = writer;
578 (*wctx)->nb_sections = nb_sections;
583 void *priv_ctx = (*wctx)->priv;
594 av_log(*wctx,
AV_LOG_ERROR,
"Failed to parse option string '%s' provided to writer context\n", args);
601 av_log(*wctx,
AV_LOG_ERROR,
"Failed to set option '%s' with value '%s' provided to writer context\n",
613 const uint8_t *p = (*wctx)->string_validation_replacement;
614 const uint8_t *endp = p + strlen(p);
616 const uint8_t *p0 = p;
624 "Invalid UTF8 sequence %s found in string validation replace '%s'\n",
625 bp.str, (*wctx)->string_validation_replacement);
634 if ((*wctx)->writer->init)
635 ret = (*wctx)->writer->init(*wctx);
649 int parent_section_id;
652 parent_section_id = wctx->
level ?
673 int parent_section_id = wctx->
level ?
688 const char *
key,
long long int val)
700 const uint8_t *p, *endp;
702 int invalid_chars_nb = 0,
ret = 0;
707 for (p = (uint8_t *)
src; *p;) {
710 const uint8_t *p0 = p;
717 "Invalid UTF-8 sequence %s found in string '%s'\n", bp.str,
src);
727 "Invalid UTF-8 sequence found in string '%s'\n",
src);
744 "%d invalid UTF-8 sequence(s) found in string '%s', replaced with '%s'\n",
753 #define PRINT_STRING_OPT 1
754 #define PRINT_STRING_VALIDATE 2
772 if (
ret < 0)
goto end;
774 if (
ret < 0)
goto end;
779 "Invalid key=value string combination %s=%s in section %s\n",
804 int64_t ts,
const AVRational *time_base,
int is_duration)
808 if ((!is_duration && ts ==
AV_NOPTS_VALUE) || (is_duration && ts == 0)) {
811 double d = ts *
av_q2d(*time_base);
822 if ((!is_duration && ts ==
AV_NOPTS_VALUE) || (is_duration && ts == 0)) {
840 for (
i = 0;
i < l;
i++) {
846 for (
i = 0;
i < l;
i++)
867 p = buf + strlen(buf);
874 int columns,
int bytes,
int offset_add)
884 for (
i = 0;
i < l;
i++) {
898 #define MAX_REGISTERED_WRITERS_NB 64
904 static int next_registered_writer_idx = 0;
927 #define DEFINE_WRITER_CLASS(name) \
928 static const char *name##_get_name(void *ctx) \
932 static const AVClass name##_class = { \
933 .class_name = #name, \
934 .item_name = name##_get_name, \
935 .option = name##_options \
948 #define OFFSET(x) offsetof(DefaultContext, x)
951 {
"noprint_wrappers",
"do not print headers and footers",
OFFSET(noprint_wrappers),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
964 for (
i = 0;
src[
i] &&
i < dst_size-1;
i++)
979 if (parent_section &&
1034 .priv_class = &default_class,
1042 static const char *
c_escape_str(AVBPrint *dst,
const char *
src,
const char sep,
void *log_ctx)
1046 for (p =
src; *p; p++) {
1048 case '\b':
av_bprintf(dst,
"%s",
"\\b");
break;
1049 case '\f':
av_bprintf(dst,
"%s",
"\\f");
break;
1050 case '\n':
av_bprintf(dst,
"%s",
"\\n");
break;
1051 case '\r':
av_bprintf(dst,
"%s",
"\\r");
break;
1052 case '\\':
av_bprintf(dst,
"%s",
"\\\\");
break;
1067 char meta_chars[] = { sep,
'"',
'\n',
'\r',
'\0' };
1068 int needs_quoting = !!
src[strcspn(
src, meta_chars)];
1095 const char * (*escape_str)(AVBPrint *dst,
const char *
src,
const char sep,
void *log_ctx);
1102 #define OFFSET(x) offsetof(CompactContext, x)
1123 av_log(wctx,
AV_LOG_ERROR,
"Item separator '%s' specified, but must contain a single character\n",
1188 if (!compact->
nokey)
1200 if (!compact->
nokey)
1214 .priv_class = &compact_class,
1220 #define OFFSET(x) offsetof(CompactContext, x)
1245 .priv_class = &csv_class,
1258 #define OFFSET(x) offsetof(FlatContext, x)
1263 {
"hierarchical",
"specify if the section specification should be hierarchical",
OFFSET(hierarchical),
AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1 },
1264 {
"h",
"specify if the section specification should be hierarchical",
OFFSET(hierarchical),
AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1 },
1274 if (strlen(
flat->sep_str) != 1) {
1275 av_log(wctx,
AV_LOG_ERROR,
"Item separator '%s' specified, but must contain a single character\n",
1288 for (p =
src; *p; p++) {
1289 if (!((*p >=
'0' && *p <=
'9') ||
1290 (*p >=
'a' && *p <=
'z') ||
1291 (*p >=
'A' && *p <=
'Z')))
1303 for (p =
src; *p; p++) {
1305 case '\n':
av_bprintf(dst,
"%s",
"\\n");
break;
1306 case '\r':
av_bprintf(dst,
"%s",
"\\r");
break;
1307 case '\\':
av_bprintf(dst,
"%s",
"\\\\");
break;
1308 case '"':
av_bprintf(dst,
"%s",
"\\\"");
break;
1309 case '`':
av_bprintf(dst,
"%s",
"\\`");
break;
1310 case '$':
av_bprintf(dst,
"%s",
"\\$");
break;
1327 if (!parent_section)
1331 if (
flat->hierarchical ||
1369 .priv_class = &flat_class,
1380 #define OFFSET(x) offsetof(INIContext, x)
1383 {
"hierarchical",
"specify if the section specification should be hierarchical",
OFFSET(hierarchical),
AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1 },
1384 {
"h",
"specify if the section specification should be hierarchical",
OFFSET(hierarchical),
AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1 },
1395 while (
c =
src[
i++]) {
1397 case '\b':
av_bprintf(dst,
"%s",
"\\b");
break;
1398 case '\f':
av_bprintf(dst,
"%s",
"\\f");
break;
1399 case '\n':
av_bprintf(dst,
"%s",
"\\n");
break;
1400 case '\r':
av_bprintf(dst,
"%s",
"\\r");
break;
1401 case '\t':
av_bprintf(dst,
"%s",
"\\t");
break;
1407 if ((
unsigned char)
c < 32)
1426 if (!parent_section) {
1427 printf(
"# ffprobe output\n\n");
1447 printf(
"[%s]\n", buf->str);
1473 .priv_class = &ini_class,
1486 #define OFFSET(x) offsetof(JSONContext, x)
1508 static const char json_escape[] = {
'"',
'\\',
'\b',
'\f',
'\n',
'\r',
'\t', 0};
1509 static const char json_subst[] = {
'"',
'\\',
'b',
'f',
'n',
'r',
't', 0};
1512 for (p =
src; *p; p++) {
1513 char *
s = strchr(json_escape, *p);
1517 }
else if ((
unsigned char)*p < 32) {
1526 #define JSON_INDENT() printf("%*c", json->indent_level * 4, ' ')
1549 printf(
"\"%s\": [\n", buf.str);
1571 if (wctx->
level == 0) {
1589 const char *
key,
const char *
value)
1639 .priv_class = &json_class,
1653 #define OFFSET(x) offsetof(XMLContext, x)
1656 {
"fully_qualified",
"specify if the output should be fully qualified",
OFFSET(fully_qualified),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
1657 {
"q",
"specify if the output should be fully qualified",
OFFSET(fully_qualified),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
1658 {
"xsd_strict",
"ensure that the output is XSD compliant",
OFFSET(xsd_strict),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
1671 #define CHECK_COMPLIANCE(opt, opt_name) \
1673 av_log(wctx, AV_LOG_ERROR, \
1674 "XSD-compliant output selected but option '%s' was selected, XML output may be non-compliant.\n" \
1675 "You need to disable such option with '-no%s'\n", opt_name, opt_name); \
1676 return AVERROR(EINVAL); \
1686 #define XML_INDENT() printf("%*c", xml->indent_level * 4, ' ')
1695 if (wctx->
level == 0) {
1696 const char *qual =
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
1697 "xmlns:ffprobe=\"http://www.ffmpeg.org/schema/ffprobe\" "
1698 "xsi:schemaLocation=\"http://www.ffmpeg.org/schema/ffprobe ffprobe.xsd\"";
1700 printf(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
1701 printf(
"<%sffprobe%s>\n",
1733 if (wctx->
level == 0) {
1765 printf(
" value=\"%s\"/>\n", buf.str);
1794 .priv_class = &xml_class,
1814 #define print_fmt(k, f, ...) do { \
1815 av_bprint_clear(&pbuf); \
1816 av_bprintf(&pbuf, f, __VA_ARGS__); \
1817 writer_print_string(w, k, pbuf.str, 0); \
1820 #define print_list_fmt(k, f, n, ...) do { \
1821 av_bprint_clear(&pbuf); \
1822 for (int idx = 0; idx < n; idx++) { \
1824 av_bprint_chars(&pbuf, ' ', 1); \
1825 av_bprintf(&pbuf, f, __VA_ARGS__); \
1827 writer_print_string(w, k, pbuf.str, 0); \
1830 #define print_int(k, v) writer_print_integer(w, k, v)
1831 #define print_q(k, v, s) writer_print_rational(w, k, v, s)
1832 #define print_str(k, v) writer_print_string(w, k, v, 0)
1833 #define print_str_opt(k, v) writer_print_string(w, k, v, PRINT_STRING_OPT)
1834 #define print_str_validate(k, v) writer_print_string(w, k, v, PRINT_STRING_VALIDATE)
1835 #define print_time(k, v, tb) writer_print_time(w, k, v, tb, 0)
1836 #define print_ts(k, v) writer_print_ts(w, k, v, 0)
1837 #define print_duration_time(k, v, tb) writer_print_time(w, k, v, tb, 1)
1838 #define print_duration_ts(k, v) writer_print_ts(w, k, v, 1)
1839 #define print_val(k, v, u) do { \
1840 struct unit_value uv; \
1843 writer_print_string(w, k, value_string(val_str, sizeof(val_str), uv), 0); \
1846 #define print_section_header(s) writer_print_section_header(w, s)
1847 #define print_section_footer(s) writer_print_section_footer(w, s)
1849 #define REALLOCZ_ARRAY_STREAM(ptr, cur_n, new_n) \
1851 ret = av_reallocp_array(&(ptr), (new_n), sizeof(*(ptr))); \
1854 memset( (ptr) + (cur_n), 0, ((new_n) - (cur_n)) * sizeof(*(ptr)) ); \
1893 print_int(
"chroma_resampling_explicit_filter_flag",
1902 print_int(
"spatial_resampling_filter_flag",
1904 print_int(
"el_spatial_resampling_filter_flag",
1917 print_str(
"nlq_method_idc_name",
"none");
1920 print_str(
"nlq_method_idc_name",
"linear_dz");
1923 print_str(
"nlq_method_idc_name",
"unknown");
1932 for (
int c = 0;
c < 3;
c++) {
1945 print_str(
"mapping_idc_name",
"polynomial");
1960 print_str(
"mapping_idc_name",
"unknown");
1996 color->ycc_to_rgb_matrix[idx].num,
1997 color->ycc_to_rgb_matrix[idx].den);
2000 color->ycc_to_rgb_offset[idx].num,
2001 color->ycc_to_rgb_offset[idx].den);
2004 color->rgb_to_lms_matrix[idx].num,
2005 color->rgb_to_lms_matrix[idx].den);
2013 print_int(
"signal_full_range_flag",
color->signal_full_range_flag);
2030 print_q(
"window_upper_left_corner_x",
2032 print_q(
"window_upper_left_corner_y",
2034 print_q(
"window_lower_right_corner_x",
2036 print_q(
"window_lower_right_corner_y",
2038 print_q(
"window_upper_left_corner_x",
2040 print_q(
"window_upper_left_corner_y",
2048 print_int(
"semimajor_axis_internal_ellipse",
2050 print_int(
"semimajor_axis_external_ellipse",
2052 print_int(
"semiminor_axis_external_ellipse",
2057 print_q(
"targeted_system_display_maximum_luminance",
2060 print_int(
"num_rows_targeted_system_display_actual_peak_luminance",
2062 print_int(
"num_cols_targeted_system_display_actual_peak_luminance",
2066 print_q(
"targeted_system_display_actual_peak_luminance",
2073 for (
int i = 0;
i < 3;
i++) {
2078 print_int(
"num_distribution_maxrgb_percentiles",
2081 print_int(
"distribution_maxrgb_percentage",
2083 print_q(
"distribution_maxrgb_percentile",
2086 print_q(
"fraction_bright_pixels",
2090 print_int(
"num_rows_mastering_display_actual_peak_luminance",
2092 print_int(
"num_cols_mastering_display_actual_peak_luminance",
2096 print_q(
"mastering_display_actual_peak_luminance",
2110 print_q(
"bezier_curve_anchors",
2115 print_q(
"color_saturation_weight",
2131 for (
i = 0;
i < nb_side_data;
i++) {
2354 const uint8_t *side_metadata;
2391 print_int (
"start_display_time",
sub->start_display_time);
2422 print_ts (
"best_effort_timestamp",
frame->best_effort_timestamp);
2442 print_q(
"sample_aspect_ratio", sar,
':');
2448 print_int(
"display_picture_number",
frame->display_picture_number);
2466 if (
frame->channel_layout) {
2469 frame->channel_layout);
2479 if (
frame->nb_side_data) {
2481 for (
i = 0;
i <
frame->nb_side_data;
i++) {
2496 uint32_t *
tc = (uint32_t*)sd->
data;
2499 for (
int j = 1; j <= m ; j++) {
2561 int ret = 0, got_frame = 0;
2612 return got_frame || *packet_new;
2617 av_log(log_ctx, log_level,
"id:%d", interval->
id);
2623 av_log(log_ctx, log_level,
" start:N/A");
2629 av_log(log_ctx, log_level,
"#%"PRId64, interval->
end);
2633 av_log(log_ctx, log_level,
" end:N/A");
2636 av_log(log_ctx, log_level,
"\n");
2645 int ret = 0,
i = 0, frame_count = 0;
2646 int64_t start = -INT64_MAX, end = interval->
end;
2657 "Could not seek to relative position since current "
2658 "timestamp is not defined\n");
2662 target = *cur_ts + interval->
start;
2664 target = interval->
start;
2705 end = start + interval->
end;
2710 if (frame_count >= interval->
end)
2712 }
else if (has_end && *cur_ts !=
AV_NOPTS_VALUE && *cur_ts >= end) {
2805 char profile_num[12];
2833 print_q(
"sample_aspect_ratio", sar,
':');
2838 print_q(
"display_aspect_ratio", dar,
':');
2855 print_str(
"field_order",
"progressive");
2947 #define PRINT_DISPOSITION(flagname, name) do { \
2948 print_int(name, !!(stream->disposition & AV_DISPOSITION_##flagname)); \
2995 for (
i = 0;
i <
ifile->nb_streams;
i++)
3023 for (
i = 0;
i <
program->nb_stream_indexes;
i++) {
3114 const char *errbuf_ptr = errbuf;
3126 const char *print_filename)
3131 int scan_all_pmts_set = 0;
3141 scan_all_pmts_set = 1;
3148 if (print_filename) {
3153 if (scan_all_pmts_set)
3164 for (
i = 0;
i < orig_nb_streams;
i++)
3177 if (!
ifile->streams)
3191 "Failed to probe codec for input stream %d\n",
3199 "Unsupported codec with id %d for input stream %d\n",
3247 for (
i = 0;
i <
ifile->nb_streams;
i++)
3251 ifile->nb_streams = 0;
3257 const char *print_filename)
3270 #define CHECK_END if (ret < 0) goto end
3277 for (
i = 0;
i <
ifile.fmt_ctx->nb_streams;
i++) {
3280 ifile.fmt_ctx->streams[
i],
3351 print_fmt(
"copyright",
"Copyright (c) %d-%d the FFmpeg developers",
3354 print_str(
"configuration", FFMPEG_CONFIGURATION);
3360 #define SHOW_LIB_VERSION(libname, LIBNAME) \
3362 if (CONFIG_##LIBNAME) { \
3363 unsigned int version = libname##_version(); \
3364 writer_print_section_header(w, SECTION_ID_LIBRARY_VERSION); \
3365 print_str("name", "lib" #libname); \
3366 print_int("major", LIB##LIBNAME##_VERSION_MAJOR); \
3367 print_int("minor", LIB##LIBNAME##_VERSION_MINOR); \
3368 print_int("micro", LIB##LIBNAME##_VERSION_MICRO); \
3369 print_int("version", version); \
3370 print_str("ident", LIB##LIBNAME##_IDENT); \
3371 writer_print_section_footer(w); \
3389 #define PRINT_PIX_FMT_FLAG(flagname, name) \
3391 print_int(name, !!(pixdesc->flags & AV_PIX_FMT_FLAG_##flagname)); \
3486 "'%s' matches section with unique name '%s'\n", section_name,
3497 const char *p =
arg;
3505 if (!section_name) {
3507 "Missing section name for option '%s'\n", opt);
3513 while (*p && *p !=
':') {
3518 "Adding '%s' to the entries to show in section '%s'\n",
3519 entry, section_name);
3554 "Option '%s' is deprecated, use '-show_entries format=%s' instead\n",
3565 "Argument '%s' provided as input filename, but '%s' was already specified.\n",
3569 if (!strcmp(
arg,
"-"))
3606 char *next, *p, *spec =
av_strdup(interval_spec);
3617 next = strchr(spec,
'%');
3659 lli = strtoll(p, &tail, 10);
3660 if (*tail || lli < 0) {
3662 "Invalid or negative value '%s' for duration number of frames\n", p);
3665 interval->
end = lli;
3687 char *p, *spec =
av_strdup(intervals_spec);
3692 for (n = 0, p = spec; *p; p++)
3706 for (
i = 0; p;
i++) {
3710 next = strchr(p,
',');
3766 "W.. = Section is a wrapper (contains other sections, no local entries)\n"
3767 ".A. = Section contains an array of elements of the same type\n"
3768 "..V = Section may contain a variable number of fields with variable keys\n"
3769 "FLAGS NAME/UNIQUE_NAME\n"
3782 #define DEFINE_OPT_SHOW_SECTION(section, target_section_id) \
3783 static int opt_show_##section(void *optctx, const char *opt, const char *arg) \
3785 mark_section_show_entries(SECTION_ID_##target_section_id, 1, NULL); \
3806 "use binary prefixes for byte units" },
3808 "use sexagesimal format HOURS:MM:SS.MICROSECONDS for time units" },
3810 "prettify the format of displayed values, make it more human readable" },
3812 "set the output printing format (available formats are: default, compact, csv, flat, ini, json, xml)",
"format" },
3815 {
"sections",
OPT_EXIT, {.func_arg =
opt_sections},
"print sections structure and section information, and exit" },
3818 {
"show_error", 0, { .func_arg = &opt_show_error },
"show probing error" },
3819 {
"show_format", 0, { .func_arg = &opt_show_format },
"show format/container info" },
3820 {
"show_frames", 0, { .func_arg = &opt_show_frames },
"show frames info" },
3822 "show a particular entry from the format/container info",
"entry" },
3824 "show a set of specified entries",
"entry_list" },
3828 {
"show_packets", 0, { .func_arg = &opt_show_packets },
"show packets info" },
3829 {
"show_programs", 0, { .func_arg = &opt_show_programs },
"show programs info" },
3830 {
"show_streams", 0, { .func_arg = &opt_show_streams },
"show streams info" },
3831 {
"show_chapters", 0, { .func_arg = &opt_show_chapters },
"show chapters info" },
3834 {
"show_program_version", 0, { .func_arg = &opt_show_program_version },
"show ffprobe version" },
3835 {
"show_library_versions", 0, { .func_arg = &opt_show_library_versions },
"show library versions" },
3836 {
"show_versions", 0, { .func_arg = &
opt_show_versions },
"show program and library versions" },
3837 {
"show_pixel_formats", 0, { .func_arg = &opt_show_pixel_formats },
"show pixel format descriptions" },
3847 "read and decode the streams to fill missing information with heuristics" },
3863 #define SET_DO_SHOW(id, varname) do { \
3864 if (check_section_show_entries(SECTION_ID_##id)) \
3865 do_show_##varname = 1; \
3873 char *w_name =
NULL, *w_args =
NULL;
3908 SET_DO_SHOW(PIXEL_FORMAT_FLAGS, pixel_format_flags);
3909 SET_DO_SHOW(PIXEL_FORMAT_COMPONENTS, pixel_format_components);
3913 SET_DO_SHOW(STREAM_DISPOSITION, stream_disposition);
3914 SET_DO_SHOW(PROGRAM_STREAM_DISPOSITION, stream_disposition);
3926 "-bitexact and -show_program_version or -show_library_versions "
3927 "options are incompatible\n");
3943 "No name specified for the output format\n");
3954 "Unknown hash algorithm '%s'\nKnown algorithms:",