{"id":15009840,"url":"https://github.com/osom8979/avplayer","last_synced_at":"2025-04-09T17:52:11.697Z","repository":{"id":65344788,"uuid":"590409777","full_name":"osom8979/avplayer","owner":"osom8979","description":"PyAV Media Player","archived":false,"fork":false,"pushed_at":"2024-09-27T07:21:34.000Z","size":163,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T19:51:31.430Z","etag":null,"topics":["pyav","python3"],"latest_commit_sha":null,"homepage":"","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/osom8979.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":"2023-01-18T10:56:28.000Z","updated_at":"2024-11-08T03:26:20.000Z","dependencies_parsed_at":"2023-11-16T01:30:49.251Z","dependency_job_id":"26717087-ef96-4ec8-b6a9-cf66eda64971","html_url":"https://github.com/osom8979/avplayer","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"62e6f8471cfdc8f031cddd673512c6965e7eba9d"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osom8979%2Favplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osom8979%2Favplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osom8979%2Favplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osom8979%2Favplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osom8979","download_url":"https://codeload.github.com/osom8979/avplayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083255,"owners_count":21045065,"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":["pyav","python3"],"created_at":"2024-09-24T19:28:50.403Z","updated_at":"2025-04-09T17:52:11.670Z","avatar_url":"https://github.com/osom8979.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# avplayer\n\n[![PyPI](https://img.shields.io/pypi/v/avplayer?style=flat-square)](https://pypi.org/project/avplayer/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/avplayer?style=flat-square)\n[![GitHub](https://img.shields.io/github/license/osom8979/avplayer?style=flat-square)](https://github.com/osom8979/avplayer/)\n\nPyAV Media Player\n\n## Installation\n\nInstall `avplayer`:\n\n```shell\npip install avplayer\n```\n\nIf you want to use the [tk](https://docs.python.org/3/library/tkinter.html) preview:\n\n```shell\npip install avplayer[Pillow]\n```\n\n## Commandline Tools\n\n```shell\npython -m avplayer --help\n```\n\n## Realtime support\n\nIf it is important to get the latest frame in real-time streaming\nsuch as RTSP streaming, we recommend adjusting the `--drop-*` related options.\n\n```bash\npython -m avplayer --drop-slow-frame --drop-threshold=1 ...\n```\n\nThe `cvplayer.avconfig.AvConfig` class can be used as follows:\n\n```python\nfrom avplayer.avconfig import AvConfig\n\nconfig = AvConfig(\n    input_file=\"rtsp://...\",\n    drop_slow_frame=True,\n    drop_threshold=1,\n)\n```\n\n## Features\n\n### [opencv-python](https://pypi.org/project/opencv-python/) compatibility\n\nTo prevent freeze when using opencv-python's imshow,\ndo not use `import av` at file-scope.\n\nPlease refer to the following link:\n* [AV import leads to OpenCV imshow freeze · Issue #21952 · opencv/opencv](https://github.com/opencv/opencv/issues/21952)\n* [python - Can't show image with opencv when importing av - Stack Overflow](https://stackoverflow.com/questions/72604912/cant-show-image-with-opencv-when-importing-av)\n\n## Examples\n\n### AioCv\n\nSee the [examples/aio_cv.py](./examples/aio_cv.py) file.\n\n### OpenCV highgui\n\nSee the [examples/cv2_example.py](./examples/cv2_example.py) file.\n\n## License\n\nSee the [LICENSE](./LICENSE) file for details. In summary,\n**avplayer** is licensed under the **MIT license**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosom8979%2Favplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosom8979%2Favplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosom8979%2Favplayer/lists"}