项目作者: 606u

项目描述 :
A file metadata extraction library
高级语言: C
项目地址: git://github.com/606u/libfmd.git
创建时间: 2019-01-03T21:10:40Z
项目社区:https://github.com/606u/libfmd

开源协议:BSD 3-Clause "New" or "Revised" License

下载


libfmd

libfmd is a simple file metadata scanning library with (partial support) for:

  • selected FLAC, MP3, MP4 media files,
  • selected TIFF and JPEG picture files,
  • archive files, supported by libarchive.

Dependencies

Only libarchive at this time.

Build

  1. make

Sample output

  1. # fmdscan -a song.m4a movie.m4v photo.nef
  2. song.m4a (song.m4a)
  3. filetype: 'audio'
  4. mimetype: 'audio/mp4'
  5. dev -6320774731036347803, ino 20826, links 1
  6. size 121257303, blksize 131072, blocks 237217
  7. atime: 2019-10-06 21:59:15
  8. mtime: 2019-10-06 21:59:22
  9. ctime: 2019-10-06 21:59:22
  10. uid 0, gid 20, mode 0100644
  11. artist: 'Ólafur Arnalds'
  12. creator: 'X Lossless Decoder 20191004, QuickTime 7.7.3'
  13. trackno: 1
  14. album: 're:member'
  15. performer: 'Ólafur Arnalds'
  16. title: 're:member'
  17. duration: 364.648000
  18. movie.m4v (movie.m4v)
  19. filetype: 'video'
  20. mimetype: 'video/mp4'
  21. dev -6320774731036347803, ino 21080, links 1
  22. size 3091796851, blksize 131072, blocks 6042865
  23. atime: 2020-02-17 17:57:23
  24. mtime: 2020-02-17 18:01:06
  25. ctime: 2020-02-17 18:01:48
  26. uid 0, gid 20, mode 0100644
  27. description: '“Joker” centers around the iconic arch-nemesis and is an original, standalone story not seen before on the big screen. The exploration of Arthur Fleck (Joaquin Phoenix), a man disregarded by society, is not only a gritty character study, but also a broader cautionary tale.'
  28. performer: 'Todd Phillips'
  29. title: 'Joker'
  30. duration: 7309.120000
  31. photo.nef (photo.nef)
  32. filetype: 'raster'
  33. mimetype: 'image/tiff'
  34. dev -6320774731036347803, ino 19597, links 1
  35. size 14599017, blksize 131072, blocks 28705
  36. atime: 2019-01-31 19:49:41
  37. mtime: 2019-01-31 19:49:42
  38. ctime: 2019-01-31 19:49:42
  39. uid 0, gid 0, mode 0100600
  40. focal_length35: 52.000000
  41. focal_length: 35.000000
  42. iso_speed: 200
  43. fnumber: 5.000000
  44. exposure_time: 1/60
  45. artist: 'user@acme.com '
  46. creator: 'Ver.1.01 '
  47. creator: 'NIKON D300S'
  48. creator: 'NIKON CORPORATION'
  49. bits_per_sample: 24
  50. num_channels: 3
  51. frame_height: 120
  52. frame_width: 160

Documentation

Not yet; read fmd.h and fmdscan.c.