{"id":15043594,"url":"https://github.com/nateraw/encoded-video","last_synced_at":"2025-07-12T04:34:09.791Z","repository":{"id":57426365,"uuid":"422018035","full_name":"nateraw/encoded-video","owner":"nateraw","description":"Utilities for working with videos","archived":false,"fork":false,"pushed_at":"2025-07-05T00:29:42.000Z","size":1785,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-05T01:27:10.731Z","etag":null,"topics":["numpy","pyav","serialization","video-processing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nateraw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-10-28T00:49:00.000Z","updated_at":"2025-07-05T00:29:45.000Z","dependencies_parsed_at":"2025-07-12T04:32:13.340Z","dependency_job_id":null,"html_url":"https://github.com/nateraw/encoded-video","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nateraw/encoded-video","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nateraw%2Fencoded-video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nateraw%2Fencoded-video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nateraw%2Fencoded-video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nateraw%2Fencoded-video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nateraw","download_url":"https://codeload.github.com/nateraw/encoded-video/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nateraw%2Fencoded-video/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264939612,"owners_count":23686208,"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":["numpy","pyav","serialization","video-processing"],"created_at":"2024-09-24T20:49:19.143Z","updated_at":"2025-07-12T04:34:08.738Z","avatar_url":"https://github.com/nateraw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# encoded-video\n\n\u003ca href=\"https://colab.research.google.com/github/nateraw/encoded-video/blob/main/examples/encoded_video_demo.ipynb\" target=\"_parent\"\u003e\u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/\u003e\u003c/a\u003e\n\nUtilities for serializing/deserializing videos w/ `pyav` and `numpy`. \n\n## Purpose\n\n1. Have a helpful API for working with videos\n2. Liberate myself from relying on `torch` or `tensorflow` to do the above\n3. Serialize/deserialize videos without writing directly to file (helpful for sending/recieving videos over APIs)\n\n## Acknowledgments\n\nThis is more or less a `torch`-less version of `EncodedVideo` from [`pytorchvideo`](https://github.com/facebookresearch/pytorchvideo).\n\n## Setup\n\n```\npip install encoded-video\n```\n\n## Usage\n\n```python\nimport numpy as np\nfrom encoded_video import bytes_to_video, read_video, video_to_bytes\n\nvid = read_video('archery.mp4')\nvideo_arr = vid['video']  # (T, H, W, C)\naudio_arr = vid['audio']  # (S,)\n\nout_bytes = video_to_bytes(\n    video_arr,\n    fps=30,\n    audio_array=np.expand_dims(audio_arr, 0),\n    audio_fps=vid['audio_fps'],\n    audio_codec='aac'\n)\n\nrestored_video = bytes_to_video(out_bytes)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnateraw%2Fencoded-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnateraw%2Fencoded-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnateraw%2Fencoded-video/lists"}