{"id":21250935,"url":"https://github.com/natlee/ffmpeg-video-writter-with-python","last_synced_at":"2026-05-03T12:38:25.389Z","repository":{"id":146802882,"uuid":"237406772","full_name":"NatLee/FFmpeg-Video-Writter-with-Python","owner":"NatLee","description":"This is a video writter used to write video with FRENDLY ffmpeg.","archived":false,"fork":false,"pushed_at":"2020-02-03T03:20:21.000Z","size":11479,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-13T02:41:53.365Z","etag":null,"topics":["ffmpeg","image-processing","opencv","python","video-processing","videowriter"],"latest_commit_sha":null,"homepage":null,"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/NatLee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-31T10:21:56.000Z","updated_at":"2023-02-15T13:01:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"52052e6d-2423-46a9-84ab-0e32cc66dc8f","html_url":"https://github.com/NatLee/FFmpeg-Video-Writter-with-Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NatLee/FFmpeg-Video-Writter-with-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FFFmpeg-Video-Writter-with-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FFFmpeg-Video-Writter-with-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FFFmpeg-Video-Writter-with-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FFFmpeg-Video-Writter-with-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NatLee","download_url":"https://codeload.github.com/NatLee/FFmpeg-Video-Writter-with-Python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FFFmpeg-Video-Writter-with-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32569714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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","image-processing","opencv","python","video-processing","videowriter"],"created_at":"2024-11-21T03:39:49.327Z","updated_at":"2026-05-03T12:38:25.344Z","avatar_url":"https://github.com/NatLee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FFmpeg Video Writter with Python\n\n[![License: MIT v3](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![Python 3](https://img.shields.io/badge/python-3-blue.svg)](https://www.python.org/)\n\n## Introduction\n\nAs title, this is a video writter used to write video with **friendly** ffmpeg.\n\nI'm angry with the fucking OpenCV because the video writter always saves only **6KB** video header instead of saving videos.\n\n\u003e I found the reason is that the video writter in OpenCV dose **NOT** check the shape of frame when writting into a file and it does **NOT** give any errors and warnings. In short, if the size is different from the original setting of video writter, it will **NOT** write any frames.\n\n## Requirements\n\n- ffmpeg-python\n- opencv-python\n- numpy\n\n\u003e OpenCV is optional and it's only used in the demo.\n\n## Usage\n\n### Quick Start\n\n```python\nimport cv2\nfrom FFmpegVideoWritter import FFmpegVideoWritter\n\nffvw = FFmpegVideoWritter('./data/test.mp4', './result/result.mp4')\n\nwhile True:\n    frame = ffvw.get_frame()\n    if frame is not None:\n        out_frame = cv2.resize(frame, None, fx=0.5, fy=0.5)\n        cv2.imshow('frame', cv2.cvtColor(out_frame, cv2.COLOR_BGR2RGB))\n        cv2.waitKey(1)\n        ffvw.write(out_frame)\n    else:\n        break\n\nffvw.close()\n# You can get gif output!\nffvw.output_to_gif('./result/test.gif')\n```\n\n### Demo\n\nYou can run the DEMO with the following command.\n\n```\npython main.py\n```\n\n## Results\n\nDrawing ramdomly rectangles from original video in `main.py`.\n\n![Result](./result/result.mp4.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlee%2Fffmpeg-video-writter-with-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatlee%2Fffmpeg-video-writter-with-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlee%2Fffmpeg-video-writter-with-python/lists"}