35int main (
int argc,
char **argv)
42 printf(
"usage: %s <input_file>\n"
43 "example program to demonstrate the use of the libavformat metadata API.\n"
57 printf(
"%s=%s\n", tag->
key, tag->
value);
int main(int argc, char *argv[])
static AVFormatContext * fmt_ctx
int avformat_open_input(AVFormatContext **ps, const char *url, const AVInputFormat *fmt, AVDictionary **options)
Open an input stream and read the header.
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
Read packets of a media file to get stream information.
void avformat_close_input(AVFormatContext **s)
Close an opened input AVFormatContext.
const AVDictionaryEntry * av_dict_iterate(const AVDictionary *m, const AVDictionaryEntry *prev)
Iterate over a dictionary.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level.
AVDictionary * metadata
Metadata that applies to the whole file.