{"id":13546972,"url":"https://github.com/n00kii/egui-video","last_synced_at":"2025-05-16T18:10:55.395Z","repository":{"id":65682419,"uuid":"569915088","full_name":"n00kii/egui-video","owner":"n00kii","description":"a video playing library for `egui`","archived":false,"fork":false,"pushed_at":"2024-10-28T00:02:27.000Z","size":82562,"stargazers_count":113,"open_issues_count":7,"forks_count":40,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-13T12:53:52.431Z","etag":null,"topics":["egui","ffmpeg","rust","video"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/n00kii.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-11-23T23:00:47.000Z","updated_at":"2025-05-02T00:38:24.000Z","dependencies_parsed_at":"2023-10-14T19:44:00.297Z","dependency_job_id":"4cfcb2be-4ebf-4eea-a5c1-af21b448297b","html_url":"https://github.com/n00kii/egui-video","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n00kii%2Fegui-video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n00kii%2Fegui-video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n00kii%2Fegui-video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n00kii%2Fegui-video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n00kii","download_url":"https://codeload.github.com/n00kii/egui-video/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254582907,"owners_count":22095518,"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":["egui","ffmpeg","rust","video"],"created_at":"2024-08-01T12:00:48.998Z","updated_at":"2025-05-16T18:10:55.351Z","avatar_url":"https://github.com/n00kii.png","language":"Rust","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# egui-video, a video playing library for [`egui`](https://github.com/emilk/egui)\n[![crates.io](https://img.shields.io/crates/v/egui-video)](https://crates.io/crates/egui-video)\n[![docs](https://docs.rs/egui-video/badge.svg)](https://docs.rs/egui-video/latest/egui_video/)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/n00kii/egui-video/blob/main/README.md)\n\nhttps://github.com/n00kii/egui-video/assets/57325298/c618ff0a-9ad2-4cf0-b14a-dda65dc54b23\n\nplays videos in egui from file path or from bytes\n\n## dependancies:\n - requires ffmpeg 6 or 7. follow the build instructions [here](https://github.com/zmwangx/rust-ffmpeg/wiki/Notes-on-building)\n - requires sdl2. by default, a feature is enabled to automatically compile it for you, but you are free to disable it and follow [these instructions](https://github.com/Rust-SDL2/rust-sdl2#requirements)\n## usage:\n```rust\n/* called once (top level initialization) */\n\n{ // if using audio...\n    let audio_device = egui_video::AudioDevice::new()?;\n    \n    // don't let audio_device drop out of memory! (or else you lose audio)\n\n    add_audio_device_to_state_somewhere(audio_device);\n}\n```\n```rust\n/* called once (creating a player) */\n\nlet mut player = egui_video::Player::new(ctx, my_media_path)?;\n\n{ // if using audio...\n    player = player.with_audio(\u0026mut my_state.audio_device)\n}\n```\n```rust\n/* called every frame (showing the player) */\nplayer.ui(ui, player.size);\n```\n## contributions\nare welcome :)\n\n### current caveats\n - need to compile in `release` or `opt-level=3` otherwise limited playback performance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn00kii%2Fegui-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn00kii%2Fegui-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn00kii%2Fegui-video/lists"}