{"id":16538485,"url":"https://github.com/mujadded/record_video_and_stream_pi","last_synced_at":"2026-05-12T06:34:29.008Z","repository":{"id":205784876,"uuid":"715075911","full_name":"Mujadded/record_video_and_stream_pi","owner":"Mujadded","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-10T14:18:04.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T06:15:28.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Mujadded.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":"2023-11-06T12:37:41.000Z","updated_at":"2024-01-10T09:39:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a2e7616-605f-4372-b0ef-e47ec3874162","html_url":"https://github.com/Mujadded/record_video_and_stream_pi","commit_stats":null,"previous_names":["mujadded/record_video_and_stream_pi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mujadded%2Frecord_video_and_stream_pi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mujadded%2Frecord_video_and_stream_pi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mujadded%2Frecord_video_and_stream_pi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mujadded%2Frecord_video_and_stream_pi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mujadded","download_url":"https://codeload.github.com/Mujadded/record_video_and_stream_pi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241763754,"owners_count":20016162,"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":[],"created_at":"2024-10-11T18:45:46.699Z","updated_at":"2025-12-01T10:04:06.264Z","avatar_url":"https://github.com/Mujadded.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi Camera Module Video Recording and Streaming\n\nThis simple program allows you to record video using the Raspberry Pi camera module and stream it to a web interface. The code consists of two main files: `record.py` for video recording and `capture_and_stream.py` for web streaming.\n\n## `record.py`\n\nThe `record.py` file captures video from the Raspberry Pi camera module and records it to a local file. It also provides a callback function for further processing the captured frames. The video is saved in the AVI format, and the recorded video files are stored in the \"captured_video\" directory.\n\n### Dependencies\n- OpenCV (`cv2`)\n- picamera2\n\n### Usage\n\nTo start video recording using the Raspberry Pi camera module, you can use the `start` function provided in this file.\n\n```python\nfrom record import start\n\n# Your callback function to process captured frames\ndef callback_function(frame):\n    # Process the frame as needed\n    pass\n\n# Start video recording and processing\nstart(callback_function)\n```\n\n## `capture_and_stream.py`\n\nThe `capture_and_stream.py` file creates a Flask web application for streaming the recorded video in real-time. The web interface allows you to view the live video stream from the Raspberry Pi camera.\n\n### Dependencies\n- Flask\n- OpenCV (`cv2`)\n\n### Usage\n\n1. Run the Flask application using the following command:\n\n```bash\npython capture_and_stream.py\n```\n\n2. Open a web browser and navigate to `http://\u003cyour_raspberry_pi_ip\u003e:5000/` to view the live video stream.\n\n### Routes\n- `/`: Home page with the video stream.\n- `/video_feed`: Video streaming route used in the `\u003cimg\u003e` tag on the home page.\n\n### Important Notes\n- The video stream is accessible over your local network. Ensure your Raspberry Pi is on the same network, and you have the Pi's IP address.\n- The video streaming may not work securely over the internet without additional configurations (port forwarding, security measures, etc.).\n\n## About\n\nThis project provides a simple way to record video with the Raspberry Pi camera module and view it in real-time through a web interface. You can customize the code to meet your specific needs, such as saving video files, processing frames, or enhancing the web interface. Enjoy capturing and streaming videos with your Raspberry Pi!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmujadded%2Frecord_video_and_stream_pi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmujadded%2Frecord_video_and_stream_pi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmujadded%2Frecord_video_and_stream_pi/lists"}