{"id":16397553,"url":"https://github.com/marcoradocchia/mpv-cutvid","last_synced_at":"2026-05-13T21:34:59.559Z","repository":{"id":41312348,"uuid":"475974842","full_name":"marcoradocchia/mpv-cutvid","owner":"marcoradocchia","description":"MPV lua script to cut and merge video sections into a single clip, using ffmpeg in the background","archived":false,"fork":false,"pushed_at":"2022-09-22T17:51:53.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-13T21:14:25.096Z","etag":null,"topics":["cut-video","ffmpeg","lua","mpv","mpv-scripts","video","video-trim"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/marcoradocchia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"marcoradocchia","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-03-30T17:02:30.000Z","updated_at":"2025-03-22T03:21:39.000Z","dependencies_parsed_at":"2023-01-18T10:28:25.951Z","dependency_job_id":null,"html_url":"https://github.com/marcoradocchia/mpv-cutvid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/marcoradocchia/mpv-cutvid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoradocchia%2Fmpv-cutvid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoradocchia%2Fmpv-cutvid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoradocchia%2Fmpv-cutvid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoradocchia%2Fmpv-cutvid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoradocchia","download_url":"https://codeload.github.com/marcoradocchia/mpv-cutvid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoradocchia%2Fmpv-cutvid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33001204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"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":["cut-video","ffmpeg","lua","mpv","mpv-scripts","video","video-trim"],"created_at":"2024-10-11T05:10:23.371Z","updated_at":"2026-05-13T21:34:59.525Z","avatar_url":"https://github.com/marcoradocchia.png","language":"Lua","funding_links":["https://github.com/sponsors/marcoradocchia"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003empv-cutvid\u003c/h1\u003e\n\n  ![GitHub releases](https://img.shields.io/github/downloads/marcoradocchia/mpv-cutvid/total?color=%23a9b665\u0026logo=github)\n  ![GitHub source size](https://img.shields.io/github/languages/code-size/marcoradocchia/mpv-cutvid?color=ea6962\u0026logo=github)\n  ![GitHub open issues](https://img.shields.io/github/issues-raw/marcoradocchia/mpv-cutvid?color=%23d8a657\u0026logo=github)\n  ![GitHub open pull requests](https://img.shields.io/github/issues-pr-raw/marcoradocchia/mpv-cutvid?color=%2389b482\u0026logo=github)\n  ![GitHub sponsors](https://img.shields.io/github/sponsors/marcoradocchia?color=%23d3869b\u0026logo=github)\n  ![GitHub license](https://img.shields.io/github/license/marcoradocchia/mpv-cutvid?color=%23e78a4e)\n\u003c/div\u003e\nMPV lua script to cut and merge video sections into a single clip, using ffmpeg\nin the background.\n\n## Description\nLua MPV script which allows to cut/trim video file into clips which are\ngenerated and merged in the background while viedo playback is running.\nIn order to cut and merge the video clips a shell script running ffmpeg\ncommands is invoked.\n\nThe script uses MPV's OSD messages for user interaction.\n\nThe output video will be created in the same directory as original one with the\nfollowing filename format: `YYYY-MM-DD_hh_mm_ss.mkv`.\n\n## Keymaps\nTwo default (but editable) keymaps are provides two keymaps:\n* `Ctrl+t`: start/end video clip timestamp, which are saved in temporary file\n  and passed to ffmpeg;\n* `Ctrl+Shift+t`: clear accidental start timestamp;\n* `Ctrl+p`: start trimming/merging clips (valid input only if paired start/end\n  timestamps have been saved).\n\n## Installation\nIn order to install the the scripts run the following commands:\n```sh\ngit clone https://github.com/marcoradocchia/mpv-cutvid \nsudo make USER=\u003cuser\u003e install\n```\nwhere `\u003cuser\u003e` is a _placeholder_ for the user's name the script is intended to\nbe used by.\n\n### Uninstall\nIn order to uninstall the scripts run:\n```sh\nsudo make USER=\u003cuser\u003e uninstall\n```\nwhere `\u003cuser\u003e` is a _placeholder_ like above.\n\n### Requirements\nThis script makes use of ffmpeg to produce video output, on Arch Linux `ffmpeg`\nis an MPV dependency. On different distribution installing `ffmpeg` might be\nneeded.\n\nThe `ffmpeg-cut-merge` script needs `bc` to be installed. On Arch based distros\ninstall it with:\n```sh\nsudo pacman -S bc\n```\n\n## License\n\n[GPLv3](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoradocchia%2Fmpv-cutvid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoradocchia%2Fmpv-cutvid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoradocchia%2Fmpv-cutvid/lists"}