{"id":17000311,"url":"https://github.com/zmwangx/debian-metadata","last_synced_at":"2025-09-16T12:52:34.368Z","repository":{"id":69301321,"uuid":"283109862","full_name":"zmwangx/debian-metadata","owner":"zmwangx","description":"Debian packaging repo for zmwangx/metadata","archived":false,"fork":false,"pushed_at":"2020-07-29T11:35:57.000Z","size":12786,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T08:25:42.302Z","etag":null,"topics":["debian","debian-package","ffmpeg","multimedia"],"latest_commit_sha":null,"homepage":"https://launchpad.net/~zmwangx/+archive/ubuntu/metadata/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmwangx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-28T05:30:52.000Z","updated_at":"2020-07-28T05:35:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"4833ed4a-3e2f-4c01-b82e-8f826909c275","html_url":"https://github.com/zmwangx/debian-metadata","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/zmwangx/debian-metadata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmwangx%2Fdebian-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmwangx%2Fdebian-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmwangx%2Fdebian-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmwangx%2Fdebian-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmwangx","download_url":"https://codeload.github.com/zmwangx/debian-metadata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmwangx%2Fdebian-metadata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275421641,"owners_count":25462041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debian","debian-package","ffmpeg","multimedia"],"created_at":"2024-10-14T04:11:46.719Z","updated_at":"2025-09-16T12:52:34.321Z","avatar_url":"https://github.com/zmwangx.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# metadata\n\n[![Homebrew](https://img.shields.io/badge/dynamic/json.svg?url=https://api.github.com/repos/zmwangx/metadata/tags\u0026label=homebrew\u0026query=$[0].name\u0026colorB=orange\u0026maxAge=1800)](#homebrew)\n[![crates.io](https://img.shields.io/crates/v/metadata.svg)](https://crates.io/crates/metadata)\n[![Build status](https://github.com/zmwangx/metadata/workflows/test/badge.svg?branch=master)](https://github.com/zmwangx/metadata/actions)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [History](#history)\n- [Installation](#installation)\n  - [Homebrew](#homebrew)\n  - [Debian/Ubuntu](#debianubuntu)\n- [Usage](#usage)\n- [Performance](#performance)\n- [Bugs](#bugs)\n- [Copyright](#copyright)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n`metadata` is a media metadata parser and formatter designed for human consumption. Powered by FFmpeg.\n\nExample:\n\n```\n$ metadata '20160907 Apple Special Event.m4v'\nTitle:                  Apple Special Event, September 2016 (1080p)\nFilename:               20160907 Apple Special Event.m4v\nFile size:              6825755188 (6.83GB, 6.36GiB)\nContainer format:       MPEG-4 Part 14 (M4V)\nDuration:               01:59:15.88\nPixel dimensions:       1920x800\nSample aspect ratio:    1:1\nDisplay aspect ratio:   12:5\nScan type:              Progressive scan*\nFrame rate:             29.97 fps\nBit rate:               7631 kb/s\n    #0: Video, H.264 (High Profile level 4), yuv420p, 1920x800 (SAR 1:1, DAR 12:5), 29.97 fps, 7500 kb/s\n    #1: Audio (und), AAC (LC), 48000 Hz, stereo, 125 kb/s\n    #2: Subtitle (eng), EIA-608 closed captions\n\n```\n\nCompare this to `ffprobe` or `mediainfo` (both great tools, just not so human-readable):\n\n![ffprobe](https://user-images.githubusercontent.com/4149852/45572668-f5b82c00-b837-11e8-8295-f066bca019e9.png)\n![mediainfo](https://user-images.githubusercontent.com/4149852/45572674-fa7ce000-b837-11e8-8fdc-dcccc57d55d9.png)\n\n(`mediainfo` prints so much, the output doesn't even fit on my screen with 85 lines. Now try using it in a 80x24 terminal.)\n\n`metadata` can print tags too if you want to, hopefully better organized:\n\n```\n$ metadata -t '20160907 Apple Special Event.m4v'\nTitle:                  Apple Special Event, September 2016 (1080p)\nFilename:               20160907 Apple Special Event.m4v\nFile size:              6825755188 (6.83GB, 6.36GiB)\nContainer format:       MPEG-4 Part 14 (M4V)\nDuration:               01:59:15.88\nPixel dimensions:       1920x800\nSample aspect ratio:    1:1\nDisplay aspect ratio:   12:5\nScan type:              Progressive scan*\nFrame rate:             29.97 fps\nBit rate:               7631 kb/s\nStreams:\n    #0: Video, H.264 (High Profile level 4), yuv420p, 1920x800 (SAR 1:1, DAR 12:5), 29.97 fps, 7500 kb/s\n    #1: Audio (und), AAC (LC), 48000 Hz, stereo, 125 kb/s\n    #2: Subtitle (eng), EIA-608 closed captions\nTags:\n    title:              Apple Special Event, September 2016 (1080p)\n    artist:             Apple\n    album:              Apple Keynotes (1080p)\n    compilation:        0\n    description:        iPhone 7, iPhone 7 Plus, AirPods, Apple Watch Series 2, Apple Watch Hermès and Apple Watch Nike+\n    podcast:            1\n    episode_uid:        104\n    synopsis:           See Apple CEO Tim Cook and team introduce the iPhone 7, iPhone 7 Plus, AirPods, Apple Watch Series 2, Apple Watch Hermès and Apple Watch Nike+.\n    genre:              Podcast\n    gapless_playback:   0\n    date:               2016-09-09T12:00:00Z\n    rating:             0\n    season_number:      0\n    episode_sort:       0\n    media_type:         0\n  #2\n    rotate:             0\n    language:           eng\n\n```\n\nYou can also request *all* tags with `-A, --all-tags`. Output not shown here for the sake of brevity (that ship has sailed, but still).\n\n## History\n\n`metadata` is a Rust port of the Python tool of the same name bundled in my [storyboard](https://pypi.org/project/storyboard/) project. I started the storyboard project to replicate the storyboard/thumbnail images generated by some proprietary media players, in order to facilitate media file sharing on online forums. While I long stopped sharing media files online (and hence stopped using `storyboard`), I still love the command line metadata formatter that came out of the storyboard effort, and use it all the time in place of `ffprobe` or `mediainfo`. Years later, `metadata` could use some decoupling and refresh, and I could learn myself some Rust, so I started this port.\n\nSince this is my intro to Rust project, *the code is guaranteed to be shitty*.\n\n## Installation\n\n### Homebrew\n\nOn macOS, `metadata` can be installed with Homebrew:\n\n```console\n$ brew tap zmwangx/metadata https://github.com/zmwangx/metadata\n$ brew install zmwangx/metadata/metadata\n```\n\n### Ubuntu PPA\n\nOn Ubuntu 18.04 and 20.04, `metadata` can be installed from [ppa:zmwangx/metadata](https://launchpad.net/~zmwangx/+archive/ubuntu/metadata/):\n\n```console\n$ add-apt-repository ppa:zmwangx/metadata\n$ apt update \u0026\u0026 apt install metadata\n```\n\n### Building from source\n\n**FFmpeg with development headers and the Rust toolchain are required.** FFmpeg 3.4 and later are supported.\n\nOn macOS, the following command should satisfy the non-Rust dependencies:\n\n```console\n$ brew install ffmpeg pkg-config\n```\n\nOn Debian/Ubuntu, the following command should satisfy the non-Rust dependencies:\n\n```\n$ apt install -y build-essential clang libavcodec-dev libavformat-dev libavutil-dev pkg-config\n```\n\nSimilarly for other distros.\n\nThe basic build command to run once you have the dependencies is\n\n```console\n$ make release\n```\n\nYou should find `metadata` and `metadata.1` in `dist/\u003cversion\u003e/`.\n\n## Usage\n\n```console\n$ metadata -h\nmetadata 0.1.4\nZhiming Wang \u003cmetadata@zhimingwang.org\u003e\nMedia file metadata for human consumption.\n\nUSAGE:\n    metadata [FLAGS] \u003cFILE\u003e...\n\nFLAGS:\n    -A, --all-tags    Print all metadata tags\n    -c, --checksum    Include file checksum(s)\n    -h, --help        Prints help information\n    -s, --scan        Decode frames to determine scan type (slower, but determines interlaced more accurately; see man\n                      page for details)\n    -t, --tags        Print metadata tags, except mundane ones\n    -V, --version     Prints version information\n\nARGS:\n    \u003cFILE\u003e...    Media file(s)\n```\n\nThe [man page](man/metadata.1.adoc) has more details.\n\n## Performance\n\n`metadata` is fast (a vast improvement over the old Python tool). I tested a collection of ~1300 video files on one of my USB 3.0 media drives, and `metadata` (with `xargs`) managed to chew through all of them within 50 seconds, less than 40ms per file on average. It might be faster for files hosted on a native SSD. `ffprobe` was actually slower in the test since it only accepts one file at a time.\n\n## Bugs\n\n\u003chttps://github.com/zmwangx/metadata/issues\u003e.\n\n## Copyright\n\nCopyright (c) 2018-2020 Zhiming Wang \u003cmetadata@zhimingwang.org\u003e. The MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmwangx%2Fdebian-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmwangx%2Fdebian-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmwangx%2Fdebian-metadata/lists"}