{"id":13587048,"url":"https://github.com/rust-av/av-metrics","last_synced_at":"2025-04-05T20:08:23.878Z","repository":{"id":46629879,"uuid":"204959395","full_name":"rust-av/av-metrics","owner":"rust-av","description":"Quality metrics","archived":false,"fork":false,"pushed_at":"2024-04-07T13:20:31.000Z","size":4434,"stargazers_count":52,"open_issues_count":13,"forks_count":11,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-05-03T01:53:39.560Z","etag":null,"topics":["ciede2000","hacktoberfest","psnr","quality-metrics","rust","rust-av","ssim"],"latest_commit_sha":null,"homepage":"","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/rust-av.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-08-28T15:04:45.000Z","updated_at":"2024-01-31T17:44:28.000Z","dependencies_parsed_at":"2024-04-07T14:28:37.093Z","dependency_job_id":"52c7392b-eadd-4838-aef4-805ffc9b3f2d","html_url":"https://github.com/rust-av/av-metrics","commit_stats":{"total_commits":368,"total_committers":10,"mean_commits":36.8,"dds":0.4836956521739131,"last_synced_commit":"03c5810806103174abf92dce2788f6f0b5b9e9e9"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-av%2Fav-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-av%2Fav-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-av%2Fav-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-av%2Fav-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-av","download_url":"https://codeload.github.com/rust-av/av-metrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393570,"owners_count":20931813,"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","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":["ciede2000","hacktoberfest","psnr","quality-metrics","rust","rust-av","ssim"],"created_at":"2024-08-01T15:05:59.269Z","updated_at":"2025-04-05T20:08:23.860Z","avatar_url":"https://github.com/rust-av.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Quality metrics\n\n[![crate](https://img.shields.io/crates/v/av-metrics.svg)](https://crates.io/crates/av-metrics)\n[![docs](https://docs.rs/av-metrics/badge.svg)](https://docs.rs/av-metrics/)\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Actions Status](https://github.com/rust-av/av-metrics/workflows/ci/badge.svg)](https://github.com/rust-av/av-metrics/actions)\n[![IRC](https://img.shields.io/badge/irc-%23rust--av-blue.svg)](http://webchat.freenode.net?channels=%23rust-av\u0026uio=d4)\n[![zulip chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://rust-av.zulipchat.com/#narrow/stream/259407-av-metrics)\n\n\n## Video Metrics implemented\n\n - [X] PSNR\n - [X] APSNR\n - [X] PSNR HVS\n - [X] SSIM\n - [X] MSSSIM\n - [X] CIEDE2000\n\n## Installation\n\n### As a library\n\nAdd the following to your Cargo.toml\n```toml\nav-metrics = \"0.7\"\n```\n\nThen check out [the API docs](https://docs.rs/av-metrics/).\n\n### As a binary\n\n#### Windows\n\nDownload the latest binary from the [Releases](https://github.com/rust-av/av-metrics/releases) tab.\n\n#### OS X and Linux\n\nPre-built binaries are coming soon. In the meantime, have the latest stable Rust\ninstalled and run the following:\n\n```\ncargo install av-metrics-tool\n```\n\n#### Usage\n\nFrom any terminal, run the executable with your two video files as arguments:\n\n```\n➜ av-metrics-tool lossless.y4m lossy.y4m\n```\n\nYou should receive output for all supported metrics:\n\n```\nPSNR - Y: 32.5281  U: 36.4083  V: 39.8238  Avg: 33.6861\nAPSNR - Y: 32.5450  U: 36.4087  V: 39.8244  Avg: 33.6995\nPSNR HVS - Y: 34.3225  U: 37.7400  V: 40.5569  Avg: 31.8674\nSSIM - Y: 13.2572  U: 10.8624  V: 12.8369  Avg: 12.6899\nMSSSIM - Y: 18.8343  U: 16.6943  V: 18.7662  Avg: 18.3859\nCIEDE2000 - 36.2820\n```\n\nBy default, the tool can only decode y4m files. Both files must match in resolution, bit depth, and color sampling.\n\nAlternate input formats can be supported by enabling FFMpeg support.\nDue to limitations, this currently has to be enabled at compile time.\n\nIn the crate, this can be enabled with the feature \"ffmpeg-decode\".\nIn the binary, this can be enabled with the feature \"ffmpeg\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-av%2Fav-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-av%2Fav-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-av%2Fav-metrics/lists"}