Skip to main content

What does this project do?

A tool that manages to cut a media file into small sections according to a subtitle.

Supported subtitle format

.srt

Installation

Via pip

pip install NiceCut

Usage

Common usage

cd video-location
ncut file-name.mp4 file-name.srt

Generated files should be appeared in ~/NiceCut/clips and ~/NiceCut/texts, which contains video clips and dialogs respectively.

Help

$ ncut -h
usage: ncut [-h] [-st SAVE_TO] [-gns] [-ns {subtitle,media,all}] [-bc MILLISECONDS_BEFORE_CUTTING]
          [-ac MILLISECONDS_AFTER_CUTTING] [-f] [-d] [-v]
          media_file subtitle_file

positional arguments:
  media_file
  subtitle_file

optional arguments:
  -h, --help            show this help message and exit
  -st SAVE_TO, --save-to SAVE_TO
                        Setup the workspace path that saved the results.
  -gns, --generate-new-subtitle
                        Save the new generated subtitle to the folder where the original subtitle file is.
  -ns {subtitle,media,all}, --no-splits {subtitle,media,all}
                        Indicate that don't split the media/subtitle file, but will generate a new subtitle if
                        '-gns/--generate-new-subtitle' is present.
  -bc MILLISECONDS_BEFORE_CUTTING, --milliseconds-before-cutting MILLISECONDS_BEFORE_CUTTING
  -ac MILLISECONDS_AFTER_CUTTING, --milliseconds-after-cutting MILLISECONDS_AFTER_CUTTING
  -f, --force-update
  -d, --debug
  -v, --version         show program's version number and exit

Metadata

Release files for NiceCut 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NiceCut 0.1.0
File Size Uploaded
NiceCut-0.1.0.tar.gz 18.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for NiceCut 0.1.0
File Interpreter ABI Platform
NiceCut-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.6 kB

Release files / NiceCut-0.1.0.tar.gz

Download URL NiceCut-0.1.0.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f13b07a470f248660dfaa796c0140e657c5c4ed15a5d0afe3a27f88932cdeac1
BLAKE2b-256 checksum
How to use checksums
ea55aea87dd3ad55964dd03155cd01f2bbcbf0fac5457adb47789f70014f0e4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.0

Release files / NiceCut-0.1.0-py3-none-any.whl

Download URL NiceCut-0.1.0-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8c98c55f9cd6b6f1f7860ed8e2ba0911aa82d1d4f16a513340e0a03b626b877
BLAKE2b-256 checksum
How to use checksums
5be4632fc70c704d20c7720223fdac7ba56402e2dfb4d92ce3d931b9467abdd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page