31 #include <libavformat/avformat.h>
32 #include <libavutil/dict.h>
34 int main (
int argc,
char **argv)
41 printf(
"usage: %s <input_file>\n"
42 "example program to demonstrate the use of the libavformat metadata API.\n"
52 printf(
"%s=%s\n", tag->
key, tag->
value);
int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputFormat *fmt, AVDictionary **options)
Open an input stream and read the header.
AVDictionary * metadata
Metadata that applies to the whole file.
void avformat_free_context(AVFormatContext *s)
Free an AVFormatContext and all its streams.
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
#define AV_DICT_IGNORE_SUFFIX
void av_register_all(void)
Initialize libavformat and register all the muxers, demuxers and protocols.