{"id":15321979,"url":"https://github.com/akmamun/camera-live-streaming","last_synced_at":"2025-03-05T21:17:39.206Z","repository":{"id":41507660,"uuid":"168030836","full_name":"akmamun/camera-live-streaming","owner":"akmamun","description":"Camera Live Streaming with Flask and Open-CV","archived":false,"fork":false,"pushed_at":"2024-08-30T23:52:31.000Z","size":6,"stargazers_count":78,"open_issues_count":1,"forks_count":42,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-26T20:09:07.591Z","etag":null,"topics":["cctv-cameras","flask","live-streaming","opencv-python","python","rtsp","rtsp-stream","streaming","video-stream"],"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/akmamun.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}},"created_at":"2019-01-28T20:21:37.000Z","updated_at":"2024-11-25T02:54:42.000Z","dependencies_parsed_at":"2024-10-31T06:01:21.596Z","dependency_job_id":"d4f5bbe6-32bd-4193-80c6-a00bf4997cbc","html_url":"https://github.com/akmamun/camera-live-streaming","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"4e2c93d157b9ec70b54922b46fedd9052b36796b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fcamera-live-streaming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fcamera-live-streaming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fcamera-live-streaming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fcamera-live-streaming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akmamun","download_url":"https://codeload.github.com/akmamun/camera-live-streaming/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242099836,"owners_count":20071610,"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":["cctv-cameras","flask","live-streaming","opencv-python","python","rtsp","rtsp-stream","streaming","video-stream"],"created_at":"2024-10-01T09:13:47.913Z","updated_at":"2025-03-05T21:17:39.181Z","avatar_url":"https://github.com/akmamun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Live Streaming with Flask and Open-CV\n```python\npip install -r requirements.txt\n```\n### Run Server\n```python\npython app.py\n```\n#### Use Built-in Webcam of Laptop\n##### Put Zero (O) in cv2.VideoCapture(0)\n```python\ncv2.VideoCapture(0)\n```\n#### Use Ip Camera/CCTV/RTSP Link\n```python\ncv2.VideoCapture('rtsp://username:password@camera_ip_address:554/user=username_password='password'_channel=channel_number_stream=0.sdp')  \n ```\n####  Example RTSP Link\n```python\ncv2.VideoCapture('rtsp://mamun:123456@101.134.16.117:554/user=mamun_password=123456_channel=0_stream=0.sdp')\n```\n#### Change Channel Number to Change the Camera\n```python\ncv2.VideoCapture('rtsp://mamun:123456@101.134.16.117:554/user=mamun_password=123456_channel=1_stream=0.sdp')\n```\n#### Display the resulting frame in browser\n```python\ncv2.imencode('.jpg', frame)[1].tobytes()                 \n``` \n## Or this one\n\n ```python\nnet , buffer = cv2.imencode('.jpg', frame)\nbuffer.tobytes()              \n```   \n\n ## Credit\n Learn More about Streaming with flask\n - https://blog.miguelgrinberg.com/post/video-streaming-with-flask\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakmamun%2Fcamera-live-streaming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakmamun%2Fcamera-live-streaming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakmamun%2Fcamera-live-streaming/lists"}