Skip to main content

A tool cutting a media file into small clips according to the subtitle file

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NiceCut-0.1.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

NiceCut-0.1.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file NiceCut-0.1.0.tar.gz.

File metadata

  • Download URL: NiceCut-0.1.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for NiceCut-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f13b07a470f248660dfaa796c0140e657c5c4ed15a5d0afe3a27f88932cdeac1
MD5 c0200ad04432378799961435c2b56690
BLAKE2b-256 ea55aea87dd3ad55964dd03155cd01f2bbcbf0fac5457adb47789f70014f0e4a

See more details on using hashes here.

File details

Details for the file NiceCut-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: NiceCut-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for NiceCut-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8c98c55f9cd6b6f1f7860ed8e2ba0911aa82d1d4f16a513340e0a03b626b877
MD5 0183fa09522d0d9f23bc58252ff38127
BLAKE2b-256 5be4632fc70c704d20c7720223fdac7ba56402e2dfb4d92ce3d931b9467abdd2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page