{"id":16377917,"url":"https://github.com/sofianedjerbi/batimg","last_synced_at":"2025-07-26T00:17:09.013Z","repository":{"id":41152340,"uuid":"416513978","full_name":"sofianedjerbi/Batimg","owner":"sofianedjerbi","description":"Fast image/video printing in your terminal","archived":false,"fork":false,"pushed_at":"2022-01-11T00:08:04.000Z","size":5079,"stargazers_count":30,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-12T03:44:21.190Z","etag":null,"topics":["ascii","cli","rust","terminal","unixporn"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/sofianedjerbi.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}},"created_at":"2021-10-12T22:15:39.000Z","updated_at":"2024-02-26T20:08:07.000Z","dependencies_parsed_at":"2022-09-05T12:40:47.790Z","dependency_job_id":null,"html_url":"https://github.com/sofianedjerbi/Batimg","commit_stats":null,"previous_names":["chaoxel/batimg","sofianedjerbi/batimg"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sofianedjerbi/Batimg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianedjerbi%2FBatimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianedjerbi%2FBatimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianedjerbi%2FBatimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianedjerbi%2FBatimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofianedjerbi","download_url":"https://codeload.github.com/sofianedjerbi/Batimg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianedjerbi%2FBatimg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267092697,"owners_count":24034827,"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-07-25T02:00:09.625Z","response_time":70,"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":["ascii","cli","rust","terminal","unixporn"],"created_at":"2024-10-11T03:44:13.833Z","updated_at":"2025-07-26T00:17:08.888Z","avatar_url":"https://github.com/sofianedjerbi.png","language":"Rust","readme":"# batimg\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./demo.gif\"\u003e\n\u003c/p\u003e\n\n`batimg` is a small program written in Rust, designed to be fast and compatible with every terminal.   \nIt can print images and play videos in almost [every format](https://ffmpeg.org/ffmpeg-formats.html) in your terminal.\n\n## Build\nBuild bin and install dependencies: `cargo build --release`  \nBin location: `./target/release/adplay`\n\n## Usage\n```\nUSAGE:\n    batimg [OPTIONS] \u003cFILE\u003e\n\nARGS:\n    \u003cFILE\u003e    Path to the media\n\nOPTIONS:\n    -d, --debug         Print debug stats\n    -a, --audio         Play video audio (unstable)\n    -h, --help          Print help information\n    -l, --loop          Loop the video \n    -s, --size \u003cu32\u003e    Canvas size\n    -r, --resolution    Disable high resolution mode (half pixel character)\n    -p, --prerender     Export frames first (unstable)\n    -t, --timesync      Disable realtime synchronization\n    -V, --version       Print version information\n\nEXAMPLES: \n    batimg img.png\n    batimg img.jpg -s 100\n    batimg video.mp4 -a\n    batimg animation.gif\n```\n## Goals\n\n- [x] Show images\n- [x] Play videos\n- [x] Play audio\n- [x] Improving the resolution\n- [ ] Improving cleaning escape codes\n- [ ] Getting rid of FFmpeg high CPU usage (Frame extraction)\n\n## batimg vs catimg\n\n\u003cdiv align=\"center\"\u003e\n\t\u003ctable\u003e\n\t\u003cthead\u003e\n\t  \u003ctr\u003e\n\t    \u003cth\u003e\u003c/th\u003e\n\t    \u003cth\u003e\u003cb\u003ebatimg\u003c/b\u003e\u003c/th\u003e\n\t    \u003cth\u003e\u003cb\u003ecatimg\u003c/b\u003e\u003c/th\u003e\n\t  \u003c/tr\u003e\n\t\u003c/thead\u003e\n\t\u003ctbody\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003ecreation date\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003e2021\u003c/td\u003e\n\t    \u003ctd\u003e2013\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003elanguage\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003erust\u003c/td\u003e\n\t    \u003ctd\u003eshell/c\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003eformat\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003e\n\t        \u003ca href=\"https://ffmpeg.org/ffmpeg-formats.html\"\u003e\n\t        almost all\n\t\t\u003c/a\u003e\n\t    \u003c/td\u003e\n\t    \u003ctd\u003epng/jpg/gif\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003edependencies\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003effmpeg (videos)\u003c/td\u003e\n\t    \u003ctd\u003eimagemagick\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003eresize algorithm\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003enearest neighbor\u003c/td\u003e\n\t    \u003ctd\u003enearest color\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003eresolution\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003e▀ / █\u003c/td\u003e\n\t    \u003ctd\u003e▀ / ██\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003evideo support\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003eyes\u003c/td\u003e\n\t    \u003ctd\u003eno\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003eaudio support\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003eyes\u003c/td\u003e\n\t    \u003ctd\u003eno\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003eCPU usage\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003emedium (images) high (videos)\u003c/td\u003e\n\t    \u003ctd\u003emedium\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003eprerendering\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003eDisabled by default\u003c/td\u003e\n\t    \u003ctd\u003eAlways enabled\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t  \u003ctr\u003e\n\t    \u003ctd\u003e\u003cb\u003etime sync\u003c/b\u003e\u003c/td\u003e\n\t    \u003ctd\u003eEnabled by default\u003c/td\u003e\n\t    \u003ctd\u003eSeems enabled, but not on every gif\u003c/td\u003e\n\t  \u003c/tr\u003e\n\t\u003c/tbody\u003e\n\t\u003c/table\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./rendering.gif\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nRendering comparison on pixel arts.\n\u003c/p\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofianedjerbi%2Fbatimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofianedjerbi%2Fbatimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofianedjerbi%2Fbatimg/lists"}