{"id":13765774,"url":"https://github.com/RicoP/raylib-video","last_synced_at":"2025-05-10T21:31:47.166Z","repository":{"id":141643753,"uuid":"606393854","full_name":"RicoP/raylib-video","owner":"RicoP","description":"A multithreaded pl_mpeg wrapper for Raylib","archived":false,"fork":false,"pushed_at":"2024-02-02T18:26:27.000Z","size":506,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-03T16:08:55.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/RicoP.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-02-25T11:03:49.000Z","updated_at":"2024-06-03T11:32:09.000Z","dependencies_parsed_at":"2024-02-02T19:41:57.051Z","dependency_job_id":null,"html_url":"https://github.com/RicoP/raylib-video","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RicoP%2Fraylib-video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RicoP%2Fraylib-video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RicoP%2Fraylib-video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RicoP%2Fraylib-video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RicoP","download_url":"https://codeload.github.com/RicoP/raylib-video/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224989481,"owners_count":17403408,"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-08-03T16:00:45.625Z","updated_at":"2024-11-17T01:31:23.429Z","avatar_url":"https://github.com/RicoP.png","language":"C","funding_links":[],"categories":["List"],"sub_categories":["Libraries and Frameworks"],"readme":"# raylib-video\nA multithreaded and streaming capable pl_mpeg wrapper for Raylib.\nPlays MPEG1 videofiles.\n\n![preview image](example/preview.png)\n\n# License\nMIT-License\n\nContains code from https://github.com/mattiasgustavsson/libs/blob/main/thread.h by Mattias Gustavsson (also MIT).\n\n# Info\nNeeds pl_mpeg (https://github.com/phoboslab/pl_mpeg) to be in the include path.\n\n# How to use\nCheck out the header in raylibvideo.h or look into the examples folder.\n\nrun\n```\ngit submodule update --init\n```\n\nThen build \n\n## For Windows \n- double click \"examples/download_video_example.bat\" then\n- double click \"examples/build.bat\".\n\n## For MinGW\n- run \"examples/download_video_example.sh\" then\n- run \"examples/build.sh\".\n\n# API\n```c\nray_video_t ray_video_open(const char * path);\nray_video_t ray_video_open_file_handle(FILE * file);\nint ray_video_update(ray_video_t *, double deltatime_s);\nvoid ray_video_destroy(ray_video_t *);\n```\n\n- Check with ray_video.ok if the video was correctly loaded\n- Update the video with ray_video_update\n- Get the new frame over ray_video.texture\n- Destroy the object at the end with ray_video_destroy\n\n# TODO\n- Add seeking API\n- Add interface to get the state of the current video\n- Add buffering so video frames are getting pre-cached\n- Add option to drop frames to stay in sync with video timing on slow rendering\n- Add audio support (?)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRicoP%2Fraylib-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRicoP%2Fraylib-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRicoP%2Fraylib-video/lists"}