{"id":32532825,"url":"https://github.com/aschmelyun/tsplice","last_synced_at":"2025-10-28T12:58:51.151Z","repository":{"id":320248218,"uuid":"1052317540","full_name":"aschmelyun/tsplice","owner":"aschmelyun","description":"Splice and merge videos from the terminal :scissors: :film_strip:","archived":false,"fork":false,"pushed_at":"2025-10-04T20:54:56.000Z","size":335,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-22T19:59:22.817Z","etag":null,"topics":["cli","command-line-tool","video-editing"],"latest_commit_sha":null,"homepage":"","language":"Go","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/aschmelyun.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":"2025-09-07T20:59:13.000Z","updated_at":"2025-10-08T15:27:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aschmelyun/tsplice","commit_stats":null,"previous_names":["aschmelyun/tsplice"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/aschmelyun/tsplice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmelyun%2Ftsplice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmelyun%2Ftsplice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmelyun%2Ftsplice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmelyun%2Ftsplice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aschmelyun","download_url":"https://codeload.github.com/aschmelyun/tsplice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmelyun%2Ftsplice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281441012,"owners_count":26501758,"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-10-28T02:00:06.022Z","response_time":60,"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":["cli","command-line-tool","video-editing"],"created_at":"2025-10-28T12:58:33.822Z","updated_at":"2025-10-28T12:58:51.137Z","avatar_url":"https://github.com/aschmelyun.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tsplice \n\nA modest command-line application to **splice** and merge video files from the **t**erminal.\n\n![](art/screenshot.png)\n\n:construction: This is an experimental app so you might see some weird bugs. If so, [let me know](https://github.com/aschmelyun/tsplice/issues)! :construction:\n\n## Installation\n\nTo install, download the latest [release binary](https://github.com/aschmelyun/tsplice/releases/latest) to your system. If you're on Linux or MacOS, you can use this one-liner to handle that:\n\n```\nsudo curl -L https://github.com/aschmelyun/tsplice/releases/download/v1.0.3/tsplice-v1.0.3-darwin-arm64 -o /usr/local/bin/tsplice \u0026\u0026 sudo chmod +x /usr/local/bin/tsplice\n```\n\n\u003e [!NOTE]\n\u003e The release above is for Apple Chip MacOS machines, be sure to change the link in the curl call to the appropriate binary for your system.\n\n## Requirements\n\nYou'll need to have the following software installed on your system to use `tsplice` effectively:\n\n- ffmpeg\n- mpv\n\nAdditionally, you'll need to have an [OpenAI API key](https://platform.openai.com/api-keys) ready to be set on the first run.\n\n## Usage\n\nRun `tsplice` in any terminal window, followed by the file that you want to edit.\n\n```sh\ntsplice ./Movies/my_facecam_vid_20250629.mp4\n```\n\nAdditionally, you can pass in some options between the command and the video file. The ones available are:\n\n- `lang`: (optional, string) sets the language for the transcription, if you want to prompt the model to make it easier to transcribe\n- `prompt`: (optional, string) sets a prompt for the Whisper model, if you want to provide extra context to the model during transcription\n- `gate`: (optional, bool) removes blocks of 10+ seconds of silence from the audio before sending off for transcription\n\nA command using some of these might look like:\n\n```sh\ntsplice --gate --lang=fr ./Movies/my_facecam_vid_20250629.mp4\n```\n\nAfter running through the initial steps of extracting audio and transcribing with Whisper, you'll be presented with a list of lines from your video's audio that you can toggle to select or deselect.\n\nYou can press `p` at any time to see a pop-up preview of that current line using your original video.\n\nPress `c` after you've selected all of the clips that you want in your final video to start the merge process.\n\nAt any time, you can get a help screen by running just `tsplice` or `tsplice --help`. You can see the current version installed by running `tsplice --version`. \n\n## How it works\n\nThis app performs a few basic steps:\n\n1. Extract audio from the video using `ffmpeg`\n2. Send the audio to OpenAI's Whisper API for transcription\n3. Save the transcription to a local file\n4. Parse the transcription into individual lines and add it to a checklist\n5. Take the selected checklist items and compile them to a list of timestamps\n6. Merge together the final video with `ffmpeg` and the timestamp list above\n\nThat's it! Your spliced video will be available in the same directory as your original.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschmelyun%2Ftsplice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faschmelyun%2Ftsplice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschmelyun%2Ftsplice/lists"}