a package for extracting short subtitled clips from movies by subtitle.srt file.
Project description
ice-moviepy []
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
ice_moviepy.subtitle2video("Video.mkv",'Sub.srt','logo.png')
or
ice_moviepy.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.
9
00:00:48,920 --> 00:00:51,151
There are two
kinds of pain.
10
00:00:51,280 --> 00:00:53,272
The sort of pain
blue{that makes} you strong
11
00:00:53,360 --> 00:00:57,240
red{or useless} yellow{pain}, the purple{sort of}
pain blue{that's} only orange{suffering}. {end}
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.9.tar.gz
(85.2 kB
view hashes)
Built Distribution
ice_moviepy-0.0.9-py3-none-any.whl
(109.7 kB
view hashes)
Close
Hashes for ice_moviepy-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f213e20aa33f43a8a51ae7a5fc5d9ea97e879bc344307d276a68ce5b718c4b14 |
|
MD5 | 1be8cbb47cd8c2ccd26a909469aad10f |
|
BLAKE2b-256 | dafcb39595af17e2e00e2b885483fceb59c0578c7f527a3e6a3b2ea22c68a471 |