{"id":18076207,"url":"https://github.com/scivision/pyimagevideo","last_synced_at":"2026-03-01T01:01:13.460Z","repository":{"id":27269020,"uuid":"30741849","full_name":"scivision/pyimagevideo","owner":"scivision","description":"write animated GIF, multipage append TIFF, AVI OGV video in Python","archived":false,"fork":false,"pushed_at":"2024-11-21T18:57:36.000Z","size":518,"stargazers_count":39,"open_issues_count":0,"forks_count":16,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-09-02T08:56:23.876Z","etag":null,"topics":["ffmpeg","matplotlib","opencv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scivision.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2015-02-13T05:27:12.000Z","updated_at":"2024-11-21T18:57:40.000Z","dependencies_parsed_at":"2025-01-08T08:11:45.754Z","dependency_job_id":null,"html_url":"https://github.com/scivision/pyimagevideo","commit_stats":{"total_commits":206,"total_committers":2,"mean_commits":103.0,"dds":0.004854368932038833,"last_synced_commit":"34faa00dcd780f8a721b3489bc5ac89587b0849a"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/scivision/pyimagevideo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fpyimagevideo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fpyimagevideo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fpyimagevideo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fpyimagevideo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scivision","download_url":"https://codeload.github.com/scivision/pyimagevideo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fpyimagevideo/sbom","scorecard":{"id":804954,"data":{"date":"2025-08-11","repo":{"name":"github.com/scivision/pyimagevideo","commit":"2604c4cccd1e824723892d4a34bd30b840526a6a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/scivision/pyimagevideo/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/scivision/pyimagevideo/ci.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand 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":"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":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"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":"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"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"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"}}]},"last_synced_at":"2025-08-23T11:31:56.353Z","repository_id":27269020,"created_at":"2025-08-23T11:31:56.353Z","updated_at":"2025-08-23T11:31:56.353Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29957128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ffmpeg","matplotlib","opencv"],"created_at":"2024-10-31T11:09:13.960Z","updated_at":"2026-03-01T01:01:13.281Z","avatar_url":"https://github.com/scivision.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Image and Video Read/Write Examples\n\n[![DOI](https://zenodo.org/badge/30741849.svg)](https://zenodo.org/badge/latestdoi/30741849)\n[![Actions Status](https://github.com/scivision/pyimagevideo/workflows/ci/badge.svg)](https://github.com/scivision/pyimagevideo/actions)\n[![PyPi Download stats](http://pepy.tech/badge/pyimagevideo)](http://pepy.tech/project/pyimagevideo)\n\nFunctions to **write multipage images** and **make videos** from Numpy arrays.\nAlso includes functions to test Matlab and Python OpenCV codecs.\n\n```sh\npython -m pip install -e .\n```\n\n[HDF5_to_AVI.py](./HDF5_to_AVI.py) converts HDF5 video data to AVI.\nTypically used in biomedical and science imaging, where they use HDF5 instead of TIFF,\nsince HDF5 is a very widespread, fast file format that can store arbitrarily large datasets and metadata.\nIt is recommended to researchers to use HDF5 instead of TIFF, FITS, CDF or proprietary\nformats for large data streams, including lossless video.\n\n`image_write_multipage.py` demonstration of writing multipage TIFF from\nNumpy arrays, using `tifffile` and freeimage (tifffile is 20x faster and\nmuch more featureful)\n\n`imageconv.py` converts large directory of files with same prefix to multipage TIFFs\n\n## Audio\n\nThe `audio_*.py` scripts show several methods for generating audio\noutput from Python.\n\n## Python lossless AVI writing\n\nYou can write AVI from Python without axes labels (openCV) or with labels/axes (Matplotlib)\n\n### OpenCV AVI writing\n\n[Demo_OpenCV_writeAVI.py](Demo_OpenCV_writeAVI.py) demonstrates using\nOpenCV to write video, with a lot of codecs to try. This does not insert\nany of the axes stuff that Matplotlib does, so it can be useful for\nmachine vision work. You can optinally overlay dynamic text on the\nvideo.\n\n### Matplotlib AVI writing\n\n[matplotlib_writeavi.py](matplotlib_writeavi.py) writes axes labels\nAVIs lossless using Matplotlib. Note that file-based\n`matplotlib.animation.writers['ffmpeg_file']` is used for better\nreliability, even though it takes twice as long as the pipe-based\n`ffmpeg`. On some computers, pipe-based\n`matplotlib.animation.writers['ffmpeg']` results in very distorted,\nscrambled output for some reason, with Matplotlib 1.5 and 2.0. In that\ncase, I have empirically found `ffmpeg_file` to Just Work.\n\n## Notes\n\n* errors: `libfreeimage`, how to fix them: https://www.scivision.dev/writing-multipage-tiff-with-python/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Fpyimagevideo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscivision%2Fpyimagevideo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Fpyimagevideo/lists"}