videopython 0.2.1__py3-none-any.whl → 0.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of videopython might be problematic. Click here for more details.
- videopython/ai/__init__.py +0 -0
- videopython/{generation → ai/generation}/audio.py +25 -13
- videopython/{generation → ai/generation}/image.py +0 -3
- videopython/ai/understanding/__init__.py +0 -0
- videopython/ai/understanding/transcribe.py +37 -0
- videopython/base/effects.py +3 -3
- videopython/base/transcription.py +13 -0
- videopython/base/transforms.py +0 -2
- videopython/base/transitions.py +2 -2
- videopython/base/video.py +269 -187
- videopython/utils/__init__.py +3 -0
- videopython/utils/image.py +0 -228
- videopython/utils/text.py +727 -0
- {videopython-0.2.1.dist-info → videopython-0.4.0.dist-info}/METADATA +13 -25
- videopython-0.4.0.dist-info/RECORD +25 -0
- {videopython-0.2.1.dist-info → videopython-0.4.0.dist-info}/WHEEL +1 -1
- videopython-0.2.1.dist-info/RECORD +0 -20
- /videopython/{generation → ai/generation}/__init__.py +0 -0
- /videopython/{generation → ai/generation}/video.py +0 -0
- {videopython-0.2.1.dist-info → videopython-0.4.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: videopython
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Minimal video generation and processing library.
|
|
5
5
|
Project-URL: Homepage, https://github.com/bartwojtowicz/videopython/
|
|
6
6
|
Project-URL: Repository, https://github.com/bartwojtowicz/videopython/
|
|
@@ -19,20 +19,8 @@ Requires-Dist: numpy>=1.25.2
|
|
|
19
19
|
Requires-Dist: opencv-python>=4.9.0.80
|
|
20
20
|
Requires-Dist: pillow>=10.3.0
|
|
21
21
|
Requires-Dist: pydub>=0.25.1
|
|
22
|
+
Requires-Dist: soundpython>=0.1.11
|
|
22
23
|
Requires-Dist: tqdm>=4.66.3
|
|
23
|
-
Provides-Extra: dev
|
|
24
|
-
Requires-Dist: black==24.3.0; extra == 'dev'
|
|
25
|
-
Requires-Dist: isort==5.12.0; extra == 'dev'
|
|
26
|
-
Requires-Dist: mypy==1.8.0; extra == 'dev'
|
|
27
|
-
Requires-Dist: pydub-stubs==0.25.1.1; extra == 'dev'
|
|
28
|
-
Requires-Dist: pytest==7.4.0; extra == 'dev'
|
|
29
|
-
Requires-Dist: types-pillow==10.2.0.20240213; extra == 'dev'
|
|
30
|
-
Requires-Dist: types-tqdm==4.66.0.20240106; extra == 'dev'
|
|
31
|
-
Provides-Extra: generation
|
|
32
|
-
Requires-Dist: accelerate>=0.29.2; extra == 'generation'
|
|
33
|
-
Requires-Dist: diffusers>=0.26.3; extra == 'generation'
|
|
34
|
-
Requires-Dist: torch>=2.1.0; extra == 'generation'
|
|
35
|
-
Requires-Dist: transformers>=4.38.1; extra == 'generation'
|
|
36
24
|
Description-Content-Type: text/markdown
|
|
37
25
|
|
|
38
26
|
# About
|
|
@@ -51,10 +39,10 @@ sudo apt-get install ffmpeg
|
|
|
51
39
|
|
|
52
40
|
### Install with pip
|
|
53
41
|
```bash
|
|
54
|
-
pip install videopython[
|
|
42
|
+
pip install videopython[ai]
|
|
55
43
|
```
|
|
56
|
-
> You can install without `[
|
|
57
|
-
> The funcionalities found in `videopython.
|
|
44
|
+
> You can install without `[ai]` dependencies for basic video handling and processing.
|
|
45
|
+
> The funcionalities found in `videopython.ai` won't work.
|
|
58
46
|
|
|
59
47
|
## Basic Usage
|
|
60
48
|
|
|
@@ -64,10 +52,10 @@ pip install videopython[generation]
|
|
|
64
52
|
from videopython.base.video import Video
|
|
65
53
|
|
|
66
54
|
# Load videos and print metadata
|
|
67
|
-
video1 = Video.from_path("tests/test_data/
|
|
55
|
+
video1 = Video.from_path("tests/test_data/small_video.mp4")
|
|
68
56
|
print(video1)
|
|
69
57
|
|
|
70
|
-
video2 = Video.from_path("tests/test_data/
|
|
58
|
+
video2 = Video.from_path("tests/test_data/big_video.mp4")
|
|
71
59
|
print(video2)
|
|
72
60
|
|
|
73
61
|
# Define the transformations
|
|
@@ -91,18 +79,18 @@ savepath = video.save()
|
|
|
91
79
|
|
|
92
80
|
### Video Generation
|
|
93
81
|
|
|
94
|
-
> Using Nvidia A40 or better is recommended for the `videopython.
|
|
82
|
+
> Using Nvidia A40 or better is recommended for the `videopython.ai` module.
|
|
95
83
|
```python
|
|
96
84
|
# Generate image and animate it
|
|
97
|
-
from videopython.generation import ImageToVideo
|
|
98
|
-
from videopython.generation import TextToImage
|
|
99
|
-
from videopython.generation import TextToMusic
|
|
85
|
+
from videopython.ai.generation import ImageToVideo
|
|
86
|
+
from videopython.ai.generation import TextToImage
|
|
87
|
+
from videopython.ai.generation import TextToMusic
|
|
100
88
|
|
|
101
89
|
image = TextToImage().generate_image(prompt="Golden Retriever playing in the park")
|
|
102
90
|
video = ImageToVideo().generate_video(image=image, fps=24)
|
|
103
91
|
|
|
104
92
|
# Video generation directly from prompt
|
|
105
|
-
from videopython.generation import TextToVideo
|
|
93
|
+
from videopython.ai.generation import TextToVideo
|
|
106
94
|
video_gen = TextToVideo()
|
|
107
95
|
video = video_gen.generate_video("Dogs playing in the snow")
|
|
108
96
|
for _ in range(10):
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
videopython/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
videopython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
videopython/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
videopython/ai/generation/__init__.py,sha256=5esJ7_PPSkqNXuPQWLLAyeQZY00BnYFc94WZIHi7pBU,233
|
|
5
|
+
videopython/ai/generation/audio.py,sha256=CNf6ZeV3iU4CU0Kq8HtDLwLPP2ABq9AGQD1TBOSLyoQ,2230
|
|
6
|
+
videopython/ai/generation/image.py,sha256=gS0zqzyIoCvjTjfks31ApG8lX0nUKXWRRgFGGLN4RjM,654
|
|
7
|
+
videopython/ai/generation/video.py,sha256=206YON_XjPTYyjIJ3j5uBgd_yHmCDg7SqbkIU9GzEgw,1831
|
|
8
|
+
videopython/ai/understanding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
videopython/ai/understanding/transcribe.py,sha256=VNgXnzbTH0NHDKHjanj6CjUnl-XwT-nsOkd5zqn9a_E,1219
|
|
10
|
+
videopython/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
videopython/base/compose.py,sha256=pti12VY3Yg7TZZiENPF6veM8POWssfsK8ePDdGlhAhA,1968
|
|
12
|
+
videopython/base/effects.py,sha256=1RbRLTQD0V26DBc4jbRCDI4eGr6-TyBdX-Ia2USKxmc,7554
|
|
13
|
+
videopython/base/exceptions.py,sha256=68_16lUPOR9_zhWdeBGS8_NFI32VbrcoDbN5KHHg0_w,44
|
|
14
|
+
videopython/base/transcription.py,sha256=FloqvY-OlBQPOCkPnSx6R7azn4smD5-JYd-pMNssuYw,196
|
|
15
|
+
videopython/base/transforms.py,sha256=FDh-8EgQoZxB6Gv-T15kZGctcu9_4XHsTy_n7kgxlQw,5828
|
|
16
|
+
videopython/base/transitions.py,sha256=P1bBsxugf5i0JEtx7MoRgxWSIDcBli-0QucRwBIFGqs,3687
|
|
17
|
+
videopython/base/video.py,sha256=uhNGa9BBUEitEfk1Fn8IhtI-we2-Qy-iDV6Lj0OBeq4,15712
|
|
18
|
+
videopython/utils/__init__.py,sha256=uhFG_cnw6zZUWxpfs_I3-82mh-NBLqivbPDnsdOEUmI,122
|
|
19
|
+
videopython/utils/common.py,sha256=F-30YoKUwWDI7HiJUWw0gRFUguhShSVaxT0aFfvpifg,936
|
|
20
|
+
videopython/utils/image.py,sha256=zR5_WnSBXGgyE9gNpXnNXmPtfdmnlY7kdOsgkZUGOds,1747
|
|
21
|
+
videopython/utils/text.py,sha256=T0W6VgpLfLczMMdUXEhkEftUQmuNzuQusO9I7-HU8Zg,27962
|
|
22
|
+
videopython-0.4.0.dist-info/METADATA,sha256=MY4BiT2PTFoZeJFxQLsa9KxaFKGdsBhJfMveq2f1bhg,3852
|
|
23
|
+
videopython-0.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
24
|
+
videopython-0.4.0.dist-info/licenses/LICENSE,sha256=nJL9jVOt2MSW7swNDq4Y6oD_n9bLI0B0afr8ougtZ6s,10832
|
|
25
|
+
videopython-0.4.0.dist-info/RECORD,,
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
videopython/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
videopython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
videopython/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
videopython/base/compose.py,sha256=pti12VY3Yg7TZZiENPF6veM8POWssfsK8ePDdGlhAhA,1968
|
|
5
|
-
videopython/base/effects.py,sha256=ZFUWrgVWTn4uWpxPfTQSQQKEZN5ns4btMofOZNHCeQc,7540
|
|
6
|
-
videopython/base/exceptions.py,sha256=68_16lUPOR9_zhWdeBGS8_NFI32VbrcoDbN5KHHg0_w,44
|
|
7
|
-
videopython/base/transforms.py,sha256=VP8SGArokfXN-IE7tk-3i0oMM3HV5zpJa-GLj7BoeRo,5856
|
|
8
|
-
videopython/base/transitions.py,sha256=zYsxIgiVfN9P-CoGWUWRYFBr_0inX1sAJ02gyIEQ678,3694
|
|
9
|
-
videopython/base/video.py,sha256=4SWa6ULLNsnTmv-VIyVTIvg2tYnNZD6WQPBeLZe19vg,12735
|
|
10
|
-
videopython/generation/__init__.py,sha256=5esJ7_PPSkqNXuPQWLLAyeQZY00BnYFc94WZIHi7pBU,233
|
|
11
|
-
videopython/generation/audio.py,sha256=OOE0XsupCOoNq1yoQnfo0MfUcRvvndnrUt-MQjyXmwc,1915
|
|
12
|
-
videopython/generation/image.py,sha256=i8zJm0WXn_Pykby9Urw1kzDcla6ArYhRgG-ueRdoAJ0,675
|
|
13
|
-
videopython/generation/video.py,sha256=206YON_XjPTYyjIJ3j5uBgd_yHmCDg7SqbkIU9GzEgw,1831
|
|
14
|
-
videopython/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
videopython/utils/common.py,sha256=F-30YoKUwWDI7HiJUWw0gRFUguhShSVaxT0aFfvpifg,936
|
|
16
|
-
videopython/utils/image.py,sha256=gng1by8ieYRVs1DlxHPMqYIPxKc1WWwBm8W5oASBKfY,12084
|
|
17
|
-
videopython-0.2.1.dist-info/METADATA,sha256=3Em1dQGluch8yPUWR5PnZakhhXradrFzexOCEdd1W7E,4466
|
|
18
|
-
videopython-0.2.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
19
|
-
videopython-0.2.1.dist-info/licenses/LICENSE,sha256=nJL9jVOt2MSW7swNDq4Y6oD_n9bLI0B0afr8ougtZ6s,10832
|
|
20
|
-
videopython-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|