[FFmpeg-user] XSLT for ffprobe-XML to METS conversion

Peter B. pb at das-werkstatt.com
Tue Aug 7 15:41:20 CEST 2012


Hi,

I've took the time to write a quick "ffmpeg2mets.xsl" stylesheet,  
which transforms the technical metadata from ffprobe's XML output into  
a standardized structure for audio/video as defined by the U.S. Libary  
of Congress [1][2], and stored in a METS container XML [3].

Duration is stored in ISO8601 format [4], bitrate in kbps and  
samplerate in kHz.

It's no big thing, and also not very robust or pimped, but I thought  
I'd post it in case someone could need it, too:

http://dva-profession.svn.sourceforge.net/viewvc/dva-profession/trunk/misc/metadata/ffprobe2mets.xsl?revision=109&view=markup


Have fun!
Pb


== References:
[1] http://lcweb2.loc.gov/mets/Schemas/AMD.xsd
[2] http://lcweb2.loc.gov/mets/Schemas/VMD.xsd
[3] http://sunsite3.berkeley.edu/mets/diagram/#a51
[4] http://en.wikipedia.org/wiki/ISO_8601#Durations



More information about the ffmpeg-user mailing list