[FFmpeg-devel] [PATCH] AVI metadata retrieval improvements

gregory.wolfe at kodakalaris.com gregory.wolfe at kodakalaris.com
Tue Mar 4 17:16:41 CET 2014


This is the second of two changes I've made as part of our upgrade to
the latest FFmpeg development branch.

This patch enhances two aspects of metadata retrieval from AVI files.
I've attached before/after command line output from ffmpeg for each
modification.  Test video files that can be used to generate the
before/after output have been uploaded to the FFmpeg FTP server.


Patched file:  libavformat/avidec.c
Description (from commit message):

Added function avi_extract_stream_metadata().  Some cameras (e.g., Fuji)
store stream metadata following the "strd" stream data tag.  Currently,
avi_read_header() calls ff_get_extradata() to read and save this data in
the codec's "extradata" slot.  This new function extracts metadata from
"extradata" by first looking for the AVIF tag, then extracting metadata
from the EXIF tags which follow it.

In a separate change, some cameras (e.g., Casio) store the date format as
yyyy/mm/dd/ hh:mm.  Added code to get rid of the "/" following "dd".


Greg Wolfe, Kodak Alaris
gregory.wolfe at kodakalaris.com






-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-AVI-metadata-retrieval-improvements.patch
Type: application/octet-stream
Size: 6463 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140304/00f2535b/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AviStreamMetadataFixBefore.txt
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140304/00f2535b/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AviStreamMetadataFixAfter.txt
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140304/00f2535b/attachment-0001.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AviDateFixBefore.txt
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140304/00f2535b/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AviDateFixAfter.txt
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140304/00f2535b/attachment-0003.txt>


More information about the ffmpeg-devel mailing list