videopython 0.3.0__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}/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/video.py +234 -139
- videopython/utils/__init__.py +3 -0
- videopython/utils/image.py +0 -232
- videopython/utils/text.py +727 -0
- {videopython-0.3.0.dist-info → videopython-0.4.0.dist-info}/METADATA +12 -12
- videopython-0.4.0.dist-info/RECORD +25 -0
- videopython-0.3.0.dist-info/RECORD +0 -20
- /videopython/{generation → ai/generation}/__init__.py +0 -0
- /videopython/{generation → ai/generation}/audio.py +0 -0
- /videopython/{generation → ai/generation}/video.py +0 -0
- {videopython-0.3.0.dist-info → videopython-0.4.0.dist-info}/WHEEL +0 -0
- {videopython-0.3.0.dist-info → videopython-0.4.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
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,7 +19,7 @@ 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.
|
|
22
|
+
Requires-Dist: soundpython>=0.1.11
|
|
23
23
|
Requires-Dist: tqdm>=4.66.3
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
|
|
@@ -39,10 +39,10 @@ sudo apt-get install ffmpeg
|
|
|
39
39
|
|
|
40
40
|
### Install with pip
|
|
41
41
|
```bash
|
|
42
|
-
pip install videopython[
|
|
42
|
+
pip install videopython[ai]
|
|
43
43
|
```
|
|
44
|
-
> You can install without `[
|
|
45
|
-
> 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.
|
|
46
46
|
|
|
47
47
|
## Basic Usage
|
|
48
48
|
|
|
@@ -52,10 +52,10 @@ pip install videopython[generation]
|
|
|
52
52
|
from videopython.base.video import Video
|
|
53
53
|
|
|
54
54
|
# Load videos and print metadata
|
|
55
|
-
video1 = Video.from_path("tests/test_data/
|
|
55
|
+
video1 = Video.from_path("tests/test_data/small_video.mp4")
|
|
56
56
|
print(video1)
|
|
57
57
|
|
|
58
|
-
video2 = Video.from_path("tests/test_data/
|
|
58
|
+
video2 = Video.from_path("tests/test_data/big_video.mp4")
|
|
59
59
|
print(video2)
|
|
60
60
|
|
|
61
61
|
# Define the transformations
|
|
@@ -79,18 +79,18 @@ savepath = video.save()
|
|
|
79
79
|
|
|
80
80
|
### Video Generation
|
|
81
81
|
|
|
82
|
-
> Using Nvidia A40 or better is recommended for the `videopython.
|
|
82
|
+
> Using Nvidia A40 or better is recommended for the `videopython.ai` module.
|
|
83
83
|
```python
|
|
84
84
|
# Generate image and animate it
|
|
85
|
-
from videopython.generation import ImageToVideo
|
|
86
|
-
from videopython.generation import TextToImage
|
|
87
|
-
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
|
|
88
88
|
|
|
89
89
|
image = TextToImage().generate_image(prompt="Golden Retriever playing in the park")
|
|
90
90
|
video = ImageToVideo().generate_video(image=image, fps=24)
|
|
91
91
|
|
|
92
92
|
# Video generation directly from prompt
|
|
93
|
-
from videopython.generation import TextToVideo
|
|
93
|
+
from videopython.ai.generation import TextToVideo
|
|
94
94
|
video_gen = TextToVideo()
|
|
95
95
|
video = video_gen.generate_video("Dogs playing in the snow")
|
|
96
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=P1bBsxugf5i0JEtx7MoRgxWSIDcBli-0QucRwBIFGqs,3687
|
|
9
|
-
videopython/base/video.py,sha256=8hIIr-LzLktuPpNG3IvuqhSSDwT0jXbQmpv9wo7TMhc,12304
|
|
10
|
-
videopython/generation/__init__.py,sha256=5esJ7_PPSkqNXuPQWLLAyeQZY00BnYFc94WZIHi7pBU,233
|
|
11
|
-
videopython/generation/audio.py,sha256=CNf6ZeV3iU4CU0Kq8HtDLwLPP2ABq9AGQD1TBOSLyoQ,2230
|
|
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=MAncPG_vY4ZnewIsjgkCCzKJm2XtZXPiNRv3Zyc0AYM,12298
|
|
17
|
-
videopython-0.3.0.dist-info/METADATA,sha256=YvNIxT652bGaoNbob_vrXVg9SJxnbpudCKkbdTfNfJo,3879
|
|
18
|
-
videopython-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
19
|
-
videopython-0.3.0.dist-info/licenses/LICENSE,sha256=nJL9jVOt2MSW7swNDq4Y6oD_n9bLI0B0afr8ougtZ6s,10832
|
|
20
|
-
videopython-0.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|