{"id":21041023,"url":"https://github.com/chfoo/elfvideo","last_synced_at":"2025-10-07T15:51:56.415Z","repository":{"id":145909498,"uuid":"49250957","full_name":"chfoo/elfvideo","owner":"chfoo","description":"Script to generate TwitchPlaysPokemon Viet Crystal compilation video","archived":false,"fork":false,"pushed_at":"2018-05-15T02:19:45.000Z","size":1505,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T21:24:21.200Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chfoo.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":"2016-01-08T05:09:22.000Z","updated_at":"2018-05-15T02:19:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"0758e2bd-b497-48c9-b3aa-2b783aeec1ad","html_url":"https://github.com/chfoo/elfvideo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chfoo/elfvideo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Felfvideo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Felfvideo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Felfvideo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Felfvideo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chfoo","download_url":"https://codeload.github.com/chfoo/elfvideo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Felfvideo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278802800,"owners_count":26048566,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-19T13:50:02.017Z","updated_at":"2025-10-07T15:51:56.398Z","avatar_url":"https://github.com/chfoo.png","language":"Python","readme":"# elfvideo\nScript to generate TwitchPlaysPokemon Viet Crystal (and others) timelapse compilation video\n\n\n## Usage\n\nRequires:\n\n* Python 3.4+\n* [PIL](https://pillow.readthedocs.io)\n* PyCairo\n\nRun:\n\n        python3 elfvideo.py ./input_dir/ ./output_dir/\n\nThis will output the video frames which you can encode into a video. ffmpeg can do this easily.\n\n### PMD\n\nPMD is a bit more complicated but most of the data is already included or available as a easy download.\n\nRequires in addition:\n\n* youtube-dl\n* ffmpeg\n* [tppocr](https://github.com/chfoo/tppocr)\n* [arrow](https://arrow.readthedocs.io/en/latest/)\n\nTo do the whole thing from scratch, run:\n\n1. `python3 pmdred/pull_api.py inputs.db`\n2. `python3 pmdred/unpack.py tpp_pmdrrt_screenshots.7z images/`\n3. `python3 twitch/get_vod_list.py json/`\n4. `python3 twitch/json_to_db.py json/ vods.db`\n5. `python3 pmdred/get_missing_frames.py images/ inputs.db vods.db`\n6. `python3 pmdred/pmdvideo.py images/ output-frames/ inputs.db`\n\nIf you just want to generate the video frames, do the last step above.\n\nSample ffmpeg command: `ffmpeg -r 12 -i \"images/%05d.png\" -r 12 -c:v libvpx-vp9 -b:v 4000k -crf 33 -threads 8 -tile-columns 6 -pix_fmt yuv420p -f webm out.webm`\n\n\n## Images\n\n* Viet crystal: https://archive.org/details/tpp_elf_images\n* Ultra romhack: https://drive.google.com/file/d/0BxXNZYVh03vRQ2R2QWZIUm5kaUU/view?usp=sharing or https://archive.org/details/tpp_ultra_screenshots\n* Pokémon Mystery Dungeon: Red Rescue Team: https://archive.org/details/tpp_pmd_red_sidegame_screenshots\n\n## Credits\n\nSource code Copyright 2016-2017 By Christopher Foo. License: MIT.\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoo%2Felfvideo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchfoo%2Felfvideo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoo%2Felfvideo/lists"}