Skip to content

Commit

Permalink
rename project to avoid confusion with original
Browse files Browse the repository at this point in the history
  • Loading branch information
f0e committed Feb 10, 2025
1 parent 70f1abd commit be56f01
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Release
on:
push:
tags:
- '*'
- "*"

permissions:
contents: write
Expand All @@ -19,11 +19,11 @@ jobs:

- name: Create archive
working-directory: ${{env.GITHUB_WORKSPACE}}
run: zip -r mpv-cut.zip scripts script-opts
run: zip -r mpv-lossless-cut.zip scripts script-opts

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
mpv-cut.zip
mpv-lossless-cut.zip
fail_on_unmatched_files: true
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# mpv-cut
# mpv-lossless-cut

<p align="center">
<img alt="preview" src="./assets/demo.gif">
Expand All @@ -23,7 +23,7 @@ Besides mpv, you must have the following in your PATH:

## installation

Download [the latest release](https://github.com/f0e/mpv-cut/releases/latest) and move the folders in the zip into your mpv folder.
Download [the latest release](https://github.com/f0e/mpv-lossless-cut/releases/latest) and move the folders in the zip into your mpv folder.

| Platform | Path |
| ------------------- | -------------------------------------------------- |
Expand All @@ -33,11 +33,11 @@ Download [the latest release](https://github.com/f0e/mpv-cut/releases/latest) an

After that, the next time you run mpv the script will be loaded.

Note: mpv-cut should have its own folder inside your scripts folder. (`scripts/mpv-cut/main.lua & make_cuts.js`)
Note: mpv-lossless-cut should have its own folder inside your scripts folder. (`scripts/mpv-lossless-cut/main.lua & make_cuts.js`)

## options

`script-opts/mpv-cut.conf`:
`script-opts/mpv-lossless-cut.conf`:

- `output_dir` - The output directory for cuts, can be relative or absolute.
- Default value: `.` (will place cuts in the same directory as the original video)
Expand All @@ -64,6 +64,6 @@ Rendered cuts will be placed in the same directory as the source file.
If the script doesn't work, you can try these steps.

- Make sure all of the [requirements](#requirements) are installed
- Make sure the script is installed in the correct directory. You should end up with something like: `C:\Users\admin\scoop\persist\mpv\portable_config\scripts\mpv-cut\main.lua & make_cuts.js`.
- Make sure the script is installed in the correct directory. You should end up with something like: `C:\Users\admin\scoop\persist\mpv\portable_config\scripts\mpv-lossless-cut\main.lua & make_cuts.js`.
- Run mpv using the terminal (`mpv video.mp4`) and check the output, are there any errors?
- Make sure you don't have multiple versions of mpv installed. You might have installed the script to the wrong version.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ options = {
multi_cut_mode = "separate"
}

mp.options.read_options(options, "mpv-cut")
mp.options.read_options(options, "mpv-lossless-cut")

cuts = {}
cut_index = 0
Expand Down Expand Up @@ -94,4 +94,4 @@ mp.add_key_binding('r', "cut_render", cut_render)

mp.register_event("end-file", on_file_change)

print("mpv-cut loaded")
print("mpv-lossless-cut loaded")
File renamed without changes.

0 comments on commit be56f01

Please sign in to comment.