Results 1 to 3 of 3

Thread: File format for just storing metadata tags?

  1. #1
    Join Date
    Sep 2009
    Location
    Los Angeles, CA
    Beans
    148
    Distro
    Ubuntu 12.04 Precise Pangolin

    File format for just storing metadata tags?

    Is there a file format that is just for storing metadata tags (of all groups and families)?

    I am trying to use exiftool to export tags from a collection of media files into one single file containing only metadata tags.

    Does such a format exist?

  2. #2
    Join Date
    Oct 2010
    Location
    London
    Beans
    481
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: File format for just storing metadata tags?

    FFmpeg can output metadata into a plain txt file, as described here.

    Usage:

    Code:
    ##  Extract metadata to metadata.txt
    ffmpeg -i input.mp4 -f ffmetadata metadata.txt
    ##  Take metadata from metadata.txt and add it to input.mp4,
    ##  creating output.mp4
    ffmpeg -i input.mp4 -f ffmetadata -i metadata.txt -c copy -map_metadata 1 output.mp4
    I don't think that it's a particularly widely-supported format, but it's pretty amenable to regex (one tag per line, with the tag and its contents separated by an '='). For example, to grab the title metadata, you could use something like:

    Code:
    sed -n '/title=/s/.*=\(.*$\)/\1/p' metadata.txt
    Last edited by evilsoup; January 30th, 2013 at 11:26 PM.

  3. #3
    Join Date
    Sep 2009
    Location
    Los Angeles, CA
    Beans
    148
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: File format for just storing metadata tags?

    Quote Originally Posted by evilsoup View Post
    FFmpeg can output metadata into a plain txt file, as described here.
    [/code]
    Seems not too complex, but does anyone know if there is a library to IO this file format and how widely used is it?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •