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

Support the srt format in the present.

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.0.2.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: NiceCut-0.0.2.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7

File hashes

Hashes for NiceCut-0.0.2.tar.gz
Algorithm Hash digest
SHA256 eea7aaaa568f7eca31a5a6a4b5a3bc374846dbfc1d69c7707392e897fe9bf9aa
MD5 17433a097906f060d23c5827eeb67c7b
BLAKE2b-256 8e3df2e514c3e61ab917aa0bbbfef5513281dd2146b39b59b5166dc069453b47

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: NiceCut-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7

File hashes

Hashes for NiceCut-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5e050bc9c7c0f1e2ba89560f8ac0065c759397d1ab821cf565ccfd8be4fb9d2
MD5 3df2e0e3a1596b35c86e7f2585e4e0db
BLAKE2b-256 abb35199c5a7ce0cc4485c05391f92cba08bb51ce23bf894d4c95c6face31eb0

See more details on using hashes here.

Provenance

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