Lines Matching refs:metadata
382 * Parse a metadata specifier passed as 'arg' parameter.
383 * @param arg metadata string to parse
384 * @param type metadata type is written here -- g(lobal)/s(tream)/c(hapter)/p(rogram)
397 av_log(NULL, AV_LOG_FATAL, "Invalid metadata specifier %s.\n", arg);
408 av_log(NULL, AV_LOG_FATAL, "Invalid metadata type %c.\n", *arg);
450 av_log(NULL, AV_LOG_FATAL, "Invalid %s index %d while processing metadata maps.\n",\
458 meta = &context->metadata;\
462 meta = &context->chapters[index]->metadata;\
466 meta = &context->programs[index]->metadata;\
480 meta_in = &ic->streams[i]->metadata;
494 meta_out = &oc->streams[i]->metadata;
512 parse_option(o, "metadata", buf, options);
514 av_log(NULL, AV_LOG_WARNING, "%s is deprecated, set the 'creation_time' metadata "
760 if (!*filename && (e = av_dict_get(st->metadata, "filename", NULL, 0)))
1603 av_dict_copy(&out_ch->metadata, in_ch->metadata, 0);
1790 int err = parse_option(o, "metadata", "creation_time=now", options);
1966 av_dict_set(&ost->st->metadata, "filename", (p && *p) ? p + 1 : o->attachments[i], AV_DICT_DONT_OVERWRITE);
2047 /* copy metadata */
2053 av_log(NULL, AV_LOG_FATAL, "Invalid input file index %d while processing metadata maps\n", in_file_index);
2081 /* copy global metadata by default */
2083 av_dict_copy(&oc->metadata, input_files[0]->ctx->metadata,
2086 av_dict_set(&oc->metadata, "duration", NULL, 0);
2087 av_dict_set(&oc->metadata, "creation_time", NULL, 0);
2095 av_dict_copy(&output_streams[i]->st->metadata, ist->st->metadata, AV_DICT_DONT_OVERWRITE);
2097 av_dict_set(&output_streams[i]->st->metadata, "encoder", NULL, 0);
2100 /* process manually set metadata */
2107 val = strchr(o->metadata[i].u.str, '=');
2109 av_log(NULL, AV_LOG_FATAL, "No '=' character in metadata string %s.\n",
2110 o->metadata[i].u.str);
2115 parse_meta_type(o->metadata[i].specifier, &type, &index, &stream_spec);
2119 av_dict_set(&oc->streams[j]->metadata, o->metadata[i].u.str, *val ? val : NULL, 0);
2127 m = &oc->metadata;
2131 av_log(NULL, AV_LOG_FATAL, "Invalid chapter index %d in metadata specifier.\n", index);
2134 m = &oc->chapters[index]->metadata;
2137 av_log(NULL, AV_LOG_FATAL, "Invalid metadata specifier %s.\n", o->metadata[i].specifier);
2140 av_dict_set(m, o->metadata[i].u.str, *val ? val : NULL, 0);
2469 int ret = parse_option(o, "metadata:g", tcr, options);
2753 "set metadata information of outfile from infile",
2754 "outfile[,metadata]:infile[,metadata]" },
2780 { "metadata", HAS_ARG | OPT_STRING | OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(metadata) },
2781 "add metadata", "string=string" },