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
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.8.tar.gz
(85.5 kB
view hashes)
Built Distribution
ice_moviepy-0.0.8-py3-none-any.whl
(109.8 kB
view hashes)
Close
Hashes for ice_moviepy-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 676696121ed2a666b1c1494332593d7802487434fb5eec67480387eb7437b852 |
|
MD5 | e7f524df6db519b7de33fe73611e81a7 |
|
BLAKE2b-256 | 5e8e9b3f5b76d31fc42f1637732d5a5869cab15aa40a24259f4845163381dca6 |