{"id":21076210,"url":"https://github.com/rust-av/av-scenechange","last_synced_at":"2026-01-21T02:01:17.452Z","repository":{"id":41416644,"uuid":"221598838","full_name":"rust-av/av-scenechange","owner":"rust-av","description":"Scenechange detection tool","archived":false,"fork":false,"pushed_at":"2025-12-27T06:59:11.000Z","size":50307,"stargazers_count":23,"open_issues_count":7,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-28T22:56:54.245Z","etag":null,"topics":["hacktoberfest","scenechange-detection"],"latest_commit_sha":null,"homepage":"","language":"Assembly","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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-11-14T02:57:55.000Z","updated_at":"2025-12-27T06:58:24.000Z","dependencies_parsed_at":"2023-12-28T19:26:07.095Z","dependency_job_id":"20a8a229-e97b-4d2e-b936-12f3d0a33223","html_url":"https://github.com/rust-av/av-scenechange","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/rust-av/av-scenechange","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-av%2Fav-scenechange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-av%2Fav-scenechange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-av%2Fav-scenechange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-av%2Fav-scenechange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-av","download_url":"https://codeload.github.com/rust-av/av-scenechange/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-av%2Fav-scenechange/sbom","scorecard":{"id":790370,"data":{"date":"2025-08-11","repo":{"name":"github.com/rust-av/av-scenechange","commit":"48b0ed470f4bcac2b56b496ecb07f3dbaa4e7c39"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":10,"reason":"23 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 4/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/av-scenechange.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.17.3 not signed: https://api.github.com/repos/rust-av/av-scenechange/releases/237752579","Warn: release artifact v0.17.2 not signed: https://api.github.com/repos/rust-av/av-scenechange/releases/232079646","Warn: release artifact v0.17.1 not signed: https://api.github.com/repos/rust-av/av-scenechange/releases/230775514","Warn: release artifact v0.17.0 not signed: https://api.github.com/repos/rust-av/av-scenechange/releases/229192486","Warn: release artifact v0.16.0 not signed: https://api.github.com/repos/rust-av/av-scenechange/releases/228975146","Warn: release artifact v0.17.3 does not have provenance: https://api.github.com/repos/rust-av/av-scenechange/releases/237752579","Warn: release artifact v0.17.2 does not have provenance: https://api.github.com/repos/rust-av/av-scenechange/releases/232079646","Warn: release artifact v0.17.1 does not have provenance: https://api.github.com/repos/rust-av/av-scenechange/releases/230775514","Warn: release artifact v0.17.0 does not have provenance: https://api.github.com/repos/rust-av/av-scenechange/releases/229192486","Warn: release artifact v0.16.0 does not have provenance: https://api.github.com/repos/rust-av/av-scenechange/releases/228975146"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Info: Possibly incomplete results: error parsing shell code: reached ( without matching ${ with }: .github/workflows/av-scenechange.yml:47","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/av-scenechange.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/av-scenechange.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-av/av-scenechange/deploy.yml/master?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  11 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T07:21:09.892Z","repository_id":41416644,"created_at":"2025-08-23T07:21:09.893Z","updated_at":"2025-08-23T07:21:09.893Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28622472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"online","status_checked_at":"2026-01-21T02:00:08.227Z","response_time":86,"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":["hacktoberfest","scenechange-detection"],"created_at":"2024-11-19T19:27:20.954Z","updated_at":"2026-01-21T02:01:17.447Z","avatar_url":"https://github.com/rust-av.png","language":"Assembly","funding_links":[],"categories":["Language and platform specific libraries"],"sub_categories":["Rust"],"readme":"# av-scenechange\n\n[![Actions Status](https://github.com/rust-av/av-scenechange/workflows/av-scenechange/badge.svg)](https://github.com/rust-av/av-scenechange/actions)\n[![docs.rs](https://img.shields.io/docsrs/av-scenechange)](https://docs.rs/av-scenechange/latest/av-scenechange/)\n[![Crates.io Version](https://img.shields.io/crates/v/av-scenechange)](https://crates.io/crates/av-scenechange)\n[![Crates.io License](https://img.shields.io/crates/l/av-scenechange)](LICENSE)\n\nScenechange detection tool based on rav1e's scene detection code. It is focused around detecting scenechange points that will be optimal for an encoder to place keyframes. It may not be the best tool if your use case is to generate scene changes as a human would interpret them--for that there are other tools such as SCXvid and WWXD.\n\n## Usage\n\n### Command Line\n\nThe basic usage of `av-scenechange` is:\n\n```bash\nav-scenechange input.y4m\n```\n\nThis will output the scenechange detection results as JSON to stdout.\n\n#### Options\n\n- `-o, --output \u003cFILE\u003e`: Write results to a file instead of stdout\n- `-s, --speed \u003cLEVEL\u003e`: Set detection speed (0 = best quality, 1 = fastest mode, default: 0)\n- `--no-flash-detection`: Disable detection of short scene flashes\n- `--min-scenecut \u003cFRAMES\u003e`: Set minimum interval between consecutive scenecuts\n- `--max-scenecut \u003cFRAMES\u003e`: Set maximum interval between consecutive scenecuts (forces a scenecut)\n\n#### Examples\n\n```bash\n# Basic usage with Y4M input\nav-scenechange video.y4m\n\n# Save results to a file\nav-scenechange input.y4m -o results.json\n\n# Use faster but less accurate detection mode\nav-scenechange input.y4m --speed 1\n\n# Set minimum distance between scenecuts to 24 frames\nav-scenechange input.y4m --min-scenecut 24\n\n# Read from stdin\ncat input.y4m | av-scenechange -\n```\n\n### Library Usage\n\n`av-scenechange` can also be used as a Rust library:\n\n```rust\nuse av_scenechange::{detect_scene_changes, DetectionOptions, SceneDetectionSpeed};\n\nlet mut decoder = // ... initialize your decoder\nlet options = DetectionOptions {\n    analysis_speed: SceneDetectionSpeed::Standard,\n    detect_flashes: true,\n    min_scenecut_distance: Some(24),\n    max_scenecut_distance: Some(250),\n    ..DetectionOptions::default()\n};\n\nlet results = detect_scene_changes(\u0026mut decoder, options, None, None)?;\n```\n\n## Compiling\n\n### Prerequisites\n\n- **Rust**: Minimum version 1.86\n- **NASM**: Required for optimized assembly code (can be disabled with `--no-default-features`)\n\n#### Installing NASM\n\n**Ubuntu/Debian:**\n\n```bash\nsudo apt install nasm\n```\n\n**Fedora/RHEL:**\n\n```bash\nsudo dnf install nasm\n```\n\n**macOS:**\n\n```bash\nbrew install nasm\n```\n\n**Windows:**\nDownload from [nasm.us](https://www.nasm.us/) or use package managers like chocolatey or scoop.\n\n### Building from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/rust-av/av-scenechange.git\ncd av-scenechange\n\n# Build with default features (includes optimized assembly)\ncargo build --release\n\n# Build without assembly optimizations (no NASM required)\ncargo build --release --no-default-features --features binary\n\n# Build with additional features\ncargo build --release --features ffmpeg  # FFmpeg input support\ncargo build --release --features vapoursynth  # VapourSynth input support\n```\n\n### Install from Crates.io\n\n```bash\n# Install the latest version (automatically uses release optimizations)\ncargo install av-scenechange\n\n# Install with ffmpeg, ffms2, and vapoursynth input support\ncargo install av-scenechange --features ffmpeg,ffms2,vapoursynth\n```\n\nThis will install the binary to `~/.cargo/bin/av-scenechange`.\n\n### Available Features\n\n- `binary` (default): Enables command-line interface\n- `asm` (default): Enables optimized assembly code (requires NASM)\n- `serialize`: Enables JSON serialization support\n- `ffms2`: Adds FFMS2 decoder support\n- `ffmpeg`: Adds FFmpeg decoder support\n- `vapoursynth`: Adds VapourSynth decoder support\n- `devel`: Development features (logging, console output)\n- `tracing`: Chrome tracing support for performance profiling\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-av%2Fav-scenechange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-av%2Fav-scenechange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-av%2Fav-scenechange/lists"}