Internet Archive Blogs

A blog from the team at archive.org

Internet Archive Blogs
Skip to content
  • Blog
  • Announcements
  • 25th Anniversary
  • archive.org
  • About
  • Events
  • Developers
  • Donate

files.xml and metadata API now showing video file’s width, height, and duration

Posted on February 9, 2013 by traceypooh

For those video oriented of you who inspect our _files.xml directly, or use a metadata API (JSON) for items, you’ll likely be pleased to know that for all new items, as well as items that update (eg: review posted, metadata changes, rederives), that:

we now detect and stamp into each video file fields for
width
height
length (duration in seconds)

here is an example file listing (in JSON results) demonstrating:
{“name”:”anamorphic.mov”,
“source”:”original”,
“format”:”h.264″,
“length”:”3.03″,
“height”:”720″,
“width”:”1280″,
“mtime”:”1355278126″,
“size”:”375646″,
“md5″:”94a0b479869ab7ee997b36b45d9edb7a”,
“crc32″:”0b8e4162”,
“sha1″:”c21b65ee8e9153f0812d7397fe89224d6f3f80fd”}

we will even attempt to “correct” the width in the case of “anamorphic” videos (eg: the pixels are “rectangular” and not “square”) to the scaled width in square pixel terms (like the one above)

cheers!

Posted in Technical, Television Archive, Video Archive | Tagged ffmpeg, JSON, metadata, movies, video |

Post navigation

← Browser distribution for those using Archive.org new video and audio player — video multiple qualities, related videos, and more! →
Share to Facebook Share to Twitter

Recent Posts

  • Stand with Internet Archive as we fight for the digital rights of all libraries
  • Internet Archive Press Conference: March 20, 2023
  • Press conference statement: Brewster Kahle, Internet Archive
  • Press conference statement: Lila Bailey, Internet Archive
  • Press conference statement: Lawrence Lessig, Harvard Law

Recent Comments

  • Austin Buchanan on Stand with Internet Archive as we fight for the digital rights of all libraries
  • Randy on Internet Archive Press Conference: March 20, 2023
  • S maltophilia on Press conference statement: Brewster Kahle, Internet Archive
  • Lila on Press conference statement: Lawrence Lessig, Harvard Law
  • Adam on Stand with Internet Archive as we fight for the digital rights of all libraries

Categories

  • 78rpm
  • Announcements
  • Archive Version 2
  • Archive-It
  • Audio Archive
  • Books Archive
  • Cool items
  • Education Archive
  • Emulation
  • Event
  • Image Archive
  • Jobs
  • Lending Books
  • Live Music Archive
  • Movie Archive
  • Music
  • News
  • Newsletter
  • Open Library
  • Past Event
  • Software Archive
  • Technical
  • Television Archive
  • Uncategorized
  • Upcoming Event
  • Video Archive
  • Wayback Machine – Web Archive
  • Web & Data Services

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress