{"id":35268427,"url":"https://github.com/wong-justin/vic","last_synced_at":"2026-04-10T10:31:21.028Z","repository":{"id":270998162,"uuid":"872503935","full_name":"wong-justin/vic","owner":"wong-justin","description":"Trim videos in the terminal","archived":false,"fork":false,"pushed_at":"2025-12-30T05:45:36.000Z","size":291,"stargazers_count":111,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-02T02:35:24.762Z","etag":null,"topics":["ansi","chafa","crossterm","ffmpeg","rust","terminal","trim","tui"],"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/wong-justin.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-14T14:49:21.000Z","updated_at":"2025-12-30T14:07:23.000Z","dependencies_parsed_at":"2025-06-04T20:04:14.079Z","dependency_job_id":null,"html_url":"https://github.com/wong-justin/vic","commit_stats":null,"previous_names":["wong-justin/vic"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/wong-justin/vic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wong-justin%2Fvic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wong-justin%2Fvic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wong-justin%2Fvic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wong-justin%2Fvic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wong-justin","download_url":"https://codeload.github.com/wong-justin/vic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wong-justin%2Fvic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31638373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ansi","chafa","crossterm","ffmpeg","rust","terminal","trim","tui"],"created_at":"2025-12-30T11:17:44.316Z","updated_at":"2026-04-10T10:31:21.002Z","avatar_url":"https://github.com/wong-justin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vic\n\nPlay \u0026 cut videos in the terminal\n\nhttps://github.com/user-attachments/assets/340596e9-f060-4454-833d-8d62af01ccdd\n\u003c!-- ![screenshot](https://github.com/user-attachments/assets/da6770b1-2595-477e-98a4-94e95450912e) --\u003e\n\n## Building\n\n`vic` requires [`ffmpeg`](https://ffmpeg.org//download.html) to be on `$PATH` during runtime.\n\n`vic` is linked with [`chafa`](https://hpjansson.org/chafa/), a C library that makes pretty pictures in the terminal. \n\n### Linux\n\nInstall `chafa` from your package manager, or build it from source with something like:\n\n```\napt-get install libglib2.0-dev\ncurl 'https://hpjansson.org/chafa/releases/chafa-1.14.4.tar.xz' -O\ntar xf chafa-1.14.4.tar.xz\ncd chafa-1.14.4\n./configure --without-tools\nmake\nmake install\nldconfig\n```\n\nOnce `chafa` is installed, you can build the Rust project with `cargo build`.\n\nMake sure everything is compiled and linked correctly by running `cargo test`.\n\nYou can find the built binary at `target/debug/vic`, or install it with `cargo install --path .`\n\n### Static binaries\n\nStatically linked binaries (that bundle `chafa`) for x86-64 Linux can be built with the Dockerfile.\n\n## Examples\n\n```\nvic video.mp4\nvic video.mp4 -w=9999\nvic http://example.com/video.avi -w 20\nvic video.webm -w 80 --dry-run\nvic video.mp4 --log log.txt\n```\n\n## Usage\n\n```\nvic \u003cfilepath\u003e [-w \u003cint, default 40\u003e]\n               [--dry-run]\n               [--log \u003cfilepath\u003e]\n               [--help|--version]\n```\n\n### Options\n\n```\n-w \u003cint\u003e          Max output width, in columns.\n                  Use -w 9999 for fullscreen.\n                  Defaults to 40.\n\n--dry-run         Instead of running ffmpeg on finish,\n                  just print the commands to stdout.\n\n--log \u003cpath\u003e      Write logs to this file.\n```\n\n### Controls\n\n```\n[ segment mode ]\n\n  m ....... make marker\n  space ... play/pause\n  j/l ..... back/forwards 15 secs\n  ←/→ ..... back/forwards 5 secs\n  0-9 ..... seek to 0%, 10%, etc\n  . ....... advance one frame\n  q ....... finish\n\n[ marker mode ]\n\n  J/L ..... goto prev/next marker\n  M ....... delete marker\n```\n\n## Notes\n\nHere's a blog post: https://wonger.dev/posts/chafa-ffmpeg-progress\n\nMy main focus for now is creating a separate UI thread and adding audio.\n\nI also need to fiddle with GitHub Actions.\n\nThere's several quality-of-life improvements to work on.\n\nPull requests welcome :)\n\nCreated during [LMT2](https://lmt2.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwong-justin%2Fvic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwong-justin%2Fvic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwong-justin%2Fvic/lists"}