{"id":19041100,"url":"https://github.com/thoughtfuldev/anime4k","last_synced_at":"2025-04-23T21:26:34.106Z","repository":{"id":108169529,"uuid":"262095165","full_name":"ThoughtfulDev/Anime4K","owner":"ThoughtfulDev","description":"Makes it easy to encode a Anime using Anime4K with predefined encoding profiles!","archived":false,"fork":false,"pushed_at":"2022-03-02T10:19:56.000Z","size":5344,"stargazers_count":76,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T03:41:17.681Z","etag":null,"topics":["anime4k","ffmpeg","ffmpeg-wrapper","mpv","python","shaders"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThoughtfulDev.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-05-07T15:57:49.000Z","updated_at":"2025-02-16T06:08:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddec9e38-cc15-40a6-8de1-94574aa40320","html_url":"https://github.com/ThoughtfulDev/Anime4K","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/ThoughtfulDev%2FAnime4K","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThoughtfulDev%2FAnime4K/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThoughtfulDev%2FAnime4K/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThoughtfulDev%2FAnime4K/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThoughtfulDev","download_url":"https://codeload.github.com/ThoughtfulDev/Anime4K/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249359914,"owners_count":21257132,"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":["anime4k","ffmpeg","ffmpeg-wrapper","mpv","python","shaders"],"created_at":"2024-11-08T22:27:18.155Z","updated_at":"2025-04-17T17:31:08.379Z","avatar_url":"https://github.com/ThoughtfulDev.png","language":"Python","readme":"![Logo of the project](demo.gif)\n\n# Anime4K-PyWrapper\n\u003e Wrapper for [Anime4K](https://github.com/bloc97/Anime4K)\n\nMakes it easy to encode a Anime using the MPV shaders with predefined encoding profiles!\n\n## Installing / Getting started\n\nWhat you need:\n- Linux (sorry its the fault of *mpv*)\n- Python 3.X\n- mpv \u003e 0.32\n- ffmpeg\n- mkvnixtool (e.g mkvtoolnix on Ubuntu)\n- mediainfo (e.g libmediainfo-dev mediainfo on Ubuntu)\n- A dedicated GPU (no VM) [AMD/NVIDIA/Intel]\n\n**Installing the necessary python libs**\n\n```\npip3 install -r requirements.txt\n```\n\n### Initial Configuration\n\nDownload the latest shaders (GLSL (v3.1 Stable)) from [here](https://github.com/bloc97/Anime4K/releases).\nPut them all into one folder for example called *shaders*\n\n## Upscaling your first Anime!\n\nAssuming your Anime Movie/Episode is called *input.mkv* and has a resolution of 1920x1080.\nNow you want to upscale it to 4K (3840x2160).\nHere are the commands you would run.\n\n1. Encode the Video (to x264 and upscale it using the shader with the first Option [CPU])\n```\npython3 Anime4K.py -m shader --shader_dir \"./shaders\" --width 3840 --height 2160 -i input.mkv --output x264_upscale.mkv\n```\n2. Choose the option *CPU (only x264 4:4:4)...* (for this example)\n3. Follow the dialogues - they should be pretty self explanatory\n4. Your file should now be in *x264_upscale.mkv*\n5. Now we need to encode the file to x265 10bit\n```\npython3 Anime4K.py -m encode -i x264_upscale.mkv --output x265_10bit.mkv\n```\n6. Choose your desired encoding preset.\n7. The output file *x265_10bit.mkv* has no audio or subtitles we add them in the next step.\n8. Extract the audio and subtitles from the original file\n```\npython3 Anime4K.py -m audio -i input.mkv\npython3 Anime4K.py -m subs -i input.mkv\n```\n9. Now we have the audio files and subtitles in the current folder.\n10. Now lets add them into the final output\n```\npython3 Anime4K.py -m mux -i x265_10bit.mkv -o input_upscaled_with_audio_and_subs.mkv\n```\n\n\n**Feel free to explore the other options of the program (or profiles) by typing**:\n```\npython3 Anime4K.py --help\n```\n\n## **[Optional]** Encoding ffmpeg progressbar\nTo get a overview of your current encoding of ffmpeg you may install the [ffmpeg-progressbar-cli](https://github.com/sidneys/ffmpeg-progressbar-cli)\n\n```\nnpm install --global ffmpeg-progressbar-cli\n```\n\n*Don't worry the script will also work with normal ffmpeg.*\n\n\n## Features\n\n* Encode Videos with Anime4K shaders easily\n* Encode using NVENC or CPU\n* Extract Audio and subtitles automatically\n* Predefined profiles for Anime4K and ffmpeg\n\n## Contributing\n\nIf you'd like to contribute, please fork the repository and use a feature\nbranch. Pull requests are warmly welcome.\n\n## Links\n\n- Related projects:\n  - [**Huge thanks!**] Anime4K: https://github.com/bloc97/Anime4K\n  - video2x: https://github.com/k4yt3x/video2x\n\n- Thanks to:\n  - ffmpeg-progressbar-cli: https://github.com/sidneys/ffmpeg-progressbar-cli\n  - simple-term-menu: https://github.com/IngoHeimbach/simple-term-menu\n\n\n## Licensing\n\nThe code in this project is licensed under GNU GENERAL PUBLIC LICENSE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtfuldev%2Fanime4k","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtfuldev%2Fanime4k","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtfuldev%2Fanime4k/lists"}