I need to extract the metadata information from a video file as well as a thumbnail for that file. For this I have tried ffmpeg and the metadata (such as duration, resolution, codecs, creation_time etc) is seen on the stdout. If I need to use these I should parse the stdout and extract the metadata I need.
I've also read about the MediaInfo utility which also delivers metadata. I'm not sure if it can deliver thumbnails. What I also know is that MediaInfo does not use ffmpeg under the hood.
I was wondering if anyone has a working knowledge of both ffmpeg and MediaInfo and with respect to the requirement I mentioned above, whether someone could suggest which of the two is a better suited.
Memory footprint comparison of the two would also be great.
The correct answer is neither ffmpeg nor mediainfo. Well, not the complete executables anyway.
ffmpeg is comprised of a series of libraries, including libavformat
, which allows you to work with the multimedia container formats. Using libavformat and libavcodec by Martin Böhme should give you a good introduction.