@huiqinghuang/videocut-cli 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,76 @@
1
+ # videocut CLI
2
+
3
+ `videocut` is a command-line tool for talking-head video workflows. It handles transcription, subtitle structuring, human-readable review output, edit application, review UI hosting, and final cutting based on approved delete segments.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @huiqinghuang/videocut-cli
9
+ ```
10
+
11
+ After installation, verify that the command is available:
12
+
13
+ ```bash
14
+ videocut --help
15
+ ```
16
+
17
+ ## Requirements
18
+
19
+ - Node.js 18+
20
+ - FFmpeg
21
+ - Volcengine speech transcription API key: `VOLCENGINE_API_KEY`
22
+
23
+ Example:
24
+
25
+ ```bash
26
+ export VOLCENGINE_API_KEY="your_api_key"
27
+ ```
28
+
29
+ ## Commands
30
+
31
+ ```bash
32
+ videocut transcribe <video> -o <output-dir> [--hotwords <hotwords.txt>]
33
+ videocut generate-subtitles <volcengine-result.json> -o <subtitles.json>
34
+ videocut generate-readable <subtitles.json> -o <readable.txt>
35
+ videocut apply-edits <subtitles.json> <edits.json> -o <subtitles-edited.json>
36
+ videocut review-server 8899 --path <project-or-output-root>
37
+ videocut cut <video> <delete-segments.json> -o <output-video>
38
+ ```
39
+
40
+ ## Typical Workflow
41
+
42
+ ```bash
43
+ # 1. Transcribe the video
44
+ videocut transcribe input.mp4 -o output/demo --hotwords hotwords.txt
45
+
46
+ # 2. Build the subtitle structure
47
+ videocut generate-subtitles output/demo/1_transcribe/volcengine_result.json
48
+
49
+ # 3. Generate readable review text for AI or human review
50
+ videocut generate-readable output/demo/common/subtitles_words.json -o output/demo/2_analysis/readable.txt
51
+
52
+ # 4. Apply edits from edits.json back to the structured subtitles
53
+ videocut apply-edits output/demo/common/subtitles_words.json output/demo/2_analysis/edits.json
54
+
55
+ # 5. Start the review server
56
+ videocut review-server 8899 --path output/demo
57
+ ```
58
+
59
+ ### Hotwords File
60
+
61
+ Use a plain text file with one term per line:
62
+
63
+ ```txt
64
+ container_of
65
+ offsetof
66
+ list_entry
67
+ GitHub
68
+ Gist
69
+ ```
70
+
71
+ If `--hotwords` is provided, the list is submitted to Volcengine ASR and also recorded to `1_transcribe/hotwords_used.json`.
72
+
73
+ ## Related Project
74
+
75
+ - Skills repository: `videocut-skills`
76
+ - Repository: [https://github.com/sunnyswag/videocut](https://github.com/sunnyswag/videocut)
@@ -1 +1 @@
1
- {"version":3,"file":"review-server.d.ts","sourceRoot":"","sources":["../../src/commands/review-server.ts"],"names":[],"mappings":"AA8JA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,YAAO,EAAE,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA6NlF"}
1
+ {"version":3,"file":"review-server.d.ts","sourceRoot":"","sources":["../../src/commands/review-server.ts"],"names":[],"mappings":"AAibA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,YAAO,EAAE,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA4XlF"}