Skip to main content

a package for extracting short subtitled clips from movies by subtitle.srt file.

Project description

ice-moviepy License: MIT

a package for extracting short subtitled clips from movies by subtitle.srt file.

Installation

Use the package manager pip to install ice-moviepy.

pip install ice-moviepy

Usage

given a movie with a srt file subtitle, cut some parts of subtitle.srt and paste them into another file, such as sub.srt and run the following:

import ice_moviepy



subtitle2video("Video.mkv",'Sub.srt','logo.png')

or

subtitle2video("Video.mkv",'Sub.srt')

if you don't want to attach a watermark on it.

editing subtitle

you can colorize different parts of subtitle. for example you can use red{...}, blue{...}, yellow{...} and so on, to colorize your subtitle.

Place an {end} at the end of the block you want to cut out as a separate clip.


173

20

00:01:33,980 --> 00:01:35,858

If, I'm red{just} saying if.



21

00:01:35,940 --> 00:01:37,977

The frequency blue{could} never

be more green{than} five years.



22

00:01:38,100 --> 00:01:39,978

Five is a little high. But

if you could bend on that... {end}



23

00:01:40,140 --> 00:01:42,211

Marty... Wait, wait, wait.

And it's not just frequency.



24

00:01:42,620 --> 00:01:44,339

Veteran teachers

would have to be exempt

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

ice-moviepy-0.0.6.tar.gz (85.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ice_moviepy-0.0.6-py3-none-any.whl (109.7 kB view details)

Uploaded Python 3

File details

Details for the file ice-moviepy-0.0.6.tar.gz.

File metadata

  • Download URL: ice-moviepy-0.0.6.tar.gz
  • Upload date:
  • Size: 85.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.0

File hashes

Hashes for ice-moviepy-0.0.6.tar.gz
Algorithm Hash digest
SHA256 31a8ef25417b8e17e7e45e861e2d05c86e234bd9627656f5ba6320f97955809b
MD5 360cb8c21d6f0fe4b5378c33002b2891
BLAKE2b-256 0c0f6b019c673654436fc65bab63db93d392e29cf3f3b5e14fd2bd59c094fe70

See more details on using hashes here.

File details

Details for the file ice_moviepy-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: ice_moviepy-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 109.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.0

File hashes

Hashes for ice_moviepy-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 10673808a6e2018bb6cc0e70e2e34aabfdaec3c56001e918a03d3d55eb7458d3
MD5 aab9f6098a1d3878a8a8d64983d7f75c
BLAKE2b-256 127f1ae6ca40238799425a7cd0a37ebbe7c1d311026d1f19a5d20e9a1df26ab5

See more details on using hashes here.

Supported by

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