{"id":20117803,"url":"https://github.com/hansalemaos/ffmpeg_stream_to_numpy","last_synced_at":"2026-04-29T21:37:41.890Z","repository":{"id":65143107,"uuid":"583390725","full_name":"hansalemaos/ffmpeg_stream_to_numpy","owner":"hansalemaos","description":"ffmpeg stream to numpy arrays","archived":false,"fork":false,"pushed_at":"2022-12-29T16:30:26.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-22T15:12:38.269Z","etag":null,"topics":["cv2","ffmpeg","numpy","python","stream","video"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ffmpeg-stream-to-numpy/","language":"Python","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/hansalemaos.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-29T16:30:23.000Z","updated_at":"2022-12-29T16:31:48.000Z","dependencies_parsed_at":"2023-01-05T03:32:41.163Z","dependency_job_id":null,"html_url":"https://github.com/hansalemaos/ffmpeg_stream_to_numpy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/ffmpeg_stream_to_numpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fffmpeg_stream_to_numpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fffmpeg_stream_to_numpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fffmpeg_stream_to_numpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fffmpeg_stream_to_numpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/ffmpeg_stream_to_numpy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fffmpeg_stream_to_numpy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"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":["cv2","ffmpeg","numpy","python","stream","video"],"created_at":"2024-11-13T19:07:50.391Z","updated_at":"2026-04-29T21:37:41.862Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ffmpeg stream to numpy arrays \n\n```python\n\n# ffmpeg must be installed! \n\n$pip install ffmpeg-stream-to-numpy\nfrom ffmpeg_stream_to_numpy import NumpyVideo\nimport cv2 \nvi = NumpyVideo(\n    videofile=r\"C:\\Users\\Gamer\\Videos\\dfbs4.mp4\",\n    ffmpeg_param=(\n        \"-re\", # real speed\n        \"-hwaccel\",\n        \"cuda\",\n        \"-c:v\",\n        \"h264_cuvid\",\n    ),\n)\n\nfor ini, i in enumerate(vi.play_video_ffmpeg()):\n    # do something here \n    cv2.imshow(\"test\", i)\n    if cv2.waitKey(1) \u0026 0xFF == ord(\"q\"):\n        break\n    if ini == 100:\n        vi.playvideo = False # stops the stream\ncv2.destroyAllWindows()\n\n    \n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fffmpeg_stream_to_numpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Fffmpeg_stream_to_numpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fffmpeg_stream_to_numpy/lists"}