<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.17063" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>>----- Original Message ----- <BR>>From: 
Massimo Battistel <BR>>To: This list is about using libavcodec, libavformat, 
libavutil,libavdevice and libavfilter. <BR>>Sent: Tuesday, October 21, 2014 
12:34 PM<BR>>Subject: [Libav-user] Reading exif data from jpeg 
programmatically</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV>>hello,<BR>>I would like to know if it possible to read jpeg EXIF 
data using libavformat/libavcodec.</DIV>
<DIV> </DIV>
<DIV>>I can see there is an exif tag list in ffmpeg sources, but I don't know 
how to access to it.</DIV>
<DIV><BR>>Using "metadata.c" example in doxygen, I can't read anything. 
AVFormatContext->metadata is null. <BR>>Note that jpg file has exif data 
because I can read it with exiftool.</DIV>
<DIV> </DIV>
<DIV>>Can someone please point me to some doc/examples?</DIV>
<DIV> </DIV>
<DIV>>thanks,<BR>>MB</DIV>
<DIV> </DIV>
<DIV>Last I checked which was quite awhile ago, the EXIF was only available in a 
successfully decoded frame and the frames metadata.</DIV>
<DIV> </DIV>
<DIV>I mentioned this also long ago and while it does possibly make sense for 
multi-frame files, it does not make much sense for a single frame jpeg 
file.</DIV>
<DIV> </DIV>
<DIV>I don't know if this is still the case because I don't use ffmpeg for 
single frame jpegs still. It may have improved but don't 
know.</FONT></DIV></BODY></HTML>