{"id":48930071,"url":"https://github.com/f0e/mpv-lossless-cut","last_synced_at":"2026-04-17T08:33:59.202Z","repository":{"id":111778631,"uuid":"591155748","full_name":"f0e/mpv-lossless-cut","owner":"f0e","description":"Cut videos incredibly quickly directly inside of the video player mpv. Fork of familyfriendlymikey/mpv-cut","archived":false,"fork":false,"pushed_at":"2026-01-27T09:31:13.000Z","size":11901,"stargazers_count":71,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-27T22:09:05.728Z","etag":null,"topics":["ffmpeg","lossless","lossless-cut","mpv","video","video-editing"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f0e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-01-20T03:21:09.000Z","updated_at":"2026-01-27T09:30:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8e6aa6e-42ea-4886-a2d3-e8c0bdfc52f3","html_url":"https://github.com/f0e/mpv-lossless-cut","commit_stats":null,"previous_names":["f0e/mpv-lossless-cut"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/f0e/mpv-lossless-cut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0e%2Fmpv-lossless-cut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0e%2Fmpv-lossless-cut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0e%2Fmpv-lossless-cut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0e%2Fmpv-lossless-cut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f0e","download_url":"https://codeload.github.com/f0e/mpv-lossless-cut/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0e%2Fmpv-lossless-cut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31922069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["ffmpeg","lossless","lossless-cut","mpv","video","video-editing"],"created_at":"2026-04-17T08:33:56.482Z","updated_at":"2026-04-17T08:33:59.193Z","avatar_url":"https://github.com/f0e.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mpv-lossless-cut\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"preview\" src=\"./assets/demo.gif\"\u003e\n\u003c/p\u003e\n\n## about\n\nThe core functionality of this script is to very quickly cut videos losslessly in [mpv](https://mpv.io/installation/) as an alternative to [LosslessCut](https://github.com/mifi/lossless-cut).\n\nI decided to modify [mpv-cut](https://github.com/familyfriendlymikey/mpv-cut) since I was looking for slightly different functionality to what the original script provided. Mainly I wanted to be able to adjust the start and end points of cuts.\n\nAlso credits to [suckless-cut](https://github.com/couleur-tweak-tips/suckless-cut) for inspiration \u0026 keybinds.\n\n## requirements\n\nBesides mpv, you must have `ffmpeg` in your PATH.\n\n## installation\n\nDownload [the latest release](https://github.com/f0e/mpv-lossless-cut/releases/latest) and move the folders in the zip into your mpv folder.\n\n| Platform            | Path                                               |\n| ------------------- | -------------------------------------------------- |\n| **Windows**         | `%appdata%/Roaming/mpv/`                           |\n| **Windows (Scoop)** | `%userprofile%/scoop/persist/mpv/portable_config/` |\n| **Linux**/**MacOS** | `~/.config/mpv/`                                   |\n\nAfter that, the next time you run mpv the script will be loaded.\n\n## options\n\n`script-opts/mpv-lossless-cut.conf`:\n\n- `lossless` - Whether the cut clips should be lossless. If set to yes, cuts may not be exact, as they can only occur at keyframes. Setting it to no will re-encode clips, but cut times will be exact.\n- `output_dir` - The output directory for cuts, can be relative or absolute.\n  - Default value: `.` (will place cuts in the same directory as the original video)\n- `multi_cut_mode` - The mode for handling multiple cuts for a single video. Options:\n  - `separate`: create separate cut files (default)\n  - `merge`: merge cut files into a single cut.\n\n## usage\n\n### keybinds\n\n- \u003ckbd\u003eg\u003c/kbd\u003e and \u003ckbd\u003eh\u003c/kbd\u003e to set the start and end points of a cut (will use your current position).\n- \u003ckbd\u003eG\u003c/kbd\u003e and \u003ckbd\u003eH\u003c/kbd\u003e will do the same, but will place the points at the very start or end of the video.\n- \u003ckbd\u003er\u003c/kbd\u003e to render cuts.\n\n- \u003ckbd\u003ectrl+g\u003c/kbd\u003e to toggle between `separate` and `merge` mode.\n- \u003ckbd\u003ectrl+h\u003c/kbd\u003e to clear cuts.\n\nIf you want to change the start or end position of a cut you can press the keybind again. You can also create multiple cuts from a single video.\n\nRendered cuts will be placed in the same directory as the source file.\n\n---\n\n## troubleshooting\n\nIf the script doesn't work, you can try these steps.\n\n- Make sure all of the [requirements](#requirements) are installed\n- Make sure the script is installed in the correct directory. You should end up with something like: `~/.mpv/config/scripts/mpv-lossless-cut.lua`.\n- Run mpv using the terminal (`mpv video.mp4`) and check the output, are there any errors?\n- Make sure you don't have multiple versions of mpv installed. You might have installed the script to the wrong version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0e%2Fmpv-lossless-cut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff0e%2Fmpv-lossless-cut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0e%2Fmpv-lossless-cut/lists"}